From 664ad5ad0aa38a002d78171bdd1f49712d85bf78 Mon Sep 17 00:00:00 2001 From: Stefan Roehrich Date: Fri, 3 Sep 1999 09:47:13 +0000 Subject: [PATCH] Added comment about connecting via tnsnames.ora. Changed OCI{N,P}Logon parameters from conn to user, pass, db. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@12440 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/oci8.sgml | 62 ++++++++++++++++++++++++++++++--------------- 1 file changed, 42 insertions(+), 20 deletions(-) diff --git a/functions/oci8.sgml b/functions/oci8.sgml index 25248664a9..2f2fd56cc0 100644 --- a/functions/oci8.sgml +++ b/functions/oci8.sgml @@ -208,15 +208,21 @@ OCILogoff($conn); int OCILogon string username string password - string ORACLE_SID + string db - OCILogon returns an connection identified - needed for most other OCI calls. If the optional third parameter is not specified, - PHP uses the environment variable ORACLE_SID to determine which database to connect - to. Connections are shared at the page level when using OCILogon. - This means that commits and rollbacks apply to all open transactions in the page, - even if you have created multiple connections. + OCILogon returns an connection identifier + needed for most other OCI calls. The optional third parameter + can either contain the name of the local Oracle instance or the + name of the entry in tnsnames.ora to which you want to connect. + If the optional third parameter is not specified, PHP uses the + environment variables ORACLE_SID (Oracle instance) or TWO_TASK + (tnsnames.ora) to determine which database to connect to. + + Connections are shared at the page level when using + OCILogon. This means that commits and + rollbacks apply to all open transactions in the page, even if you + have created multiple connections. This example demonstrates how the connections are shared. @@ -319,12 +325,18 @@ print "</PRE></HTML>"; Description int OCIPLogon - int conn + string username + string password + string db - OCIPLogon Creates a persistent connection to an Oracle 8 database - and logs on. If the optional third parameter is not specified, PHP uses the environment - variable ORACLE_SID to determine which database to connect to. + OCIPLogon creates a persistent connection to + an Oracle 8 database and logs on. The optional third parameter + can either contain the name of the local Oracle instance or the + name of the entry in tnsnames.ora to which you want to connect. + If the optional third parameter is not specified, PHP uses the + environment variables ORACLE_SID (Oracle instance) or TWO_TASK + (tnsnames.ora) to determine which database to connect to. See also OCILogon and @@ -341,17 +353,27 @@ print "</PRE></HTML>"; Description int OCINLogon - int conn + string username + string password + string db - OCINLogon Creates a new connection to an Oracle 8 database - and logs on. If the optional third parameter is not specified, PHP uses the environment - variable ORACLE_SID to determine which database to connect to. OCINLogon - forces a new connection. This is should be used if you need to isolate a set of transactions. - By default, connections are shared at the page level if using OCILogon - or at the web server process level if using OCIPLogon. If you have - multiple connections open using OCINLogon, all commits and - rollbacks apply to the specified connection only.. + OCINLogon creates a new connection to an + Oracle 8 database and logs on. The optional third parameter can + either contain the name of the local Oracle instance or the name + of the entry in tnsnames.ora to which you want to connect. If + the optional third parameter is not specified, PHP uses the + environment variables ORACLE_SID (Oracle instance) or TWO_TASK + (tnsnames.ora) to determine which database to connect to. + + + OCINLogon forces a new connection. This + should be used if you need to isolate a set of transactions. By + default, connections are shared at the page level if using + OCILogon or at the web server process level + if using OCIPLogon. If you have multiple + connections open using OCINLogon, all + commits and rollbacks apply to the specified connection only. This example demonstrates how the connections are separated.