ORA-12154: TNS:could not resolve service name
Cause: The service name specified is not defined correctly in the
TNSNAMES.ORA file.
Action: Make the following checks and correct the error:
- Verify that a TNSNAMES.ORA file exists and is in the proper place and
accessible. See the operating system
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
stev
I was successful in compiling php with the options --with-oracle
and --with-oci8.
but when i tried to connect to the database with the instruction
Ora_logon("user@tnsname", "password"), I got the following error message:
"Warning: Oracle: Connection Failed: Error while trying to