cvs: phpdoc-zh /reference/oci8/functions oci-pconnect.xml ociplogon.xml
| From: | Dallas Thunder | Date: | Fri, 09 Sep 2005 16:25:05 +0000 |
| Subject: | cvs: phpdoc-zh /reference/oci8/functions oci-pconnect.xml ociplogon.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-2639@lists.php.net to get a copy of this message | ||
dallas Fri Sep 9 12:25:05 2005 EDT
Added files:
/phpdoc-zh/reference/oci8/functions oci-pconnect.xml
Modified files:
/phpdoc-zh/reference/oci8/functions ociplogon.xml
Log:
Updated.
http://cvs.php.net/diff.php/phpdoc-zh/reference/oci8/functions/ociplogon.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-zh/reference/oci8/functions/ociplogon.xml
diff -u phpdoc-zh/reference/oci8/functions/ociplogon.xml:1.2
phpdoc-zh/reference/oci8/functions/ociplogon.xml:1.3
--- phpdoc-zh/reference/oci8/functions/ociplogon.xml:1.2 Thu Aug 18 00:41:32 2005
+++ phpdoc-zh/reference/oci8/functions/ociplogon.xml Fri Sep 9 12:25:04 2005
@@ -1,36 +1,20 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.2 $ -->
-<!-- $Author: lm92 $ -->
-<!-- EN-Revision: 1.4 Maintainer: yincheng Status: ready -->
-<!-- splitted from ./en/functions/oci8.xml, last change in rev 1.15 -->
- <refentry id="function.ociplogon">
- <refnamediv>
- <refname>ociplogon</refname>
- <refpurpose>
-ʹÓÃÒ»¸ö³ÖÐøÐÔÁ¬½ÓÁ¬µ½ Oracle Êý¾Ý¿â
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>ÃèÊö</title>
- <methodsynopsis>
- <type>resource</type><methodname>ociplogon</methodname>
-
<methodparam><type>string</type><parameter>username</parameter></methodparam>
-
<methodparam><type>string</type><parameter>password</parameter></methodparam>
- <methodparam
choice="opt"><type>string</type><parameter>db</parameter></methodparam>
- </methodsynopsis>
- <para>
- <function>ociplogon</function> ´´½¨Ò»¸öµ½ Oracle 8
Êý¾Ý¿âµÄ³ÖÐøÐÔÁ¬½Ó¡£
-¿ÉÑ¡µÄµÚ3¸ö²ÎÊýº¬ÓÐÄãÏëÒªÁ¬½ÓµÄÊý¾Ý¿âµÄÃû×Ö£¬¸ÃÃû×ÖΪ±¾µØ
Oracle
-ʵÁеÄÃû×Ö»òÕßÔÚ tnsnames.ora µÄÌõÄ¿ÖеÄÃû×Ö¡£
-Èç¹ûµÚ3¸ö²ÎÊýûÓж¨Ò壬 PHP ʹÓû·¾³±äÁ¿ ORACLE_SID (Oracle
ʵÁÐ)
-»ò TWO_TASK (tnsnames.ora) À´È·¶¨Á¬½ÓÄÄÒ»¸öÊý¾Ý¿â¡£
- </para>
- <simpara>
- ²Î¼û <function>ocilogon</function> ºÍ
- <function>ocinlogon</function>¡£
- </simpara>
- </refsect1>
- </refentry>
+<!-- $Revision: 1.3 $ -->
+<!-- $Author: dallas $ -->
+<!-- EN-Revision: 1.11 Maintainer: dallas Status: ready -->
+<refentry id="function.ociplogon">
+ <refnamediv>
+ <refname>ociplogon</refname>
+ <refpurpose><function>oci_pconnect</function>
µÄ&Alias;</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <simpara>
+ &info.function.alias;<function>oci_pconnect</function>¡£
+ </simpara>
+ </refsect1>
+</refentry>
<!-- Keep this comment at the end of the file
Local variables:
http://cvs.php.net/co.php/phpdoc-zh/reference/oci8/functions/oci-pconnect.xml?r=1.1&p=1
Index: phpdoc-zh/reference/oci8/functions/oci-pconnect.xml
+++ phpdoc-zh/reference/oci8/functions/oci-pconnect.xml
<?xml version="1.0" encoding="gb2312"?>
<!-- $Revision: 1.1 $ -->
<!-- $Author: dallas $ -->
<!-- EN-Revision: 1.8 Maintainer: yincheng Status: ready -->
<!-- CREDITS: dallas -->
<refentry id="function.oci-pconnect">
<refnamediv>
<refname>oci_pconnect</refname>
<refpurpose>ʹÓÃÒ»¸ö³Ö¾ÃÁ¬½ÓÁ¬µ½ Oracle Êý¾Ý¿â</refpurpose>
</refnamediv>
<refsect1>
<title>˵Ã÷</title>
<methodsynopsis>
<type>resource</type><methodname>oci_pconnect</methodname>
<methodparam><type>string</type><parameter>username</parameter></methodparam>
<methodparam><type>string</type><parameter>password</parameter></methodparam>
<methodparam
choice="opt"><type>string</type><parameter>db</parameter></methodparam>
<methodparam
choice="opt"><type>string</type><parameter>charset</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>session_mode</parameter></methodparam>
</methodsynopsis>
<para>
<function>oci_pconnect</function> ´´½¨Ò»¸öµ½ Oracle
·þÎñÆ÷µÄ³Ö¾ÃÁ¬½Ó²¢µÇ¼¡£³Ö¾ÃÁ¬½Ó»á±»»º³å²¢ÔÚÇëÇóÖ®¼äÖØ¸´Ê¹Ó㬿ÉÒÔ½µµÍÿ¸öÒ³Ãæ¼ÓÔØµÄÏûºÄ¡£Ò»¸öµäÐ͵Ä
PHP Ó¦ÓóÌÐò¶ÔÓÚÿ¸ö Apache ×Ó½ø³Ì£¨»òÕß PHP FastCGI/CGI
½ø³Ì£©»áÓÐÒ»¸ö´ò¿ªµÄ³Ö¾ÃÁ¬½Óµ½ Oracle
·þÎñÆ÷¡£¸ü¶àÐÅÏ¢¼û<link
linkend="features.persistent-connections">Êý¾Ý¿â³Ö¾ÃÁ¬½Ó</link>Ò»½Ú¡£
</para>
<note>
<simpara>
×Ô OCI8 À©Õ¹¿â°æ±¾ 1.1 Æð£¬³Ö¾Ã Oracle
Á¬½ÓµÄÉúÃüÖÜÆÚºÍ×î´óÊýÄ¿¿ÉÒÔͨ¹ýÉ趨ÒÔÏÂÅäÖÃÑ¡ÏîÀ´µ÷Õû£º<link
linkend="ini.oci8.persistent_timeout">oci8.persistent_timeout</link>£¬<link
linkend="ini.oci8.ping_interval">oci8.ping_interval</link>
ºÍ <link
linkend="ini.oci8.max_persistent">oci8.max_persistent</link>¡£
</simpara>
</note>
<para>
¿ÉÑ¡µÄµÚÈý¸ö²ÎÊý¿ÉÒÔÊDZ¾µØ Oracle ʵÀýµÄÃû×Ö»òÕßÊÇÔÚ
<filename>tnsnames.ora</filename>
µÄÌõÄ¿ÖеÄÃû×Ö¡£Èç¹ûûÓÐÖ¸¶¨µÚÈý¸ö²ÎÊý£¬ PHP
ʹÓû·¾³±äÁ¿
<literal>ORACLE_SID</literal> ºÍ <literal>TWO_TASK</literal>
À´·Ö±ðÈ·¶¨±¾µØ Oracle ʵÀýµÄÃû×ÖºÍ
<filename>tnsnames.ora</filename> µÄλÖá£
</para>
<para>
<parameter>session_mode</parameter> ²ÎÊý×Ô°æ±¾ 1.1
Æð¿ÉÓò¢½ÓÊÜÈçÏÂÖµ£º<constant>OCI_DEFAULT</constant>£¬<constant>OCI_SYSOPER</constant>
ºÍ <constant>OCI_SYSDBA</constant>¡£Èç¹ûÖ¸¶¨ÁË
<constant>OCI_SYSOPER</constant> »ò <constant>OCI_SYSDBA</constant>
ÆäÖÐÖ®Ò»£¬<function>oci_new_connect</function>
½«³¢ÊÔʹÓÃÍⲿÈÏÖ¤ÐÅÏ¢½¨Á¢ÌØÈ¨Á¬½Ó¡£ÌØÈ¨Á¬½ÓĬÈϱ»½ûÖ¹¡£ÒªÆôÓã¬ÐèÒª½«
<link linkend="ini.oci8.privileged_connect">oci8.privileged_connect</link>
ÉèΪ On¡£
</para>
<note>
<simpara>
Èç¹û PHP ÓõÄÊÇ Oracle Instant
Client£¬¿ÉÒÔÓÃÈÝÒ×µÄÃüÃûÁ¬½Ó·½·¨£¬ËµÃ÷¼ûÕâÀ<ulink
url="&url.oracle.oic.connect;">&url.oracle.oic.connect;</ulink>¡£»ù±¾ÉÏÕâÒâζ×Å¿ÉÒÔÖ¸¶¨
"//db_host[:port]/database_name"
×÷ΪÊý¾Ý¿âÃû¡£µ«Èç¹ûÏëÓÃÃüÃûµÄ¾É·½·¨Ôò<emphasis>±ØÐë</emphasis>É趨
<constant>ORACLE_HOME</constant> »ò <constant>TNS_ADMIN</constant>
¶þÕßÖ®Ò»¡£
</simpara>
</note>
&oci.charset;
<para>
<function>oci_pconnect</function>
·µ»ØÁ¬½Ó±êʶ·û£¬³ö´íÔò·µ»Ø &false;¡£
</para>
<note>
<para>
ÔÚ PHP 5.0.0 ֮ǰµÄ°æ±¾±ØÐëʹÓà <function>ociplogon</function>
Ìæ´ú±¾º¯Êý¡£¸Ãº¯ÊýÃûÈÔÈ»¿ÉÓã¬ÎªÏòϼæÈÝ×÷Ϊ
<function>oci_pconnect</function>
µÄ±ðÃû¡£²»¹ýÆäÒѱ»·ÏÆú£¬²»ÍƼöʹÓá£
</para>
</note>
<para>
²Î¼û <function>oci_connect</function> ºÍ
<function>oci_new_connect</function>¡£
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
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
-->