Problem opening a tnsname based connection (ORA-12154)...
Posted: Mon 05 Nov 2007 21:54
Hi,
I'm having problem stablishing connection with OraDirect 3.50 when using tnsname based connectionString. Specifically my connectionString is:
"Server=test_db;User Id=admin;Password=admin"
and when i try to open the connection an exception occur:
"ORA-12154: TNS:Could not resolve service name".
The strange is that with the same info i can connect perfectly using SQLPlus; and i can connect to this oracle server using direct mode, i mean, using this connectionString:
"Direct=true;Server=sal-emp-dsk-06;Port=1521;SID=orcl;User Id=admin;Password=admin"
The tnsname entry test_db is:
test_db =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = sal-emp-dsk-06)(PORT = 1521))
)
(CONNECT_DATA =
(SID = orcl)
)
)
Please i will appraise any help. I already re-install my oracle server and client softwares, and i'm still having the same problem.
PD: I have a suggestion for the web site developers... please add a search functionality for the forum pages. THANKS!!
I'm having problem stablishing connection with OraDirect 3.50 when using tnsname based connectionString. Specifically my connectionString is:
"Server=test_db;User Id=admin;Password=admin"
and when i try to open the connection an exception occur:
"ORA-12154: TNS:Could not resolve service name".
The strange is that with the same info i can connect perfectly using SQLPlus; and i can connect to this oracle server using direct mode, i mean, using this connectionString:
"Direct=true;Server=sal-emp-dsk-06;Port=1521;SID=orcl;User Id=admin;Password=admin"
The tnsname entry test_db is:
test_db =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = sal-emp-dsk-06)(PORT = 1521))
)
(CONNECT_DATA =
(SID = orcl)
)
)
Please i will appraise any help. I already re-install my oracle server and client softwares, and i'm still having the same problem.
PD: I have a suggestion for the web site developers... please add a search functionality for the forum pages. THANKS!!