rwmeyer17
asked on
can tnsping but sqlplus gets ora-12545:Connect failed because target host or object does not exist
I've installed Oracle 10g client software, and I trying to connect to an Oracle 9i remote database running on a virtual server in a different domain. I've had Oracle 7.x client installed on machine, but have removed. Can tnsping the 9i databse, but when I try to connect to it via SQLPlus, I get ora-12545:Connect failed because target host or object does not exist.
ASKER
Still not having any luck, I've verified I only have a single sqlnet.ora and tnanames.ora file on client, oracle_home looks OK, and I've tried a service name both with and without domain name suffix, nothing working yet.
When you do tnsping does it say it makes use of the TNSNAMES.ora file? Can you take a screenshot of the tnsping result? Is there a SQLNET.ORA file present?
ASKER
Here's a screen shot of the tnsping, and yes, there's a sqlnet.ora present
Ora12545Document1.doc
Ora12545Document1.doc
Sorry! I don't have any DOC viewer installed in my laptop yet.. Can you please post it as a JPEG file?
Also provide the TNSNames.ora file entry. In that, there would be a server name. Are you able to ping that server using "ping" command?
Also provide the TNSNames.ora file entry. In that, there would be a server name. Are you able to ping that server using "ping" command?
ASKER
I've attached the jpg, I am able to ping the server, here's the tnanames.ora file
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\C lientOnly\ NETWORK\AD MIN\tnsnam es.ora
# Generated by Oracle configuration tools.
ULTRAPACS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.170.8.180)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = pacs)
)
)
ORA12545Error.JPG
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\C
# Generated by Oracle configuration tools.
ULTRAPACS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.170.8.180)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = pacs)
)
)
ORA12545Error.JPG
Global database name is of the format database_name.domain_name. In your case database_name is pacs and domain_name is something else (probably .world??)
So your tnsnames entry should be <something>.world. You can update the tnsnames.ora file to name the entry in this convention.
Other option is to comment out the NAMES.DEFAULT_DOMAIN parameter in SQLNet.ora file. Hope this helps!
So your tnsnames entry should be <something>.world. You can update the tnsnames.ora file to name the entry in this convention.
Other option is to comment out the NAMES.DEFAULT_DOMAIN parameter in SQLNet.ora file. Hope this helps!
ASKER
I've tried it with and without the domain name, on both the entry name and service name, results are the same either way. I don't have a DEFAULT_DOMAIN entry in sqlnet.ora
Is the Oracle listener running properly on the server machine?
can you show a screenshot of the actual error?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
may be this link will be usefull to u