mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Correct direct TCP/IP connection example for DB2 flavour of PDO_ODBC.
Document pdo_odbc.db2instance_name INI setting. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@202808 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6412b03958
commit
48d7065e55
2 changed files with 34 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<section id="pdo_odbc.configuration">
|
||||
&reftitle.runtime;
|
||||
&extension.runtime;
|
||||
|
@ -19,7 +19,13 @@
|
|||
<row>
|
||||
<entry>pdo_odbc.connection_pooling</entry>
|
||||
<entry>"strict"</entry>
|
||||
<entry>PHP_INI_ALL</entry>
|
||||
<entry>PHP_INI_SYSTEM</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>pdo_odbc.db2instance_name</entry>
|
||||
<entry>&null;</entry>
|
||||
<entry>PHP_INI_SYSTEM</entry>
|
||||
<entry></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
|
@ -69,6 +75,30 @@
|
|||
</tip>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry id="ini.pdo-odbc.db2instance-name">
|
||||
<term>
|
||||
<parameter>pdo_odbc.db2instance_name</parameter>
|
||||
<type>string</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
If you compile PDO_ODBC using the <literal>db2</literal> flavour,
|
||||
this setting sets the value of the DB2INSTANCE environment variable on
|
||||
Linux and UNIX operating systems to the specified name of the DB2
|
||||
instance. This enables PDO_ODBC to resolve the location of the DB2
|
||||
libraries and make cataloged connections to DB2 databases.
|
||||
</para>
|
||||
<para>
|
||||
This setting can only be changed from the &php.ini;
|
||||
file, and affects the entire process; any other modules loaded into the
|
||||
process that use the same ODBC libraries will be affected too, including
|
||||
the <link linkend="ref.uodbc">Unified ODBC extension</link>.
|
||||
</para>
|
||||
<para>
|
||||
This setting has no effect on Windows.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
</para>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- Purpose: database.vendors -->
|
||||
<!-- Membership: bundled, external, pecl -->
|
||||
|
||||
|
@ -136,7 +136,7 @@ odbc:testdb
|
|||
an IBM DB2 database named <userinput>SAMPLE</userinput> using the full
|
||||
ODBC DSN syntax:
|
||||
<programlisting><![CDATA[
|
||||
odbc:DSN={IBM DB2 ODBC DRIVER};HOSTNAME=localhost;PORT=50000;DATABASE=SAMPLE;PROTOCOL=TCPIP;UID=db2inst1;PWD=ibmdb2;
|
||||
odbc:DRIVER={IBM DB2 ODBC DRIVER};HOSTNAME=localhost;PORT=50000;DATABASE=SAMPLE;PROTOCOL=TCPIP;UID=db2inst1;PWD=ibmdb2;
|
||||
]]>
|
||||
</programlisting>
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue