cvs: phpdoc /kr/functions oci8.xml
| From: | Jin Tae-Young | Date: | Sat, 05 Jan 2002 13:53:39 +0000 |
| Subject: | cvs: phpdoc /kr/functions oci8.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969340759@lists.php.net to get a copy of this message | ||
fuzzy74 Sat Jan 5 08:53:39 2002 EDT
Modified files:
/phpdoc/kr/functions oci8.xml
Log:
UPDATE.
new function Translated to Korean.
Thank you.
Index: phpdoc/kr/functions/oci8.xml diff -u phpdoc/kr/functions/oci8.xml:1.10 phpdoc/kr/functions/oci8.xml:1.11 --- phpdoc/kr/functions/oci8.xml:1.10 Wed Dec 12 15:55:07 2001 +++ phpdoc/kr/functions/oci8.xml Sat Jan 5 08:53:38 2002 @@ -1,23 +1,24 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.11 $ --> <reference id="ref.oci8"> <title>ì¤ë¼í´ 8 í¨ì</title> <titleabbrev>OCI8</titleabbrev> <partintro> <para> - ì´ í¨ìë¤ì Oracle8ê³¼ Oracle7 ë°ì´í°ë² ì´ì¤ì ì ê·¼í ì ìëë¡ í´ì¤ë¤. - ì´ê²ì Oracle8 Call-Interface (OCI8)를 ì¬ì©íë¤. - ì´ ëë¼ì´ë²ë¥¼ ì¬ì©íë ¤ë©´ Oracle8 client librariesê° íìíë¤. + ì´ í¨ìë¤ì íµí´ ì¤ë¼í´ 8ê³¼ ì¤ë¼í´ 7 ë°ì´í°ë² ì´ì¤ë¥¼ ì°ëíì¬ ì¬ì©íë¤. + Oracle8 Call-Interface (OCI8)를 ì¬ì©íë©°, ì´ í¨ìë¤ì ì¬ì©íë ¤ë©´ + ì¤ë¼í´8 í´ë¼ì´ì¸í¸ ë¼ì´ë¸ë¬ë¦¬(Oracle8 client libraries)ê° íìíë¤. </para> <para> - ì´ ëë¼ì´ë²ë ë³´íµì PHP Ora_ ëë¼ì´ë²ë³´ë¤ ëì± ì ì°íë¤. - ì´ê²ì PHPì ì ì, ì§ì ë³ìë¤ì Oracle placeholderë¡ì bindingì ì§ìíê³ , - full LOBì FILE, ROWID를 ì§ìíë©°, user-supplied define variableì - ì¬ì©í ì ìëë¡ í´ ì¤ë¤. + ì´ í¨ìë íì¤ ì¤ë¼í´ í¨ìë³´ë¤ ì ì°íë¤. + PHPì ì ì ë³ìì ì§ì ë³ìë¤ì ì¤ë¼í´ ìì¹ë³´ì ì(Oracle placeholder) + ë¡ì ì°ê³(binding), full LOB, FILE, ROWID를 ì§ìíë©°, + user-supplied define variableì ì¬ì©í ì ìëë¡ í´ ì¤ë¤. </para> <para> - ì´ ëë¼ì´ë²ë¥¼ ì¬ì©í기 ì ì ì¤ë¼í´ ì ì ì ì¹ìë² ì ì ìê² - ì í¨í ì¤ë¼í´ íê²½ë³ì를 ì ì©íëì§ íì¸í´ì¼íë¤. - ì ì©ìí¬ íê²½ë³ì: + ì´ í¨ì를 ì¬ì©í기 ì ì ì¤ë¼í´ ê³ì ê³¼ ì¹ ë°ëª¬ ê³ì ì + ì í¨í ì¤ë¼í´ íê²½ë³ì를 ì ì©íëì§ íì¸í´ì¼íë¤. + ì ì©ìí¬ íê²½ë³ì: <itemizedlist> <listitem> <simpara> @@ -52,14 +53,52 @@ </itemizedlist> </para> <para> - ì¹ìë² ì ì ìê² íê²½ë³ì를 ì ì©ííì, - ì¹ìë² ì ì (nobody, www)를 ì¤ë¼í´ 그룹ì ì¶ê°íëì§ íì¸í´ì¼ íë¤. + ì¹ìë² ê³ì ì¼ë¡ ì íê²½ë³ì를 ì ì©ííì, + ì¹ìë² ê³ì (nobody, www)ì ì¤ë¼í´ 그룹ì ì¶ê°íëì§ íì¸í´ì¼ íë¤. </para> + <note> + <title>ì¹ìë²ê° ììíì§ ìê±°ë ììì ì ëë¡ ìëíì§ ìì¼ë©´</title> + <para> + ìíì¹ê° pthread ë¼ì´ë¸ë¬ë¦¬ì ë§í¬ëì´ìëì§ ì²´í¬íë¼: + </para> + <para> + <informalexample> + <screen> +<![CDATA[ +# ldd /www/apache/bin/httpd + libpthread.so.0 => /lib/libpthread.so.0 (0x4001c000) + libm.so.6 => /lib/libm.so.6 (0x4002f000) + libcrypt.so.1 => /lib/libcrypt.so.1 (0x4004c000) + libdl.so.2 => /lib/libdl.so.2 (0x4007a000) + libc.so.6 => /lib/libc.so.6 (0x4007e000) + /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) +]]> + </screen> + </informalexample> + </para> + <para> + libpthreadê° ë³´ì´ì§ ìì¼ë©´ ìíì¹ë¥¼ ë¤ì ì¤ì¹í´ì¼íë¤ : + </para> + <para> + <informalexample> + <screen> +<![CDATA[ +# cd /usr/src/apache_1.3.xx +# make clean +# LIBS=-lpthread ./config.status +# make +# make install +]]> + </screen> + </informalexample> + </para> + </note> <para> <example> <title>OCI Hints</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php // by sergo@bacup.ru // Use option: OCI_DEFAULT for execute command to delay execution @@ -79,18 +118,21 @@ OCIBindByName ($stmt, ":field2", &$clob, -1, OCI_B_CLOB); OCIExecute($stmt, OCI_DEFAULT); $clob->save ("some text"); +OCICommit($conn); ?> +]]> </programlisting> </example> </para> <para> - command-lineìì ë´ì¥ íë¡ìì (stored procedures)를 ì°ëê²ì²ë¼ - ì¬ì©ì´ ê°í¸íë¤. + 커맨ë ë¼ì¸(command-line)ììì ì¬ì© ë°©ìê³¼ ëì¼íê² + ë´ì¥ íë¡ìì (stored procedures)를 ì¬ì©í ì ìë¤. <example> <title>ë´ì¥ íë¡ìì (Stored Procedures) ì¬ì©í기</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php // by webmaster@remoterealty.com $sth = OCIParse ( $dbh, "begin sp_newaddress( :address_id, '$firstname', '$lastname', '$company', '$address1', '$address2', '$city', '$state', @@ -104,7 +146,8 @@ OCIBindByName ( $sth, ":error_code", $errorcode, 10 ); OCIExecute ( $sth ); -?> +?> +]]> </programlisting> </example> </para> @@ -114,8 +157,7 @@ <refnamediv> <refname>OCIDefineByName</refname> <refpurpose> - SELECT 구문(Statement)ì ì¬ì©íë ëì ì ìë¨ê³(define-step)를 ìí - PHP ë³ì를 í ë¹íë¤. + í SELECT 구문ì¬ì©ì ì ìë¨ê³(define-step)를 ìí PHP ë³ì를 í ë¹íë¤. </refpurpose> </refnamediv> <refsect1> @@ -132,7 +174,7 @@ </funcsynopsis> <para> <function>OCIDefineByName</function>í¨ìë - íì¹(fetch)í 컬ë¼ì ì¬ì©ìì ì ë³ì ì í ë¹íë¤. + íì¹(fetch)í 컬ë¼ì ì¬ì©ìì ì PHPë³ì ì í ë¹íë¤. ë¬¼ë¡ , ì¤ë¼í´ ì ì ë select 구문ìì ì문ì 컬ë¼ëª ì ì¸ì ìì§ë§, <function>OCIDefineByName</function>í¨ìì <parameter>Column-Name</parameter>ì¸ìë ë°ëì ë문ìë¡ ì ì´ì¼ íë¤. @@ -147,7 +189,8 @@ <example> <title>OCIDefineByName</title> <programlisting> -<?php +<![CDATA[ +<?php /* OCIDefineByPos example thies@thieso.net (980219) */ $conn = OCILogon("scott","tiger"); @@ -169,6 +212,7 @@ OCIFreeStatement($stmt); OCILogoff($conn); ?> +]]> </programlisting> </example> </refsect1> @@ -200,13 +244,13 @@ <parameter>ph_name</parameter>ë³ìì ì°ê³ìí¨ë¤. ì©ëê° ì ë ¥ì¸ì§ ì¶ë ¥ì¸ì§ë ì¤ìê°ì¼ë¡ ê²°ì ë ê²ì´ê³ , ì¶©ë¶í ì ì¥ ê³µê°ì´ í ë¹ë íìê° ìë¤. <parameter>length</parameter>ì¸ì - ë ë°ì¸ë를 ìí ìµë 길ì´ë¥¼ ì¸í íë¤. <parameter>length</parameter>ì¸ì를 + ë ì°ê³ë¥¼ ìí ìµë ì©ëì ì¸í íë¤. <parameter>length</parameter>ì¸ì를 -1ë¡ ì¸í íë©´ <function>OCIBindByName</function>í¨ìë - ë°ì¸ë를 ìí ìµë 길ì´ë¥¼ <parameter>variable</parameter>ì - íì¬ ê¸¸ì´ë¡ ì¬ì©í ê²ì´ë¤. + ì°ê³ë¥¼ ìí ìµë ì©ëì <parameter>variable</parameter>ì + íì¬ ì©ëì¼ë¡ ì¬ì©í ê²ì´ë¤. </para> <para> - ì¶ìí ë°ì´í°íì (LOB/ROWID/BFILE)ì ë°ì¸ë í íìê° ìë¤ë©´ + ì¶ìí ë°ì´í°íì (LOB/ROWID/BFILE)ì ì°ê³ í íìê° ìë¤ë©´ ì°ì ì <function>OCINewDescriptor</function>í¨ì를 ì¬ì©í´ì ë³ì를 í ë¹í´ì¼ íë¤. <parameter>length</parameter>ì¸ìë ì¶ìí ë°ì´í°íì @@ -220,7 +264,8 @@ <example> <title>OCIDefineByName</title> <programlisting> -<?php +<![CDATA[ +<?php /* OCIBindByPos example thies@thieso.net (980221) inserts 3 records into emp, and uses the ROWID for updating the records just after the insert. @@ -229,8 +274,8 @@ $conn = OCILogon("scott","tiger"); $stmt = OCIParse($conn,"insert into emp (empno, ename) ". - "values (:empno,:ename) ". - "returning ROWID into :rid"); + "values (:empno,:ename) ". + "returning ROWID into :rid"); $data = array(1111 => "Larry", 2222 => "Bill", 3333 => "Jim"); @@ -270,17 +315,18 @@ OCILogoff($conn); ?> +]]> </programlisting> </example> <warning> - <para> + </para> It is a bad idea to use magic quotes and <function>OciBindByName</function> simultaneously as no quoting is needed on quoted variables and any quotes magically applied will be written into your database as <function>OciBindByName</function> is not able to distinguish magically added quotings from those added by intention. - </para> + </para> </warning> </refsect1> </refentry> @@ -288,7 +334,7 @@ <refentry id="function.ocilogon"> <refnamediv> <refname>OCILogon</refname> - <refpurpose>ì¤ë¼í´ ì ìì íì±íë¤.</refpurpose> + <refpurpose>ì¤ë¼í´ ë°ì´í°ë² ì´ì¤ì ì ìíë¤.</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -303,15 +349,15 @@ </funcprototype> </funcsynopsis> <para> - <function>OCILogon</function> ë¤ë¥¸ OCI í¨ì í¸ì¶ì íìí ì ì ë³ì를 - ë겨ì¤ë¤. ì¸ë²ì§¸ ì¸ìë ë¡ì»¬ ì¤ë¼í´ ì¸ì¤í´ì¤(local Oracle instance)ì´ë¦, - ëë tnsnames.ora ì¤ì íì¼ì ì¤ì ë ìí¸ë¦¬(entry) ì´ë¦ì´ ë ì ìë¤. + <function>OCILogon</function>í¨ìë ë¤ë¥¸ OCI í¨ì í¸ì¶ì íìí ì ì ë³ì를 + ë겨ì¤ë¤. ì¸ë²ì§¸ ì¸ìë ë¡ì»¬ ì¤ë¼í´ ì¸ì¤í´ì¤ëª ì´ë + tnsnames.ora ì¤ì íì¼ì ì¤ì ë ìí¸ë¦¬(entry)ëª ì´ ë ì ìë¤. ì¸ë²ì§¸ ì¸ì를 ìëµí ê²½ì°, PHPë ì ìí ë°ì´í°ë² ì´ì¤ë¥¼ ê²°ì í기 ìí´ì íê²½ë³ì ORACLE_SID(Oracle instance) ëë TWO_TASK(tnsnames.ora)를 ì´ì©íë¤. </para> <para><function>OCILogon</function> í¨ì를 ì¬ì©í ëë§ë¤ ê° ì ìì - íì´ì§ ë 벨ìì ë¶ë°°ëì´ì§ë¤. ì´ê²ì ê° íì´ì§ìì ì´ë¦° 모ë + íì´ì§ ë 벨ìì ë¶ë°°ëì´ì§ë¤. ì¦, íì´ì§ ììì ì´ë¦° 모ë í¸ëìì ì 커ë°(commits)ê³¼ 롤백(rollbacks)ì´ ì ì©ëì´ì§ë¤ë ê²ì ì미íë¤. ëê°ì´ìì ì ìì ë§ë¤ì§ë¼ë. </para> @@ -320,8 +366,9 @@ <example> <title>OCILogon</title> <programlisting> -<?php -print "<HTML><PRE>"; +<![CDATA[ +<?php +print "<HTML><PRE>"; $db = ""; $c1 = ocilogon("scott","tiger",$db); @@ -367,7 +414,7 @@ ociexecute($stmt,OCI_DEFAULT); echo $conn."----selecting\n\n"; while (ocifetch($stmt)) - echo $conn." <".ociresult($stmt,"TEST").">\n\n"; + echo $conn." <".ociresult($stmt,"TEST").">\n\n"; echo $conn."----done\n\n"; } @@ -398,8 +445,12 @@ drop_table($c1); -print "</PRE></HTML>"; -?></programlisting></example></para> +print "</PRE></HTML>"; +?> +]]> + </programlisting> + </example> + </para> <simpara> See also <function>OCIPLogon</function> and <function>OCINLogon</function>.</simpara> @@ -460,10 +511,10 @@ </funcsynopsis> <para> <function>OCINLogon</function> ì¤ë¼í´8 DBì ìë¡ì´ ì ìì íì±íê³ , - ë¡ê·¸ì¨ íë¤. ì¸ë²ì§¸ ì¸ìë ë¡ì»¬ ì¤ë¼í´ ì¸ì¤í´ì¤(local Oracle instanace)ì - ì´ë¦, ëë tnsnames.oraì¤ì íì¼ì ìí¸ë¦¬(entry) ì´ë¦ì´ ë ì ìë¤. + ë¡ê·¸ì¨ íë¤. ì¸ë²ì§¸ ì¸ìë ë¡ì»¬ ì¤ë¼í´ ì¸ì¤í´ì¤ëª ì´ë + tnsnames.ora ì¤ì íì¼ì ìí¸ë¦¬(entry)ëª ì´ ë ì ìë¤. ì¸ë²ì§¸ ì¸ìê° ìëµëë©´, PHPë ì ìí ì¤ë¼í´ ë°ì´í°ë² ì´ì¤ë¥¼ ê²°ì í기 ìí´ - íê²½ë³ì ORACLE_SID (Oracle instance)ë TWO_TASK(tnsnames.ora)를 + íê²½ë³ì ORACLE_SID(Oracle instance)ë TWO_TASK(tnsnames.ora)를 ì´ì©íë¤. </para> <para> @@ -476,12 +527,13 @@ 모ë 커ë°(commits)ê³¼ 롤백(rollbacks)ì í¹ì ì ììë§ ì ì©ëì´ì§ë¤. </para> <para> - This example demonstrates how the connections are separated. + ì´ ìì ë ì ìì´ ì´ë»ê² ë¶ë¦¬ëëì§ ë³´ì¬ì¤ë¤. <example> <title>OCINLogon</title> <programlisting> -<?php -print "<HTML><PRE>"; +<![CDATA[ +<?php +print "<HTML><PRE>"; $db = ""; $c1 = ocilogon("scott","tiger",$db); @@ -528,7 +580,7 @@ ociexecute($stmt,OCI_DEFAULT); echo $conn."----selecting\n\n"; while (ocifetch($stmt)) - echo $conn." <".ociresult($stmt,"TEST").">\n\n"; + echo $conn." <".ociresult($stmt,"TEST").">\n\n"; echo $conn."----done\n\n"; } @@ -558,8 +610,11 @@ drop_table($c1); -print "</PRE></HTML>"; -?></programlisting></example> +print "</PRE></HTML>"; +?> +]]> + </programlisting> + </example> </para> <simpara> See also <function>OCILogon</function> and @@ -571,7 +626,7 @@ <refentry id="function.ocilogoff"> <refnamediv> <refname>OCILogOff</refname> - <refpurpose>ì¤ë¼í´ë¡ ë¶í° ì ìì í´ì íë¤.</refpurpose> + <refpurpose>ì¤ë¼í´ë¡ë¶í° ì ìì í´ì íë¤.</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -582,7 +637,7 @@ </funcprototype> </funcsynopsis> <para> - <function>OCILogOff</function> ì¤ë¼í´ ì ìì ë«ëë¤. + <function>OCILogOff</function> ì¤ë¼í´ ì ìì í´ì íë¤. </para> </refsect1> </refentry> @@ -604,10 +659,10 @@ </funcprototype> </funcsynopsis> <para> - <function>OCIExecute</function> 미리 í´ìë 구문(statement)ì + <function>OCIExecute</function>í¨ìë 미리 í´ìë 구문(statement)ì ì¤ííë¤. (<function>OCIParse</function>í¨ì를 ë³´ë¼.) ì íì ì¸ ì¸ì <parameter>mode</parameter>ì execution-mode(ëí´í¸ë - OCI_COMMIT_ON_SUCCESSì´ë¤)를 ì§ì í ì ìë¤. ê° êµ¬ë¬¸ì´ ìëì ì¼ë¡ + OCI_COMMIT_ON_SUCCESS)를 ì§ì í ì ìë¤. ê° êµ¬ë¬¸ì´ ìëì ì¼ë¡ 커ë°(commit)ëì§ ì기를 ìíë©´ OCI_DEFAULTë¡ ì¤ì íë©´ ëë¤. </para> </refsect1> @@ -627,7 +682,7 @@ </funcprototype> </funcsynopsis> <para> - <function>OCICommit</function> ì¤ë¼í´ ì ì íë¼ë¯¸í° + <function>OCICommit</function>í¨ìë ì¤ë¼í´ ì ì ì¸ìì¸ <parameter>connection</parameter>ì ëí´ì 미결ì ë 모ë 구문(outstanding statements)ì 커ë°íë¤. </para> @@ -648,7 +703,7 @@ </funcprototype> </funcsynopsis> <para> - <function>OCIRollback</function> ì¤ë¼í´ ì ì íë¼ë¯¸í° + <function>OCIRollback</function>í¨ìë ì¤ë¼í´ ì ì ì¸ì <parameter>connection</parameter>ì ëí´ì 미결ì ë 모ë 구문(outstanding statements)ì 롤백 ì²ë¦¬íë¤. </para> @@ -674,18 +729,19 @@ </funcprototype> </funcsynopsis> <para> - <function>OCINewDescriptor</function>í¨ìë hold descpriptorë + <function>OCINewDescriptor</function>í¨ìë descpriptorë LOB locator를 ìí ì ì¥ê³µê°ì í ë¹íë¤. - ì í¨í <parameter>type</parameter>ê°ì OCI_D_FILE, OCI_D_LOB, + ì í¨í <parameter>type</parameter>ì¸ìê°ì OCI_D_FILE, OCI_D_LOB, OCI_D_ROWID ì´ë¤. - LOB descriptor를 ìí´ load, save, savefile ë©ìëê° - descriptorì ì°ê²°ëì´ ìë¤. BFILE를 ìí´ìë load ë©ìëë§ì´ ì¡´ì¬íë¤. + LOB descriptorì load, save, savefile ë©ìë를 ì¬ì©í ì ìê³ , + BFILEì load ë©ìëë§ ì¬ì©ê°ë¥íë¤. See the second example usage hints. </para> <example> <title>OCINewDescriptor</title> <programlisting> -<?php +<![CDATA[ +<?php /* This script is designed to be called from a HTML form. * It expects $user, $password, $table, $where, and $commitsize * to be passed in from the form. The script then deletes @@ -712,22 +768,24 @@ OCIFreeStatement($stmt); OCILogoff($conn); ?> +]]> </programlisting> <programlisting> -<?php +<![CDATA[ +<?php /* This script demonstrates file upload to LOB columns * The formfield used for this example looks like this - * <form action="upload.php3" method="post" enctype="multipart/form-data"> - * <input type="file" name="lob_upload"> + * <form action="upload.php3" method="post" enctype="multipart/form-data"> + * <input type="file" name="lob_upload"> * ... */ if(!isset($lob_upload) || $lob_upload == 'none'){ ?> -<form action="upload.php3" method="post" enctype="multipart/form-data"> -Upload file: <input type="file" name="lob_upload"><br> -<input type="submit" value="Upload"> - <input type="reset"> -</form> -<?php +<form action="upload.php3" method="post" enctype="multipart/form-data"> +Upload file: <input type="file" name="lob_upload"><br> +<input type="submit" value="Upload"> - <input type="reset"> +</form> +<?php } else { // $lob_upload contains the temporary filename of the uploaded file $conn = OCILogon($user, $password); @@ -747,6 +805,39 @@ OCILogoff($conn); } ?> +]]> + </programlisting> + </example> + <example> + <title>OCINewDescriptor</title> + <programlisting> +<![CDATA[ +<?php + /* Calling PL/SQL stored procedures which contain clobs as input + * parameters (PHP 4 >= 4.0.6). + * Example PL/SQL stored procedure signature is: + * + * PROCEDURE save_data + * Argument Name Type In/Out Default? + * ------------------------------ ----------------------- ------ -------- + * KEY NUMBER(38) IN + * DATA CLOB IN + * + */ + + $conn = OCILogon($user, $password); + $stmt = OCIParse($conn, "begin save_data(:key, :data); end;"); + $clob = OCINewDescriptor($conn, OCI_D_LOB); + OCIBindByName($stmt, ':key', $key); + OCIBindByName($stmt, ':data', $clob, -1, OCI_B_CLOB); + $clob->WriteTemporary($data); + OCIExecute($stmt, OCI_DEFAULT); + OCICommit($conn); + $clob->close(); + $clob->free(); + OCIFreeStatement($stmt); +?> +]]> </programlisting> </example> </refsect1> @@ -773,24 +864,28 @@ <example> <title>OCIRowCount</title> <programlisting> -<?php - print "<HTML><PRE>"; +<![CDATA[ +<?php + print "<HTML><PRE>"; $conn = OCILogon("scott","tiger"); $stmt = OCIParse($conn,"create table emp2 as select * from emp"); OCIExecute($stmt); - print OCIRowCount($stmt) . " rows inserted.<BR>"; + print OCIRowCount($stmt) . " rows inserted.<BR>"; OCIFreeStatement($stmt); $stmt = OCIParse($conn,"delete from emp2"); OCIExecute($stmt); - print OCIRowCount($stmt) . " rows deleted.<BR>"; + print OCIRowCount($stmt) . " rows deleted.<BR>"; OCICommit($conn); OCIFreeStatement($stmt); $stmt = OCIParse($conn,"drop table emp2"); OCIExecute($stmt); OCIFreeStatement($stmt); OCILogOff($conn); - print "</PRE></HTML>"; -?> </programlisting></example> + print "</PRE></HTML>"; +?> +]]> + </programlisting> + </example> </para> </refsect1> </refentry> @@ -816,15 +911,16 @@ <example> <title>OCINumCols</title> <programlisting> -<?php - print "<HTML><PRE>\n"; +<![CDATA[ +<?php + print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); $stmt = OCIParse($conn,"select * from emp"); OCIExecute($stmt); while ( OCIFetch($stmt) ) { print "\n"; $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { + for ( $i = 1; $i <= $ncols; $i++ ) { $column_name = OCIColumnName($stmt,$i); $column_value = OCIResult($stmt,$i); print $column_name . ': ' . $column_value . "\n"; @@ -833,9 +929,10 @@ } OCIFreeStatement($stmt); OCILogoff($conn); - print "</PRE>"; - print "</HTML>\n"; + print "</PRE>"; + print "</HTML>\n"; ?> +]]> </programlisting> </example> </refsect1> @@ -859,8 +956,8 @@ <function>OCIResult</function>í¨ìë íì¬ ì´ì ì»¬ë¼ <parameter>column</parameter>ì ëí ë°ì´í°ë¥¼ 리í´íë¤ (<function>OCIFetch</function>í¨ì를 ë³´ë¼). - <function>OCIResult</function>í¨ìë ì¶ìíë°ì´í°íì (ROWID, LOB, FILE)ì - ì ì¸í 문ìì´ê°ì 모ë ê²ì 리í´í ê²ì´ë¤. + <function>OCIResult</function>í¨ìë ì¶ìíë°ì´í°íì (ROWID, LOB, FILE)ì + ì ì¸í 문ìì´ë¡ì 모ë ê²ì 리í´í ê²ì´ë¤. </para> </refsect1> </refentry> @@ -911,23 +1008,19 @@ ì¼ì°¨ì ë°°ì´ì í¬í¨í ê²ì´ë¤. </para> <para> - The <parameter>mode</parameter> parameter allows you to change the - default behaviour. You can specify more than one flag by simply - adding them up (eg OCI_ASSOC+OCI_RETURN_NULLS). The known flags - are: <parameter>mode</parameter>ì¸ìë ì´ í¨ìì 기본ê°ì ë³íìí¨ë¤. - íê° ì´ìì íë그를 ì¶ê°í ììë¤(OCI_ASSOC+OCI_RETURN_NULLSì ê°ì´). - ìë ¤ì§ íëê·¸ë ë¤ìê³¼ ê°ë¤: + íê° ì´ìì íë그를 ì¶ê°í ììë¤(OCI_ASSOC+OCI_RETURN_NULLSì ê°ì´). + ìë ¤ì§ íëê·¸ë ë¤ìê³¼ ê°ë¤: <simplelist> <member> <literal>OCI_ASSOC</literal> ì°ê´ë°°ì´(associative array)ì 리í´íë¤. </member> <member> - <literal>OCI_NUM</literal> 1ë¶í° ììíë ì«ì를 ê°ë ë³ì를 리í´íë¤. + <literal>OCI_NUM</literal> í¤ê°ì´ 0ë¶í° ììíë ë°°ì´ì 리í´íë¤. (ëí´í¸) </member> <member> - <literal>OCI_RETURN_NULLS</literal> ë¹ ì»¬ë¼ì 리í´íë¤. + <literal>OCI_RETURN_NULLS</literal> ë¹ ì»¬ë¼ë 리í´íë¤. </member> <member> <literal>OCI_RETURN_LOBS</literal>descriptor ëì ì LOBì ê°ì 리í´íë¤. @@ -960,7 +1053,8 @@ <example> <title>OCIFetchStatement</title> <programlisting> -<?php +<![CDATA[ +<?php /* OCIFetchStatement example mbritton@verinet.com (990624) */ $conn = OCILogon("scott","tiger"); @@ -971,31 +1065,32 @@ $nrows = OCIFetchStatement($stmt,$results); if ( $nrows > 0 ) { - print "<TABLE BORDER=\"1\">\n"; - print "<TR>\n"; + print "<TABLE BORDER=\"1\">\n"; + print "<TR>\n"; while ( list( $key, $val ) = each( $results ) ) { - print "<TH>$key</TH>\n"; + print "<TH>$key</TH>\n"; } - print "</TR>\n"; + print "</TR>\n"; - for ( $i = 0; $i < $nrows; $i++ ) { + for ( $i = 0; $i < $nrows; $i++ ) { reset($results); - print "<TR>\n"; + print "<TR>\n"; while ( $column = each($results) ) { $data = $column['value']; - print "<TD>$data[$i]</TD>\n"; + print "<TD>$data[$i]</TD>\n"; } - print "</TR>\n"; + print "</TR>\n"; } - print "</TABLE>\n"; + print "</TABLE>\n"; } else { - echo "No data found<BR>\n"; + echo "No data found<BR>\n"; } -print "$nrows Records Selected<BR>\n"; +print "$nrows Records Selected<BR>\n"; OCIFreeStatement($stmt); OCILogoff($conn); ?> +]]> </programlisting> </example> </refsect1> @@ -1048,33 +1143,35 @@ <example> <title>OCIColumnName</title> <programlisting> -<?php - print "<HTML><PRE>\n"; +<![CDATA[ +<?php + print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); $stmt = OCIParse($conn,"select * from emp"); OCIExecute($stmt); - print "<TABLE BORDER=\"1\">"; - print "<TR>"; - print "<TH>Name</TH>"; - print "<TH>Type</TH>"; - print "<TH>Length</TH>"; - print "</TR>"; + print "<TABLE BORDER=\"1\">"; + print "<TR>"; + print "<TH>Name</TH>"; + print "<TH>Type</TH>"; + print "<TH>Length</TH>"; + print "</TR>"; $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { + for ( $i = 1; $i <= $ncols; $i++ ) { $column_name = OCIColumnName($stmt,$i); $column_type = OCIColumnType($stmt,$i); $column_size = OCIColumnSize($stmt,$i); - print "<TR>"; - print "<TD>$column_name</TD>"; - print "<TD>$column_type</TD>"; - print "<TD>$column_size</TD>"; - print "</TR>"; + print "<TR>"; + print "<TD>$column_name</TD>"; + print "<TD>$column_type</TD>"; + print "<TD>$column_size</TD>"; + print "</TR>"; } OCIFreeStatement($stmt); OCILogoff($conn); - print "</PRE>"; - print "</HTML>\n"; + print "</PRE>"; + print "</HTML>\n"; ?> +]]> </programlisting> </example> </para> @@ -1109,34 +1206,36 @@ <example> <title>OCIColumnSize</title> <programlisting> -<?php - print "<HTML><PRE>\n"; +<![CDATA[ +<?php + print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); $stmt = OCIParse($conn,"select * from emp"); OCIExecute($stmt); - print "<TABLE BORDER=\"1\">"; - print "<TR>"; - print "<TH>Name</TH>"; - print "<TH>Type</TH>"; - print "<TH>Length</TH>"; - print "</TR>"; + print "<TABLE BORDER=\"1\">"; + print "<TR>"; + print "<TH>Name</TH>"; + print "<TH>Type</TH>"; + print "<TH>Length</TH>"; + print "</TR>"; $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { + for ( $i = 1; $i <= $ncols; $i++ ) { $column_name = OCIColumnName($stmt,$i); $column_type = OCIColumnType($stmt,$i); $column_size = OCIColumnSize($stmt,$i); - print "<TR>"; - print "<TD>$column_name</TD>"; - print "<TD>$column_type</TD>"; - print "<TD>$column_size</TD>"; - print "</TR>"; + print "<TR>"; + print "<TD>$column_name</TD>"; + print "<TD>$column_type</TD>"; + print "<TD>$column_size</TD>"; + print "</TR>"; } - print "</TABLE>"; + print "</TABLE>"; OCIFreeStatement($stmt); OCILogoff($conn); - print "</PRE>"; - print "</HTML>\n"; + print "</PRE>"; + print "</HTML>\n"; ?> +]]> </programlisting> </example> </para> @@ -1170,33 +1269,35 @@ <example> <title>OCIColumnType</title> <programlisting> -<?php - print "<HTML><PRE>\n"; +<![CDATA[ +<?php + print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); $stmt = OCIParse($conn,"select * from emp"); OCIExecute($stmt); - print "<TABLE BORDER=\"1\">"; - print "<TR>"; - print "<TH>Name</TH>"; - print "<TH>Type</TH>"; - print "<TH>Length</TH>"; - print "</TR>"; + print "<TABLE BORDER=\"1\">"; + print "<TR>"; + print "<TH>Name</TH>"; + print "<TH>Type</TH>"; + print "<TH>Length</TH>"; + print "</TR>"; $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { + for ( $i = 1; $i <= $ncols; $i++ ) { $column_name = OCIColumnName($stmt,$i); $column_type = OCIColumnType($stmt,$i); $column_size = OCIColumnSize($stmt,$i); - print "<TR>"; - print "<TD>$column_name</TD>"; - print "<TD>$column_type</TD>"; - print "<TD>$column_size</TD>"; - print "</TR>"; + print "<TR>"; + print "<TD>$column_name</TD>"; + print "<TD>$column_type</TD>"; + print "<TD>$column_size</TD>"; + print "</TR>"; } OCIFreeStatement($stmt); OCILogoff($conn); - print "</PRE>"; - print "</HTML>\n"; + print "</PRE>"; + print "</HTML>\n"; ?> +]]> </programlisting> </example> </para> @@ -1225,11 +1326,13 @@ <example> <title>OCIServerVersion</title> <programlisting> -<?php +<![CDATA[ +<?php $conn = OCILogon("scott","tiger"); print "Server Version: " . OCIServerVersion($conn); OCILogOff($conn); ?> +]]> </programlisting> </example> </para> @@ -1252,34 +1355,36 @@ <para> <function>OCIStatementType</function> í¨ìë ë¤ìì¤ íë를 리í´íë¤: <orderedlist> - <listitem><simpara> "SELECT"</simpara></listitem> - <listitem><simpara> "UPDATE"</simpara></listitem> - <listitem><simpara> "DELETE"</simpara></listitem> - <listitem><simpara> "INSERT"</simpara></listitem> - <listitem><simpara> "CREATE"</simpara></listitem> - <listitem><simpara> "DROP"</simpara></listitem> - <listitem><simpara> "ALTER"</simpara></listitem> - <listitem><simpara> "BEGIN"</simpara></listitem> - <listitem><simpara> "DECLARE"</simpara></listitem> - <listitem><simpara> "UNKNOWN"</simpara></listitem> + <listitem><simpara> "SELECT"</simpara></listitem> + <listitem><simpara> "UPDATE"</simpara></listitem> + <listitem><simpara> "DELETE"</simpara></listitem> + <listitem><simpara> "INSERT"</simpara></listitem> + <listitem><simpara> "CREATE"</simpara></listitem> + <listitem><simpara> "DROP"</simpara></listitem> + <listitem><simpara> "ALTER"</simpara></listitem> + <listitem><simpara> "BEGIN"</simpara></listitem> + <listitem><simpara> "DECLARE"</simpara></listitem> + <listitem><simpara> "UNKNOWN"</simpara></listitem> </orderedlist></para> <para> <example> <title>Code examples</title> <programlisting> -<?php - print "<HTML><PRE>"; +<![CDATA[ +<?php + print "<HTML><PRE>"; $conn = OCILogon("scott","tiger"); $sql = "delete from emp where deptno = 10"; $stmt = OCIParse($conn,$sql); if ( OCIStatementType($stmt) == "DELETE" ) { - die "You are not allowed to delete from this table<BR>"; + die "You are not allowed to delete from this table<BR>"; } OCILogoff($conn); - print "</PRE></HTML>"; + print "</PRE></HTML>"; ?> +]]> </programlisting> </example> </para> @@ -1290,7 +1395,7 @@ <refnamediv> <refname>OCINewCursor</refname> <refpurpose> - Return a new cursor (Statement-Handle) - use to bind ref-cursors. + ìë¡ì´ 커ì(구문 í¸ë¤)를 리í´íë¤ - ref-cursor를 ì°ê³í기ìí¨. </refpurpose> </refnamediv> <refsect1> @@ -1302,14 +1407,14 @@ </funcprototype> </funcsynopsis> <para> - <function>OCINewCursor</function> allocates a new statement handle - on the specified connection. + <function>OCINewCursor</function>í¨ìë í¹ì ì ìì ì ê´í + ìë¡ì´ 구문 í¸ë¤ì í ë¹íë¤. </para> <para> - <example> - <title>Using a REF CURSOR from a stored procedure</title> + <example> <title>ì¤í ì´ë íë¡ìì ì REF CURSOR ì¬ì©í기</title> <programlisting> -<?php +<![CDATA[ +<?php // suppose your stored procedure info.output returns a ref cursor in :data $conn = OCILogon("scott","tiger"); @@ -1328,46 +1433,49 @@ OCIFreeStatement($curs); OCILogoff($conn); ?> +]]> </programlisting> </example> </para> <para> <example> - <title>Using a REF CURSOR in a select statement</title> + <title>SELECT 구문ì REF CURSOR ì¬ì©í기</title> <programlisting> -<?php -print "<HTML><BODY>"; +<![CDATA[ +<?php +print "<HTML><BODY>"; $conn = OCILogon("scott","tiger"); $count_cursor = "CURSOR(select count(empno) num_emps from emp " . "where emp.deptno = dept.deptno) as EMPCNT from dept"; $stmt = OCIParse($conn,"select deptno,dname,$count_cursor"); ociexecute($stmt); -print "<TABLE BORDER=\"1\">"; -print "<TR>"; -print "<TH>DEPT NAME</TH>"; -print "<TH>DEPT #</TH>"; -print "<TH># EMPLOYEES</TH>"; -print "</TR>"; +print "<TABLE BORDER=\"1\">"; +print "<TR>"; +print "<TH>DEPT NAME</TH>"; +print "<TH>DEPT #</TH>"; +print "<TH># EMPLOYEES</TH>"; +print "</TR>"; while (OCIFetchInto($stmt,&$data,OCI_ASSOC)) { - print "<TR>"; + print "<TR>"; $dname = $data["DNAME"]; $deptno = $data["DEPTNO"]; - print "<TD>$dname</TD>"; - print "<TD>$deptno</TD>"; + print "<TD>$dname</TD>"; + print "<TD>$deptno</TD>"; ociexecute($data[ "EMPCNT" ]); while (OCIFetchInto($data[ "EMPCNT" ],&$subdata,OCI_ASSOC)) { $num_emps = $subdata["NUM_EMPS"]; - print "<TD>$num_emps</TD>"; + print "<TD>$num_emps</TD>"; } - print "</TR>"; + print "</TR>"; } -print "</TABLE>"; -print "</BODY></HTML>"; +print "</TABLE>"; +print "</BODY></HTML>"; OCIFreeStatement($stmt); OCILogoff($conn); ?> +]]> </programlisting> </example> </para> @@ -1390,7 +1498,7 @@ </funcprototype> </funcsynopsis> <para> - <function>OCIFreeStatement</function> í¨ìë ìì í´ì ì ì±ê³µíë©´ &true;를 + <function>OCIFreeStatement</function>í¨ìë ìì í´ì ì ì±ê³µíë©´ &true;를 리í´íê³ , ì¤í¨íë©´ &false;를 리í´íë¤. </para> </refsect1> @@ -1457,8 +1565,8 @@ ì¬ì©íë <parameter>query</parameter>를 í´ìíë¤. ì§ì(query)ê° ì í¨íë©´ 구문(statement)를 리í´íë¤. ê·¸ë ì§ ìì¼ë©´ &false;를 리í´íë¤. - <parameter>query</parameter>ì¸ìë ì´ë¤ ì í¨í SQL 구문(statement) - ë ë ì ìë¤. + <parameter>query</parameter>ì¸ìë ì í¨í SQL 구문(statement)ì´ë + PL/SQLë¸ë¡ì´ ë ì ìë¤. </simpara> </refsect1> </refentry> @@ -1509,9 +1617,6 @@ </funcprototype> </funcsynopsis> <simpara> - <function>OCIInternalDebug</function> enables internal debug - output. Set <parameter>onoff</parameter> to 0 to turn debug - output off, 1 to turn it on. <function>OCIInternalDebug</function>í¨ìë ë´ë¶ ëë²ê·¸ ì¶ë ¥ì íì±í ìí¨ë¤. <parameter>onoff</parameter>ì¸ì를 0ì¼ë¡ ëì¼ë©´ ë¹íì±í ëê³ , @@ -1521,6 +1626,366 @@ </refentry> </reference> + <refentry id="function.ocicancel"> + <refnamediv> + <refname>OCICancel</refname> + <refpurpose>커ìë¡ë¶í° ì½ê¸°ë¥¼ ì·¨ìíë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>OCICancel</function></funcdef> + <paramdef>int <parameter>stmt</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + 커ìë¡ë¶í° ëì´ì ë°ì´í°ë¥¼ ì½ê¸°ë¥¼ ìì¹ìì¼ë©´, + <function>OCICancel</function>í¨ì를 ì°ë¼. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocisetprefetch"> + <refnamediv> + <refname>OCISetPrefetch</refname> + <refpurpose>ì¬ì©í ì´ì ê°¯ì를 ì¤ì íë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>OCISetPrefetch</function></funcdef> + <paramdef>int <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>rows</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + ì¬ì©í ì´ì ê°¯ì를 ì¤ì íë¤. 기본ê°ì 1ì´ì´ë¤. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ociwritelobtofile"> + <refnamediv> + <refname>OCIWriteLobToFile</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>OCIWriteLobToFile</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + <paramdef>string <parameter><optional>filename</optional></parameter></paramdef> + <paramdef>int <parameter><optional>start</optional></parameter></paramdef> + <paramdef>int <parameter><optional>lenght</optional></parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocisavelobfile"> + <refnamediv> + <refname>OCISaveLobFile</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCISaveLobFile</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocisavelob"> + <refnamediv> + <refname>OCISaveLob</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCISaveLob</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ociloadlob"> + <refnamediv> + <refname>OCILoadLob</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCILoadLob</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicolumnscale"> + <refnamediv> + <refname>OCIColumnScale</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>OCIColumnScale</function></funcdef> + <paramdef>int <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicolumnprecision"> + <refnamediv> + <refname>OCIColumnPrecision</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>OCIColumnPrecision</function></funcdef> + <paramdef>int <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicolumntyperaw"> + <refnamediv> + <refname>OCIColumnTypeRaw</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>mixed <function>OCIColumnTypeRaw</function></funcdef> + <paramdef>int <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocinewcollection"> + <refnamediv> + <refname>OCINewCollection</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCINewCollection</function></funcdef> + <paramdef>int <parameter>conn</parameter></paramdef> + <paramdef>string <parameter>tdo</parameter></paramdef> + <paramdef>string <parameter><optional>shema</optional></parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocifreecollection"> + <refnamediv> + <refname>OCIFreeCollection</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCIFreeCollection</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicollassign"> + <refnamediv> + <refname>OCICollAssign</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollAssign</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>object <parameter>object</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicollappend"> + <refnamediv> + <refname>OCICollAppend</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollAppend</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>object <parameter>object</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicollassignelem"> + <refnamediv> + <refname>OCICollAssignElem</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollAssignElem</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>string <parameter>ndx</parameter></paramdef> + <paramdef>string <parameter>val</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicollgetelem"> + <refnamediv> + <refname>OCICollGetElem</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollGetElem</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>string <parameter>ndx</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicollmax"> + <refnamediv> + <refname>OCICollMax</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollMax</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicollsize"> + <refnamediv> + <refname>OCICollSize</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollSize</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicolltrim"> + <refnamediv> + <refname>OCICollTrim</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollTrim</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>int <parameter>num</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + </reference> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -1537,4 +2002,7 @@ sgml-local-catalogs:nil sgml-local-ecat-files:nil End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 -->
Index: phpdoc/kr/functions/oci8.xml diff -u phpdoc/kr/functions/oci8.xml:1.10 phpdoc/kr/functions/oci8.xml:1.11 --- phpdoc/kr/functions/oci8.xml:1.10 Wed Dec 12 15:55:07 2001 +++ phpdoc/kr/functions/oci8.xml Sat Jan 5 08:53:38 2002 @@ -1,23 +1,24 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.11 $ --> <reference id="ref.oci8"> <title>ì¤ë¼í´ 8 í¨ì</title> <titleabbrev>OCI8</titleabbrev> <partintro> <para> - ì´ í¨ìë¤ì Oracle8ê³¼ Oracle7 ë°ì´í°ë² ì´ì¤ì ì ê·¼í ì ìëë¡ í´ì¤ë¤. - ì´ê²ì Oracle8 Call-Interface (OCI8)를 ì¬ì©íë¤. - ì´ ëë¼ì´ë²ë¥¼ ì¬ì©íë ¤ë©´ Oracle8 client librariesê° íìíë¤. + ì´ í¨ìë¤ì íµí´ ì¤ë¼í´ 8ê³¼ ì¤ë¼í´ 7 ë°ì´í°ë² ì´ì¤ë¥¼ ì°ëíì¬ ì¬ì©íë¤. + Oracle8 Call-Interface (OCI8)를 ì¬ì©íë©°, ì´ í¨ìë¤ì ì¬ì©íë ¤ë©´ + ì¤ë¼í´8 í´ë¼ì´ì¸í¸ ë¼ì´ë¸ë¬ë¦¬(Oracle8 client libraries)ê° íìíë¤. </para> <para> - ì´ ëë¼ì´ë²ë ë³´íµì PHP Ora_ ëë¼ì´ë²ë³´ë¤ ëì± ì ì°íë¤. - ì´ê²ì PHPì ì ì, ì§ì ë³ìë¤ì Oracle placeholderë¡ì bindingì ì§ìíê³ , - full LOBì FILE, ROWID를 ì§ìíë©°, user-supplied define variableì - ì¬ì©í ì ìëë¡ í´ ì¤ë¤. + ì´ í¨ìë íì¤ ì¤ë¼í´ í¨ìë³´ë¤ ì ì°íë¤. + PHPì ì ì ë³ìì ì§ì ë³ìë¤ì ì¤ë¼í´ ìì¹ë³´ì ì(Oracle placeholder) + ë¡ì ì°ê³(binding), full LOB, FILE, ROWID를 ì§ìíë©°, + user-supplied define variableì ì¬ì©í ì ìëë¡ í´ ì¤ë¤. </para> <para> - ì´ ëë¼ì´ë²ë¥¼ ì¬ì©í기 ì ì ì¤ë¼í´ ì ì ì ì¹ìë² ì ì ìê² - ì í¨í ì¤ë¼í´ íê²½ë³ì를 ì ì©íëì§ íì¸í´ì¼íë¤. - ì ì©ìí¬ íê²½ë³ì: + ì´ í¨ì를 ì¬ì©í기 ì ì ì¤ë¼í´ ê³ì ê³¼ ì¹ ë°ëª¬ ê³ì ì + ì í¨í ì¤ë¼í´ íê²½ë³ì를 ì ì©íëì§ íì¸í´ì¼íë¤. + ì ì©ìí¬ íê²½ë³ì: <itemizedlist> <listitem> <simpara> @@ -52,14 +53,52 @@ </itemizedlist> </para> <para> - ì¹ìë² ì ì ìê² íê²½ë³ì를 ì ì©ííì, - ì¹ìë² ì ì (nobody, www)를 ì¤ë¼í´ 그룹ì ì¶ê°íëì§ íì¸í´ì¼ íë¤. + ì¹ìë² ê³ì ì¼ë¡ ì íê²½ë³ì를 ì ì©ííì, + ì¹ìë² ê³ì (nobody, www)ì ì¤ë¼í´ 그룹ì ì¶ê°íëì§ íì¸í´ì¼ íë¤. </para> + <note> + <title>ì¹ìë²ê° ììíì§ ìê±°ë ììì ì ëë¡ ìëíì§ ìì¼ë©´</title> + <para> + ìíì¹ê° pthread ë¼ì´ë¸ë¬ë¦¬ì ë§í¬ëì´ìëì§ ì²´í¬íë¼: + </para> + <para> + <informalexample> + <screen> +<![CDATA[ +# ldd /www/apache/bin/httpd + libpthread.so.0 => /lib/libpthread.so.0 (0x4001c000) + libm.so.6 => /lib/libm.so.6 (0x4002f000) + libcrypt.so.1 => /lib/libcrypt.so.1 (0x4004c000) + libdl.so.2 => /lib/libdl.so.2 (0x4007a000) + libc.so.6 => /lib/libc.so.6 (0x4007e000) + /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) +]]> + </screen> + </informalexample> + </para> + <para> + libpthreadê° ë³´ì´ì§ ìì¼ë©´ ìíì¹ë¥¼ ë¤ì ì¤ì¹í´ì¼íë¤ : + </para> + <para> + <informalexample> + <screen> +<![CDATA[ +# cd /usr/src/apache_1.3.xx +# make clean +# LIBS=-lpthread ./config.status +# make +# make install +]]> + </screen> + </informalexample> + </para> + </note> <para> <example> <title>OCI Hints</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php // by sergo@bacup.ru // Use option: OCI_DEFAULT for execute command to delay execution @@ -79,18 +118,21 @@ OCIBindByName ($stmt, ":field2", &$clob, -1, OCI_B_CLOB); OCIExecute($stmt, OCI_DEFAULT); $clob->save ("some text"); +OCICommit($conn); ?> +]]> </programlisting> </example> </para> <para> - command-lineìì ë´ì¥ íë¡ìì (stored procedures)를 ì°ëê²ì²ë¼ - ì¬ì©ì´ ê°í¸íë¤. + 커맨ë ë¼ì¸(command-line)ììì ì¬ì© ë°©ìê³¼ ëì¼íê² + ë´ì¥ íë¡ìì (stored procedures)를 ì¬ì©í ì ìë¤. <example> <title>ë´ì¥ íë¡ìì (Stored Procedures) ì¬ì©í기</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php // by webmaster@remoterealty.com $sth = OCIParse ( $dbh, "begin sp_newaddress( :address_id, '$firstname', '$lastname', '$company', '$address1', '$address2', '$city', '$state', @@ -104,7 +146,8 @@ OCIBindByName ( $sth, ":error_code", $errorcode, 10 ); OCIExecute ( $sth ); -?> +?> +]]> </programlisting> </example> </para> @@ -114,8 +157,7 @@ <refnamediv> <refname>OCIDefineByName</refname> <refpurpose> - SELECT 구문(Statement)ì ì¬ì©íë ëì ì ìë¨ê³(define-step)를 ìí - PHP ë³ì를 í ë¹íë¤. + í SELECT 구문ì¬ì©ì ì ìë¨ê³(define-step)를 ìí PHP ë³ì를 í ë¹íë¤. </refpurpose> </refnamediv> <refsect1> @@ -132,7 +174,7 @@ </funcsynopsis> <para> <function>OCIDefineByName</function>í¨ìë - íì¹(fetch)í 컬ë¼ì ì¬ì©ìì ì ë³ì ì í ë¹íë¤. + íì¹(fetch)í 컬ë¼ì ì¬ì©ìì ì PHPë³ì ì í ë¹íë¤. ë¬¼ë¡ , ì¤ë¼í´ ì ì ë select 구문ìì ì문ì 컬ë¼ëª ì ì¸ì ìì§ë§, <function>OCIDefineByName</function>í¨ìì <parameter>Column-Name</parameter>ì¸ìë ë°ëì ë문ìë¡ ì ì´ì¼ íë¤. @@ -147,7 +189,8 @@ <example> <title>OCIDefineByName</title> <programlisting> -<?php +<![CDATA[ +<?php /* OCIDefineByPos example thies@thieso.net (980219) */ $conn = OCILogon("scott","tiger"); @@ -169,6 +212,7 @@ OCIFreeStatement($stmt); OCILogoff($conn); ?> +]]> </programlisting> </example> </refsect1> @@ -200,13 +244,13 @@ <parameter>ph_name</parameter>ë³ìì ì°ê³ìí¨ë¤. ì©ëê° ì ë ¥ì¸ì§ ì¶ë ¥ì¸ì§ë ì¤ìê°ì¼ë¡ ê²°ì ë ê²ì´ê³ , ì¶©ë¶í ì ì¥ ê³µê°ì´ í ë¹ë íìê° ìë¤. <parameter>length</parameter>ì¸ì - ë ë°ì¸ë를 ìí ìµë 길ì´ë¥¼ ì¸í íë¤. <parameter>length</parameter>ì¸ì를 + ë ì°ê³ë¥¼ ìí ìµë ì©ëì ì¸í íë¤. <parameter>length</parameter>ì¸ì를 -1ë¡ ì¸í íë©´ <function>OCIBindByName</function>í¨ìë - ë°ì¸ë를 ìí ìµë 길ì´ë¥¼ <parameter>variable</parameter>ì - íì¬ ê¸¸ì´ë¡ ì¬ì©í ê²ì´ë¤. + ì°ê³ë¥¼ ìí ìµë ì©ëì <parameter>variable</parameter>ì + íì¬ ì©ëì¼ë¡ ì¬ì©í ê²ì´ë¤. </para> <para> - ì¶ìí ë°ì´í°íì (LOB/ROWID/BFILE)ì ë°ì¸ë í íìê° ìë¤ë©´ + ì¶ìí ë°ì´í°íì (LOB/ROWID/BFILE)ì ì°ê³ í íìê° ìë¤ë©´ ì°ì ì <function>OCINewDescriptor</function>í¨ì를 ì¬ì©í´ì ë³ì를 í ë¹í´ì¼ íë¤. <parameter>length</parameter>ì¸ìë ì¶ìí ë°ì´í°íì @@ -220,7 +264,8 @@ <example> <title>OCIDefineByName</title> <programlisting> -<?php +<![CDATA[ +<?php /* OCIBindByPos example thies@thieso.net (980221) inserts 3 records into emp, and uses the ROWID for updating the records just after the insert. @@ -229,8 +274,8 @@ $conn = OCILogon("scott","tiger"); $stmt = OCIParse($conn,"insert into emp (empno, ename) ". - "values (:empno,:ename) ". - "returning ROWID into :rid"); + "values (:empno,:ename) ". + "returning ROWID into :rid"); $data = array(1111 => "Larry", 2222 => "Bill", 3333 => "Jim"); @@ -270,17 +315,18 @@ OCILogoff($conn); ?> +]]> </programlisting> </example> <warning> - <para> + </para> It is a bad idea to use magic quotes and <function>OciBindByName</function> simultaneously as no quoting is needed on quoted variables and any quotes magically applied will be written into your database as <function>OciBindByName</function> is not able to distinguish magically added quotings from those added by intention. - </para> + </para> </warning> </refsect1> </refentry> @@ -288,7 +334,7 @@ <refentry id="function.ocilogon"> <refnamediv> <refname>OCILogon</refname> - <refpurpose>ì¤ë¼í´ ì ìì íì±íë¤.</refpurpose> + <refpurpose>ì¤ë¼í´ ë°ì´í°ë² ì´ì¤ì ì ìíë¤.</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -303,15 +349,15 @@ </funcprototype> </funcsynopsis> <para> - <function>OCILogon</function> ë¤ë¥¸ OCI í¨ì í¸ì¶ì íìí ì ì ë³ì를 - ë겨ì¤ë¤. ì¸ë²ì§¸ ì¸ìë ë¡ì»¬ ì¤ë¼í´ ì¸ì¤í´ì¤(local Oracle instance)ì´ë¦, - ëë tnsnames.ora ì¤ì íì¼ì ì¤ì ë ìí¸ë¦¬(entry) ì´ë¦ì´ ë ì ìë¤. + <function>OCILogon</function>í¨ìë ë¤ë¥¸ OCI í¨ì í¸ì¶ì íìí ì ì ë³ì를 + ë겨ì¤ë¤. ì¸ë²ì§¸ ì¸ìë ë¡ì»¬ ì¤ë¼í´ ì¸ì¤í´ì¤ëª ì´ë + tnsnames.ora ì¤ì íì¼ì ì¤ì ë ìí¸ë¦¬(entry)ëª ì´ ë ì ìë¤. ì¸ë²ì§¸ ì¸ì를 ìëµí ê²½ì°, PHPë ì ìí ë°ì´í°ë² ì´ì¤ë¥¼ ê²°ì í기 ìí´ì íê²½ë³ì ORACLE_SID(Oracle instance) ëë TWO_TASK(tnsnames.ora)를 ì´ì©íë¤. </para> <para><function>OCILogon</function> í¨ì를 ì¬ì©í ëë§ë¤ ê° ì ìì - íì´ì§ ë 벨ìì ë¶ë°°ëì´ì§ë¤. ì´ê²ì ê° íì´ì§ìì ì´ë¦° 모ë + íì´ì§ ë 벨ìì ë¶ë°°ëì´ì§ë¤. ì¦, íì´ì§ ììì ì´ë¦° 모ë í¸ëìì ì 커ë°(commits)ê³¼ 롤백(rollbacks)ì´ ì ì©ëì´ì§ë¤ë ê²ì ì미íë¤. ëê°ì´ìì ì ìì ë§ë¤ì§ë¼ë. </para> @@ -320,8 +366,9 @@ <example> <title>OCILogon</title> <programlisting> -<?php -print "<HTML><PRE>"; +<![CDATA[ +<?php +print "<HTML><PRE>"; $db = ""; $c1 = ocilogon("scott","tiger",$db); @@ -367,7 +414,7 @@ ociexecute($stmt,OCI_DEFAULT); echo $conn."----selecting\n\n"; while (ocifetch($stmt)) - echo $conn." <".ociresult($stmt,"TEST").">\n\n"; + echo $conn." <".ociresult($stmt,"TEST").">\n\n"; echo $conn."----done\n\n"; } @@ -398,8 +445,12 @@ drop_table($c1); -print "</PRE></HTML>"; -?></programlisting></example></para> +print "</PRE></HTML>"; +?> +]]> + </programlisting> + </example> + </para> <simpara> See also <function>OCIPLogon</function> and <function>OCINLogon</function>.</simpara> @@ -460,10 +511,10 @@ </funcsynopsis> <para> <function>OCINLogon</function> ì¤ë¼í´8 DBì ìë¡ì´ ì ìì íì±íê³ , - ë¡ê·¸ì¨ íë¤. ì¸ë²ì§¸ ì¸ìë ë¡ì»¬ ì¤ë¼í´ ì¸ì¤í´ì¤(local Oracle instanace)ì - ì´ë¦, ëë tnsnames.oraì¤ì íì¼ì ìí¸ë¦¬(entry) ì´ë¦ì´ ë ì ìë¤. + ë¡ê·¸ì¨ íë¤. ì¸ë²ì§¸ ì¸ìë ë¡ì»¬ ì¤ë¼í´ ì¸ì¤í´ì¤ëª ì´ë + tnsnames.ora ì¤ì íì¼ì ìí¸ë¦¬(entry)ëª ì´ ë ì ìë¤. ì¸ë²ì§¸ ì¸ìê° ìëµëë©´, PHPë ì ìí ì¤ë¼í´ ë°ì´í°ë² ì´ì¤ë¥¼ ê²°ì í기 ìí´ - íê²½ë³ì ORACLE_SID (Oracle instance)ë TWO_TASK(tnsnames.ora)를 + íê²½ë³ì ORACLE_SID(Oracle instance)ë TWO_TASK(tnsnames.ora)를 ì´ì©íë¤. </para> <para> @@ -476,12 +527,13 @@ 모ë 커ë°(commits)ê³¼ 롤백(rollbacks)ì í¹ì ì ììë§ ì ì©ëì´ì§ë¤. </para> <para> - This example demonstrates how the connections are separated. + ì´ ìì ë ì ìì´ ì´ë»ê² ë¶ë¦¬ëëì§ ë³´ì¬ì¤ë¤. <example> <title>OCINLogon</title> <programlisting> -<?php -print "<HTML><PRE>"; +<![CDATA[ +<?php +print "<HTML><PRE>"; $db = ""; $c1 = ocilogon("scott","tiger",$db); @@ -528,7 +580,7 @@ ociexecute($stmt,OCI_DEFAULT); echo $conn."----selecting\n\n"; while (ocifetch($stmt)) - echo $conn." <".ociresult($stmt,"TEST").">\n\n"; + echo $conn." <".ociresult($stmt,"TEST").">\n\n"; echo $conn."----done\n\n"; } @@ -558,8 +610,11 @@ drop_table($c1); -print "</PRE></HTML>"; -?></programlisting></example> +print "</PRE></HTML>"; +?> +]]> + </programlisting> + </example> </para> <simpara> See also <function>OCILogon</function> and @@ -571,7 +626,7 @@ <refentry id="function.ocilogoff"> <refnamediv> <refname>OCILogOff</refname> - <refpurpose>ì¤ë¼í´ë¡ ë¶í° ì ìì í´ì íë¤.</refpurpose> + <refpurpose>ì¤ë¼í´ë¡ë¶í° ì ìì í´ì íë¤.</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -582,7 +637,7 @@ </funcprototype> </funcsynopsis> <para> - <function>OCILogOff</function> ì¤ë¼í´ ì ìì ë«ëë¤. + <function>OCILogOff</function> ì¤ë¼í´ ì ìì í´ì íë¤. </para> </refsect1> </refentry> @@ -604,10 +659,10 @@ </funcprototype> </funcsynopsis> <para> - <function>OCIExecute</function> 미리 í´ìë 구문(statement)ì + <function>OCIExecute</function>í¨ìë 미리 í´ìë 구문(statement)ì ì¤ííë¤. (<function>OCIParse</function>í¨ì를 ë³´ë¼.) ì íì ì¸ ì¸ì <parameter>mode</parameter>ì execution-mode(ëí´í¸ë - OCI_COMMIT_ON_SUCCESSì´ë¤)를 ì§ì í ì ìë¤. ê° êµ¬ë¬¸ì´ ìëì ì¼ë¡ + OCI_COMMIT_ON_SUCCESS)를 ì§ì í ì ìë¤. ê° êµ¬ë¬¸ì´ ìëì ì¼ë¡ 커ë°(commit)ëì§ ì기를 ìíë©´ OCI_DEFAULTë¡ ì¤ì íë©´ ëë¤. </para> </refsect1> @@ -627,7 +682,7 @@ </funcprototype> </funcsynopsis> <para> - <function>OCICommit</function> ì¤ë¼í´ ì ì íë¼ë¯¸í° + <function>OCICommit</function>í¨ìë ì¤ë¼í´ ì ì ì¸ìì¸ <parameter>connection</parameter>ì ëí´ì 미결ì ë 모ë 구문(outstanding statements)ì 커ë°íë¤. </para> @@ -648,7 +703,7 @@ </funcprototype> </funcsynopsis> <para> - <function>OCIRollback</function> ì¤ë¼í´ ì ì íë¼ë¯¸í° + <function>OCIRollback</function>í¨ìë ì¤ë¼í´ ì ì ì¸ì <parameter>connection</parameter>ì ëí´ì 미결ì ë 모ë 구문(outstanding statements)ì 롤백 ì²ë¦¬íë¤. </para> @@ -674,18 +729,19 @@ </funcprototype> </funcsynopsis> <para> - <function>OCINewDescriptor</function>í¨ìë hold descpriptorë + <function>OCINewDescriptor</function>í¨ìë descpriptorë LOB locator를 ìí ì ì¥ê³µê°ì í ë¹íë¤. - ì í¨í <parameter>type</parameter>ê°ì OCI_D_FILE, OCI_D_LOB, + ì í¨í <parameter>type</parameter>ì¸ìê°ì OCI_D_FILE, OCI_D_LOB, OCI_D_ROWID ì´ë¤. - LOB descriptor를 ìí´ load, save, savefile ë©ìëê° - descriptorì ì°ê²°ëì´ ìë¤. BFILE를 ìí´ìë load ë©ìëë§ì´ ì¡´ì¬íë¤. + LOB descriptorì load, save, savefile ë©ìë를 ì¬ì©í ì ìê³ , + BFILEì load ë©ìëë§ ì¬ì©ê°ë¥íë¤. See the second example usage hints. </para> <example> <title>OCINewDescriptor</title> <programlisting> -<?php +<![CDATA[ +<?php /* This script is designed to be called from a HTML form. * It expects $user, $password, $table, $where, and $commitsize * to be passed in from the form. The script then deletes @@ -712,22 +768,24 @@ OCIFreeStatement($stmt); OCILogoff($conn); ?> +]]> </programlisting> <programlisting> -<?php +<![CDATA[ +<?php /* This script demonstrates file upload to LOB columns * The formfield used for this example looks like this - * <form action="upload.php3" method="post" enctype="multipart/form-data"> - * <input type="file" name="lob_upload"> + * <form action="upload.php3" method="post" enctype="multipart/form-data"> + * <input type="file" name="lob_upload"> * ... */ if(!isset($lob_upload) || $lob_upload == 'none'){ ?> -<form action="upload.php3" method="post" enctype="multipart/form-data"> -Upload file: <input type="file" name="lob_upload"><br> -<input type="submit" value="Upload"> - <input type="reset"> -</form> -<?php +<form action="upload.php3" method="post" enctype="multipart/form-data"> +Upload file: <input type="file" name="lob_upload"><br> +<input type="submit" value="Upload"> - <input type="reset"> +</form> +<?php } else { // $lob_upload contains the temporary filename of the uploaded file $conn = OCILogon($user, $password); @@ -747,6 +805,39 @@ OCILogoff($conn); } ?> +]]> + </programlisting> + </example> + <example> + <title>OCINewDescriptor</title> + <programlisting> +<![CDATA[ +<?php + /* Calling PL/SQL stored procedures which contain clobs as input + * parameters (PHP 4 >= 4.0.6). + * Example PL/SQL stored procedure signature is: + * + * PROCEDURE save_data + * Argument Name Type In/Out Default? + * ------------------------------ ----------------------- ------ -------- + * KEY NUMBER(38) IN + * DATA CLOB IN + * + */ + + $conn = OCILogon($user, $password); + $stmt = OCIParse($conn, "begin save_data(:key, :data); end;"); + $clob = OCINewDescriptor($conn, OCI_D_LOB); + OCIBindByName($stmt, ':key', $key); + OCIBindByName($stmt, ':data', $clob, -1, OCI_B_CLOB); + $clob->WriteTemporary($data); + OCIExecute($stmt, OCI_DEFAULT); + OCICommit($conn); + $clob->close(); + $clob->free(); + OCIFreeStatement($stmt); +?> +]]> </programlisting> </example> </refsect1> @@ -773,24 +864,28 @@ <example> <title>OCIRowCount</title> <programlisting> -<?php - print "<HTML><PRE>"; +<![CDATA[ +<?php + print "<HTML><PRE>"; $conn = OCILogon("scott","tiger"); $stmt = OCIParse($conn,"create table emp2 as select * from emp"); OCIExecute($stmt); - print OCIRowCount($stmt) . " rows inserted.<BR>"; + print OCIRowCount($stmt) . " rows inserted.<BR>"; OCIFreeStatement($stmt); $stmt = OCIParse($conn,"delete from emp2"); OCIExecute($stmt); - print OCIRowCount($stmt) . " rows deleted.<BR>"; + print OCIRowCount($stmt) . " rows deleted.<BR>"; OCICommit($conn); OCIFreeStatement($stmt); $stmt = OCIParse($conn,"drop table emp2"); OCIExecute($stmt); OCIFreeStatement($stmt); OCILogOff($conn); - print "</PRE></HTML>"; -?> </programlisting></example> + print "</PRE></HTML>"; +?> +]]> + </programlisting> + </example> </para> </refsect1> </refentry> @@ -816,15 +911,16 @@ <example> <title>OCINumCols</title> <programlisting> -<?php - print "<HTML><PRE>\n"; +<![CDATA[ +<?php + print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); $stmt = OCIParse($conn,"select * from emp"); OCIExecute($stmt); while ( OCIFetch($stmt) ) { print "\n"; $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { + for ( $i = 1; $i <= $ncols; $i++ ) { $column_name = OCIColumnName($stmt,$i); $column_value = OCIResult($stmt,$i); print $column_name . ': ' . $column_value . "\n"; @@ -833,9 +929,10 @@ } OCIFreeStatement($stmt); OCILogoff($conn); - print "</PRE>"; - print "</HTML>\n"; + print "</PRE>"; + print "</HTML>\n"; ?> +]]> </programlisting> </example> </refsect1> @@ -859,8 +956,8 @@ <function>OCIResult</function>í¨ìë íì¬ ì´ì ì»¬ë¼ <parameter>column</parameter>ì ëí ë°ì´í°ë¥¼ 리í´íë¤ (<function>OCIFetch</function>í¨ì를 ë³´ë¼). - <function>OCIResult</function>í¨ìë ì¶ìíë°ì´í°íì (ROWID, LOB, FILE)ì - ì ì¸í 문ìì´ê°ì 모ë ê²ì 리í´í ê²ì´ë¤. + <function>OCIResult</function>í¨ìë ì¶ìíë°ì´í°íì (ROWID, LOB, FILE)ì + ì ì¸í 문ìì´ë¡ì 모ë ê²ì 리í´í ê²ì´ë¤. </para> </refsect1> </refentry> @@ -911,23 +1008,19 @@ ì¼ì°¨ì ë°°ì´ì í¬í¨í ê²ì´ë¤. </para> <para> - The <parameter>mode</parameter> parameter allows you to change the - default behaviour. You can specify more than one flag by simply - adding them up (eg OCI_ASSOC+OCI_RETURN_NULLS). The known flags - are: <parameter>mode</parameter>ì¸ìë ì´ í¨ìì 기본ê°ì ë³íìí¨ë¤. - íê° ì´ìì íë그를 ì¶ê°í ììë¤(OCI_ASSOC+OCI_RETURN_NULLSì ê°ì´). - ìë ¤ì§ íëê·¸ë ë¤ìê³¼ ê°ë¤: + íê° ì´ìì íë그를 ì¶ê°í ììë¤(OCI_ASSOC+OCI_RETURN_NULLSì ê°ì´). + ìë ¤ì§ íëê·¸ë ë¤ìê³¼ ê°ë¤: <simplelist> <member> <literal>OCI_ASSOC</literal> ì°ê´ë°°ì´(associative array)ì 리í´íë¤. </member> <member> - <literal>OCI_NUM</literal> 1ë¶í° ììíë ì«ì를 ê°ë ë³ì를 리í´íë¤. + <literal>OCI_NUM</literal> í¤ê°ì´ 0ë¶í° ììíë ë°°ì´ì 리í´íë¤. (ëí´í¸) </member> <member> - <literal>OCI_RETURN_NULLS</literal> ë¹ ì»¬ë¼ì 리í´íë¤. + <literal>OCI_RETURN_NULLS</literal> ë¹ ì»¬ë¼ë 리í´íë¤. </member> <member> <literal>OCI_RETURN_LOBS</literal>descriptor ëì ì LOBì ê°ì 리í´íë¤. @@ -960,7 +1053,8 @@ <example> <title>OCIFetchStatement</title> <programlisting> -<?php +<![CDATA[ +<?php /* OCIFetchStatement example mbritton@verinet.com (990624) */ $conn = OCILogon("scott","tiger"); @@ -971,31 +1065,32 @@ $nrows = OCIFetchStatement($stmt,$results); if ( $nrows > 0 ) { - print "<TABLE BORDER=\"1\">\n"; - print "<TR>\n"; + print "<TABLE BORDER=\"1\">\n"; + print "<TR>\n"; while ( list( $key, $val ) = each( $results ) ) { - print "<TH>$key</TH>\n"; + print "<TH>$key</TH>\n"; } - print "</TR>\n"; + print "</TR>\n"; - for ( $i = 0; $i < $nrows; $i++ ) { + for ( $i = 0; $i < $nrows; $i++ ) { reset($results); - print "<TR>\n"; + print "<TR>\n"; while ( $column = each($results) ) { $data = $column['value']; - print "<TD>$data[$i]</TD>\n"; + print "<TD>$data[$i]</TD>\n"; } - print "</TR>\n"; + print "</TR>\n"; } - print "</TABLE>\n"; + print "</TABLE>\n"; } else { - echo "No data found<BR>\n"; + echo "No data found<BR>\n"; } -print "$nrows Records Selected<BR>\n"; +print "$nrows Records Selected<BR>\n"; OCIFreeStatement($stmt); OCILogoff($conn); ?> +]]> </programlisting> </example> </refsect1> @@ -1048,33 +1143,35 @@ <example> <title>OCIColumnName</title> <programlisting> -<?php - print "<HTML><PRE>\n"; +<![CDATA[ +<?php + print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); $stmt = OCIParse($conn,"select * from emp"); OCIExecute($stmt); - print "<TABLE BORDER=\"1\">"; - print "<TR>"; - print "<TH>Name</TH>"; - print "<TH>Type</TH>"; - print "<TH>Length</TH>"; - print "</TR>"; + print "<TABLE BORDER=\"1\">"; + print "<TR>"; + print "<TH>Name</TH>"; + print "<TH>Type</TH>"; + print "<TH>Length</TH>"; + print "</TR>"; $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { + for ( $i = 1; $i <= $ncols; $i++ ) { $column_name = OCIColumnName($stmt,$i); $column_type = OCIColumnType($stmt,$i); $column_size = OCIColumnSize($stmt,$i); - print "<TR>"; - print "<TD>$column_name</TD>"; - print "<TD>$column_type</TD>"; - print "<TD>$column_size</TD>"; - print "</TR>"; + print "<TR>"; + print "<TD>$column_name</TD>"; + print "<TD>$column_type</TD>"; + print "<TD>$column_size</TD>"; + print "</TR>"; } OCIFreeStatement($stmt); OCILogoff($conn); - print "</PRE>"; - print "</HTML>\n"; + print "</PRE>"; + print "</HTML>\n"; ?> +]]> </programlisting> </example> </para> @@ -1109,34 +1206,36 @@ <example> <title>OCIColumnSize</title> <programlisting> -<?php - print "<HTML><PRE>\n"; +<![CDATA[ +<?php + print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); $stmt = OCIParse($conn,"select * from emp"); OCIExecute($stmt); - print "<TABLE BORDER=\"1\">"; - print "<TR>"; - print "<TH>Name</TH>"; - print "<TH>Type</TH>"; - print "<TH>Length</TH>"; - print "</TR>"; + print "<TABLE BORDER=\"1\">"; + print "<TR>"; + print "<TH>Name</TH>"; + print "<TH>Type</TH>"; + print "<TH>Length</TH>"; + print "</TR>"; $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { + for ( $i = 1; $i <= $ncols; $i++ ) { $column_name = OCIColumnName($stmt,$i); $column_type = OCIColumnType($stmt,$i); $column_size = OCIColumnSize($stmt,$i); - print "<TR>"; - print "<TD>$column_name</TD>"; - print "<TD>$column_type</TD>"; - print "<TD>$column_size</TD>"; - print "</TR>"; + print "<TR>"; + print "<TD>$column_name</TD>"; + print "<TD>$column_type</TD>"; + print "<TD>$column_size</TD>"; + print "</TR>"; } - print "</TABLE>"; + print "</TABLE>"; OCIFreeStatement($stmt); OCILogoff($conn); - print "</PRE>"; - print "</HTML>\n"; + print "</PRE>"; + print "</HTML>\n"; ?> +]]> </programlisting> </example> </para> @@ -1170,33 +1269,35 @@ <example> <title>OCIColumnType</title> <programlisting> -<?php - print "<HTML><PRE>\n"; +<![CDATA[ +<?php + print "<HTML><PRE>\n"; $conn = OCILogon("scott", "tiger"); $stmt = OCIParse($conn,"select * from emp"); OCIExecute($stmt); - print "<TABLE BORDER=\"1\">"; - print "<TR>"; - print "<TH>Name</TH>"; - print "<TH>Type</TH>"; - print "<TH>Length</TH>"; - print "</TR>"; + print "<TABLE BORDER=\"1\">"; + print "<TR>"; + print "<TH>Name</TH>"; + print "<TH>Type</TH>"; + print "<TH>Length</TH>"; + print "</TR>"; $ncols = OCINumCols($stmt); - for ( $i = 1; $i <= $ncols; $i++ ) { + for ( $i = 1; $i <= $ncols; $i++ ) { $column_name = OCIColumnName($stmt,$i); $column_type = OCIColumnType($stmt,$i); $column_size = OCIColumnSize($stmt,$i); - print "<TR>"; - print "<TD>$column_name</TD>"; - print "<TD>$column_type</TD>"; - print "<TD>$column_size</TD>"; - print "</TR>"; + print "<TR>"; + print "<TD>$column_name</TD>"; + print "<TD>$column_type</TD>"; + print "<TD>$column_size</TD>"; + print "</TR>"; } OCIFreeStatement($stmt); OCILogoff($conn); - print "</PRE>"; - print "</HTML>\n"; + print "</PRE>"; + print "</HTML>\n"; ?> +]]> </programlisting> </example> </para> @@ -1225,11 +1326,13 @@ <example> <title>OCIServerVersion</title> <programlisting> -<?php +<![CDATA[ +<?php $conn = OCILogon("scott","tiger"); print "Server Version: " . OCIServerVersion($conn); OCILogOff($conn); ?> +]]> </programlisting> </example> </para> @@ -1252,34 +1355,36 @@ <para> <function>OCIStatementType</function> í¨ìë ë¤ìì¤ íë를 리í´íë¤: <orderedlist> - <listitem><simpara> "SELECT"</simpara></listitem> - <listitem><simpara> "UPDATE"</simpara></listitem> - <listitem><simpara> "DELETE"</simpara></listitem> - <listitem><simpara> "INSERT"</simpara></listitem> - <listitem><simpara> "CREATE"</simpara></listitem> - <listitem><simpara> "DROP"</simpara></listitem> - <listitem><simpara> "ALTER"</simpara></listitem> - <listitem><simpara> "BEGIN"</simpara></listitem> - <listitem><simpara> "DECLARE"</simpara></listitem> - <listitem><simpara> "UNKNOWN"</simpara></listitem> + <listitem><simpara> "SELECT"</simpara></listitem> + <listitem><simpara> "UPDATE"</simpara></listitem> + <listitem><simpara> "DELETE"</simpara></listitem> + <listitem><simpara> "INSERT"</simpara></listitem> + <listitem><simpara> "CREATE"</simpara></listitem> + <listitem><simpara> "DROP"</simpara></listitem> + <listitem><simpara> "ALTER"</simpara></listitem> + <listitem><simpara> "BEGIN"</simpara></listitem> + <listitem><simpara> "DECLARE"</simpara></listitem> + <listitem><simpara> "UNKNOWN"</simpara></listitem> </orderedlist></para> <para> <example> <title>Code examples</title> <programlisting> -<?php - print "<HTML><PRE>"; +<![CDATA[ +<?php + print "<HTML><PRE>"; $conn = OCILogon("scott","tiger"); $sql = "delete from emp where deptno = 10"; $stmt = OCIParse($conn,$sql); if ( OCIStatementType($stmt) == "DELETE" ) { - die "You are not allowed to delete from this table<BR>"; + die "You are not allowed to delete from this table<BR>"; } OCILogoff($conn); - print "</PRE></HTML>"; + print "</PRE></HTML>"; ?> +]]> </programlisting> </example> </para> @@ -1290,7 +1395,7 @@ <refnamediv> <refname>OCINewCursor</refname> <refpurpose> - Return a new cursor (Statement-Handle) - use to bind ref-cursors. + ìë¡ì´ 커ì(구문 í¸ë¤)를 리í´íë¤ - ref-cursor를 ì°ê³í기ìí¨. </refpurpose> </refnamediv> <refsect1> @@ -1302,14 +1407,14 @@ </funcprototype> </funcsynopsis> <para> - <function>OCINewCursor</function> allocates a new statement handle - on the specified connection. + <function>OCINewCursor</function>í¨ìë í¹ì ì ìì ì ê´í + ìë¡ì´ 구문 í¸ë¤ì í ë¹íë¤. </para> <para> - <example> - <title>Using a REF CURSOR from a stored procedure</title> + <example> <title>ì¤í ì´ë íë¡ìì ì REF CURSOR ì¬ì©í기</title> <programlisting> -<?php +<![CDATA[ +<?php // suppose your stored procedure info.output returns a ref cursor in :data $conn = OCILogon("scott","tiger"); @@ -1328,46 +1433,49 @@ OCIFreeStatement($curs); OCILogoff($conn); ?> +]]> </programlisting> </example> </para> <para> <example> - <title>Using a REF CURSOR in a select statement</title> + <title>SELECT 구문ì REF CURSOR ì¬ì©í기</title> <programlisting> -<?php -print "<HTML><BODY>"; +<![CDATA[ +<?php +print "<HTML><BODY>"; $conn = OCILogon("scott","tiger"); $count_cursor = "CURSOR(select count(empno) num_emps from emp " . "where emp.deptno = dept.deptno) as EMPCNT from dept"; $stmt = OCIParse($conn,"select deptno,dname,$count_cursor"); ociexecute($stmt); -print "<TABLE BORDER=\"1\">"; -print "<TR>"; -print "<TH>DEPT NAME</TH>"; -print "<TH>DEPT #</TH>"; -print "<TH># EMPLOYEES</TH>"; -print "</TR>"; +print "<TABLE BORDER=\"1\">"; +print "<TR>"; +print "<TH>DEPT NAME</TH>"; +print "<TH>DEPT #</TH>"; +print "<TH># EMPLOYEES</TH>"; +print "</TR>"; while (OCIFetchInto($stmt,&$data,OCI_ASSOC)) { - print "<TR>"; + print "<TR>"; $dname = $data["DNAME"]; $deptno = $data["DEPTNO"]; - print "<TD>$dname</TD>"; - print "<TD>$deptno</TD>"; + print "<TD>$dname</TD>"; + print "<TD>$deptno</TD>"; ociexecute($data[ "EMPCNT" ]); while (OCIFetchInto($data[ "EMPCNT" ],&$subdata,OCI_ASSOC)) { $num_emps = $subdata["NUM_EMPS"]; - print "<TD>$num_emps</TD>"; + print "<TD>$num_emps</TD>"; } - print "</TR>"; + print "</TR>"; } -print "</TABLE>"; -print "</BODY></HTML>"; +print "</TABLE>"; +print "</BODY></HTML>"; OCIFreeStatement($stmt); OCILogoff($conn); ?> +]]> </programlisting> </example> </para> @@ -1390,7 +1498,7 @@ </funcprototype> </funcsynopsis> <para> - <function>OCIFreeStatement</function> í¨ìë ìì í´ì ì ì±ê³µíë©´ &true;를 + <function>OCIFreeStatement</function>í¨ìë ìì í´ì ì ì±ê³µíë©´ &true;를 리í´íê³ , ì¤í¨íë©´ &false;를 리í´íë¤. </para> </refsect1> @@ -1457,8 +1565,8 @@ ì¬ì©íë <parameter>query</parameter>를 í´ìíë¤. ì§ì(query)ê° ì í¨íë©´ 구문(statement)를 리í´íë¤. ê·¸ë ì§ ìì¼ë©´ &false;를 리í´íë¤. - <parameter>query</parameter>ì¸ìë ì´ë¤ ì í¨í SQL 구문(statement) - ë ë ì ìë¤. + <parameter>query</parameter>ì¸ìë ì í¨í SQL 구문(statement)ì´ë + PL/SQLë¸ë¡ì´ ë ì ìë¤. </simpara> </refsect1> </refentry> @@ -1509,9 +1617,6 @@ </funcprototype> </funcsynopsis> <simpara> - <function>OCIInternalDebug</function> enables internal debug - output. Set <parameter>onoff</parameter> to 0 to turn debug - output off, 1 to turn it on. <function>OCIInternalDebug</function>í¨ìë ë´ë¶ ëë²ê·¸ ì¶ë ¥ì íì±í ìí¨ë¤. <parameter>onoff</parameter>ì¸ì를 0ì¼ë¡ ëì¼ë©´ ë¹íì±í ëê³ , @@ -1521,6 +1626,366 @@ </refentry> </reference> + <refentry id="function.ocicancel"> + <refnamediv> + <refname>OCICancel</refname> + <refpurpose>커ìë¡ë¶í° ì½ê¸°ë¥¼ ì·¨ìíë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>OCICancel</function></funcdef> + <paramdef>int <parameter>stmt</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + 커ìë¡ë¶í° ëì´ì ë°ì´í°ë¥¼ ì½ê¸°ë¥¼ ìì¹ìì¼ë©´, + <function>OCICancel</function>í¨ì를 ì°ë¼. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocisetprefetch"> + <refnamediv> + <refname>OCISetPrefetch</refname> + <refpurpose>ì¬ì©í ì´ì ê°¯ì를 ì¤ì íë¤</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>OCISetPrefetch</function></funcdef> + <paramdef>int <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>rows</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + ì¬ì©í ì´ì ê°¯ì를 ì¤ì íë¤. 기본ê°ì 1ì´ì´ë¤. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ociwritelobtofile"> + <refnamediv> + <refname>OCIWriteLobToFile</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>OCIWriteLobToFile</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + <paramdef>string <parameter><optional>filename</optional></parameter></paramdef> + <paramdef>int <parameter><optional>start</optional></parameter></paramdef> + <paramdef>int <parameter><optional>lenght</optional></parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocisavelobfile"> + <refnamediv> + <refname>OCISaveLobFile</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCISaveLobFile</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocisavelob"> + <refnamediv> + <refname>OCISaveLob</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCISaveLob</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ociloadlob"> + <refnamediv> + <refname>OCILoadLob</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCILoadLob</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicolumnscale"> + <refnamediv> + <refname>OCIColumnScale</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>OCIColumnScale</function></funcdef> + <paramdef>int <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicolumnprecision"> + <refnamediv> + <refname>OCIColumnPrecision</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>OCIColumnPrecision</function></funcdef> + <paramdef>int <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicolumntyperaw"> + <refnamediv> + <refname>OCIColumnTypeRaw</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>mixed <function>OCIColumnTypeRaw</function></funcdef> + <paramdef>int <parameter>stmt</parameter></paramdef> + <paramdef>int <parameter>col</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocinewcollection"> + <refnamediv> + <refname>OCINewCollection</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCINewCollection</function></funcdef> + <paramdef>int <parameter>conn</parameter></paramdef> + <paramdef>string <parameter>tdo</parameter></paramdef> + <paramdef>string <parameter><optional>shema</optional></parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocifreecollection"> + <refnamediv> + <refname>OCIFreeCollection</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCIFreeCollection</function></funcdef> + <paramdef>object <parameter>lob</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicollassign"> + <refnamediv> + <refname>OCICollAssign</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollAssign</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>object <parameter>object</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicollappend"> + <refnamediv> + <refname>OCICollAppend</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollAppend</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>object <parameter>object</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicollassignelem"> + <refnamediv> + <refname>OCICollAssignElem</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollAssignElem</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>string <parameter>ndx</parameter></paramdef> + <paramdef>string <parameter>val</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicollgetelem"> + <refnamediv> + <refname>OCICollGetElem</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollGetElem</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>string <parameter>ndx</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicollmax"> + <refnamediv> + <refname>OCICollMax</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollMax</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicollsize"> + <refnamediv> + <refname>OCICollSize</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollSize</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + <refentry id="function.ocicolltrim"> + <refnamediv> + <refname>OCICollTrim</refname> + <refpurpose>Coming soon.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>OCICollTrim</function></funcdef> + <paramdef>object <parameter>collection</parameter></paramdef> + <paramdef>int <parameter>num</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <simpara> + Coming soon. + </simpara> + </refsect1> + </refentry> + + </reference> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -1537,4 +2002,7 @@ sgml-local-catalogs:nil sgml-local-ecat-files:nil End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 -->