2014-09-05 07:44:07 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:37:21 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-14 02:34:50 +00:00
|
|
|
<!-- State: experimental -->
|
2005-09-04 19:39:32 +00:00
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<reference xml:id="ref.pdo-oci" xmlns="http://docbook.org/ns/docbook">
|
2013-05-23 17:38:21 +00:00
|
|
|
<?phpdoc extension-membership="bundledexternal" ?>
|
2005-08-12 02:03:50 +00:00
|
|
|
<title>Oracle Functions (PDO_OCI)</title>
|
2005-08-20 23:14:57 +00:00
|
|
|
<titleabbrev>Oracle (PDO)</titleabbrev>
|
2005-08-12 02:03:50 +00:00
|
|
|
<partintro>
|
2011-01-26 22:48:38 +00:00
|
|
|
|
|
|
|
&reference.pdo-oci.configure;
|
2019-06-16 11:28:06 +00:00
|
|
|
&reference.pdo-oci.constants;
|
2011-01-26 22:48:38 +00:00
|
|
|
|
2005-08-12 02:03:50 +00:00
|
|
|
</partintro>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="ref.pdo-oci.connection">
|
2005-08-12 02:03:50 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>PDO_OCI DSN</refname>
|
|
|
|
<refpurpose>Connecting to Oracle databases</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
|
|
|
<para>
|
|
|
|
The PDO_OCI Data Source Name (DSN) is composed of the following elements:
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>DSN prefix</term>
|
|
|
|
<listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
<para>
|
2006-04-26 12:32:40 +00:00
|
|
|
The DSN prefix is <userinput>oci:</userinput>.
|
2005-08-12 03:31:18 +00:00
|
|
|
</para>
|
2005-08-12 02:03:50 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2012-02-29 05:03:14 +00:00
|
|
|
<term><literal>dbname</literal> (Oracle Instant Client)</term>
|
2005-08-12 02:03:50 +00:00
|
|
|
<listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
<para>
|
|
|
|
The URI for the Oracle Instant Client connection takes the form of
|
2007-06-20 22:25:43 +00:00
|
|
|
<code>dbname=//<varname>hostname</varname>:<varname>port-number</varname>/<varname>database</varname></code>.
|
2006-04-26 12:32:40 +00:00
|
|
|
If you are connecting to a database defined in
|
|
|
|
<filename>tnsnames.ora</filename>, use only the name of the database:
|
2007-06-20 22:25:43 +00:00
|
|
|
<code>dbname=<varname>database</varname></code>.
|
2006-04-26 12:32:40 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2012-02-29 05:03:14 +00:00
|
|
|
<term><literal>charset</literal></term>
|
2006-04-26 12:32:40 +00:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The client-side character set for the current environment handle.
|
2005-08-12 03:31:18 +00:00
|
|
|
</para>
|
2005-08-12 02:03:50 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title>PDO_OCI DSN examples</title>
|
|
|
|
<para>
|
|
|
|
The following examples show a PDO_OCI DSN for connecting to
|
|
|
|
Oracle databases:
|
|
|
|
<programlisting><![CDATA[
|
2007-02-19 16:16:25 +00:00
|
|
|
// Connect to a database defined in tnsnames.ora
|
|
|
|
oci:dbname=mydb
|
|
|
|
|
|
|
|
// Connect using the Oracle Instant Client
|
2005-08-12 02:03:50 +00:00
|
|
|
oci:dbname=//localhost:1521/mydb
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
</reference>
|
|
|
|
<!-- 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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2005-08-12 02:03:50 +00:00
|
|
|
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
|
|
|
|
-->
|