Re: help php4.0.6&Oracle9i !
| From: | Steve Farmer | Date: | Wed, 13 Mar 2002 04:34:31 +0000 |
| Subject: | Re: help php4.0.6&Oracle9i ! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-17640@lists.php.net to get a copy of this message | ||
Hi varin,
putenv("ORACLE_SID=TEST");
$uid = "scott";
$pwd = "tiger";
$inst = "test";
$conn = ocilogon($uid,$pwd,"$inst");
works for me
you could also try
OCIInternalDebug(8);
and see what happens
I just noticed you are using Ora_logon, you need to use the OCI functions !!
HTH
steve
At 11:56 AM +0100 12/3/02, varin valery wrote:
-- ------------------------------------------------- "Minds are like parachutes, they work best when open" Support free speech; visit http://www.efa.org.au/ Heads Together Systems Pty Ltd http://www.hts.com.au Email: hts@hts.com.au Tel: 612 9982 6767 Fax: 612 9981 3081I was successful in compiling php with the options --with-oracleand --with-oci8.but when i tried to connect to the database with the instructionOra_logon("user@tnsname", "password"), I got the following error message:"Warning: Oracle: Connection Failed: Error while trying to retrievetext for error ORA-12154 in /home/httpd/html/tmp/testoracle9i.php on line 7"I don't quite understand since I defined the environment variablesORACLE_HOME, ORACLE_SID and TNS_ADMIN -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php