I try to connect to Oracle Database with ora_logon()... I have installed Oracle 8i and Net8, NT server 4, PHP 4-0-6.
I use the follow scritp to connect...
if( !($conn = ora_logon("system@nameservice","manager"))){
print "Fail connection.";
exit;
}
but this return:
Warning: Oracle: Connection Failed: ORA-12154: TNS:could not resolve service name in C:\InetPub\wwwroot\oracle.phtml on line 2
Fail connection.
In my tnsnames.ora the names service are fine, I can to connect to a local DB using ora_logon("system","manager") but not to remote DB.
Somebody can give me any idea??, maybe It's something in my configuration...
Thanks...
Oliver
I use the follow scritp to connect...
if( !($conn = ora_logon("system@nameservice","manager"))){
print "Fail connection.";
exit;
}
but this return:
Warning: Oracle: Connection Failed: ORA-12154: TNS:could not resolve service name in C:\InetPub\wwwroot\oracle.phtml on line 2
Fail connection.
In my tnsnames.ora the names service are fine, I can to connect to a local DB using ora_logon("system","manager") but not to remote DB.
Somebody can give me any idea??, maybe It's something in my configuration...
Thanks...
Oliver