note 38475 deleted from function.ora-logon by danbrown
| From: | danbrown@php.net | Date: | Fri, 26 Sep 2008 16:43:43 +0000 |
| Subject: | note 38475 deleted from function.ora-logon by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-144809@lists.php.net to get a copy of this message | ||
Note Submitter: premiere_fondation at yahoo dot fr
----
Hello,
I had the problem and the solution is this one :
Use OCILogon()
Instead of writing :
$db = ("INSTANCE_NAME");
Write the entire line corresponding to your oracle instance descriptor in tnsnames.ora file :
$db = "(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = db.ip.address)(PORT =
db.port)) ) (CONNECT_DATA = (SID = YOUR_DB_SID) ) )";
$con = OCILogOn("user", "password",$db);
This works perfectly.
Nicolas Corlieu.