Problem Version 6: ORA-12154: TNS:could not resolve service name
Problem Version 6: ORA-12154: TNS:could not resolve service name
Hello,
I just installed ODAC 6 on my computer and ran into the following problem: Whenever the OraSession object tries to connect to the database the error "ORA-12154: TNS:could not resolve service name" occurs. The error occurs both inside the IDE and after compiling and starting the program (Compilations with ODAC 5 work fine). Connecting to a DB locally is working.
ODAC Version: 6.00.0.4 for Delphi 2006
OCI: Version 8.1.7.0.0 (not loaded)
DLL: D:\oracle\ora81\BIN\oci.dll
Home [OraHome81]: D:\oracle\ora81
Default Home [OraHome81]: D:\oracle\ora81
Current Home: D:\oracle\ora81
Please help!
bij
I just installed ODAC 6 on my computer and ran into the following problem: Whenever the OraSession object tries to connect to the database the error "ORA-12154: TNS:could not resolve service name" occurs. The error occurs both inside the IDE and after compiling and starting the program (Compilations with ODAC 5 work fine). Connecting to a DB locally is working.
ODAC Version: 6.00.0.4 for Delphi 2006
OCI: Version 8.1.7.0.0 (not loaded)
DLL: D:\oracle\ora81\BIN\oci.dll
Home [OraHome81]: D:\oracle\ora81
Default Home [OraHome81]: D:\oracle\ora81
Current Home: D:\oracle\ora81
Please help!
bij
Hi,
I found something. In our TNS configuration (tnsnames.ora) we use for example:
With ODAC 5 I can use elliot as my OraSession's Server property, since my default domain is bi
see sqlnet.ora:
If I use the complete alias elliot.bi as Server property the connection works also with ODAC 6.
Still, please commend on this issue! Thanx!
bij
I found something. In our TNS configuration (tnsnames.ora) we use for example:
Code: Select all
elliot.bi =
(DESCRIPTION =
(ADDRESS_LIST =
...
see sqlnet.ora:
Code: Select all
NAMES.DEFAULT_DOMAIN = biStill, please commend on this issue! Thanx!
bij