note 91988 added to function.oci-connect
| From: | drew dot carmichael at gmail dot com | Date: | Fri, 03 Jul 2009 20:55:05 +0000 |
| Subject: | note 91988 added to function.oci-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157892@lists.php.net to get a copy of this message | ||
When using the OCI_CRED_EXT in php
if the ENV $ORACLE_SID is set the DB does not need to be specified explicitly and the connection
will fail unless you provide a NULL DB value when creating the connection.
The $ORACLE_SID trumps the TNS name look up for the connection. So even a manual connection string
in the DB parameter will fail.
So when the $ORACLE_SID Env is set a NULL passed instead of the DB name connects successfully.
Hope this saves some hair pulling when moving to %.3 and OS Authentications
----
Server IP: 66.207.199.35
Probable Submitter: 199.166.15.246
----
Manual Page -- http://www.php.net/manual/en/function.oci-connect.php
Edit -- https://master.php.net/note/edit/91988
Del: integrated -- https://master.php.net/note/delete/91988/integrated
Del: useless -- https://master.php.net/note/delete/91988/useless
Del: bad code -- https://master.php.net/note/delete/91988/bad+code
Del: spam -- https://master.php.net/note/delete/91988/spam
Del: non-english -- https://master.php.net/note/delete/91988/non-english
Del: in docs -- https://master.php.net/note/delete/91988/in+docs
Del: other reasons-- https://master.php.net/note/delete/91988
Reject -- https://master.php.net/note/reject/91988
Search -- https://master.php.net/manage/user-notes.php