note 38475 added to function.ora-logon

From: Date: Tue, 23 Dec 2003 13:59:17 +0000
Subject: note 38475 added to function.ora-logon
Groups: php.notes 
Request: Send a blank email to php-notes+get-62375@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.ora-logon.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38475 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38475&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38475&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#62375) next »