note 105284 added to function.oci-connect

From: Date: Sun, 07 Aug 2011 22:28:43 +0000
Subject: note 105284 added to function.oci-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-182301@lists.php.net to get a copy of this message
I started getting "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor" errors when I upgraded my database instance from 10.2 to 11.2. For some reason it would not resolve the oci_connect calls with the Easy Connect syntax (easy connect calls from sqlplus were fine). I was able to workaround the issue by passing a tns connect string as described in an earlier comment: $db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.XX.XXX)(PORT = 1521)))(CONNECT_DATA=(SID=XXXX)))"; $c1 = oci_connect("name","password",$db); ---- Server IP: 69.147.83.197 Probable Submitter: 184.88.47.105 ---- Manual Page -- http://www.php.net/manual/en/function.oci-connect.php Edit -- https://master.php.net/note/edit/105284 Del: integrated -- https://master.php.net/note/delete/105284/integrated Del: useless -- https://master.php.net/note/delete/105284/useless Del: bad code -- https://master.php.net/note/delete/105284/bad+code Del: spam -- https://master.php.net/note/delete/105284/spam Del: non-english -- https://master.php.net/note/delete/105284/non-english Del: in docs -- https://master.php.net/note/delete/105284/in+docs Del: other reasons-- https://master.php.net/note/delete/105284 Reject -- https://master.php.net/note/reject/105284 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#182301) next »