Home » RDBMS Server » Networking and Gateways » Getting ORA-12545: Connect failed because target host or object does not exist
Getting ORA-12545: Connect failed because target host or object does not exist [message #66684] Fri, 18 October 2002 02:07 Go to next message
Walter Schmid
Messages: 2
Registered: October 2002
Junior Member
Hi everybody,

We have the following problem with Oracle 9i server and Oracle 9.2 client:

1) Oracle 9i DB server installed and running on Win2K server.
2) Connect works fine from any UNIX client using Oracle 9.2 client software.
3) Connect from sqlplus with user/passwd@ oranend.xxx.yyy.com succeeds from any Win2000 client (also using Oracle 9.2 client)
4) Connect request from java pgm via jdbc works fine from HP-UX client, but comes up with an error when issued from Win2K client (same software):

Database connection phase: getConnection failure: ORA- 12545: Connect failed because target host or object
does not exist

Connection string used is:
"jdbc:oracle:oci:@oranend.xxx.yyy.com"

Configuration follows:

5) Client tnsnames.ora
ORANEND.XXX.YYY.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = nendaz
(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ORANEND)
)
)

6) Server:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS=(PROTOCOL=TCP)(HOST=NENDAZ)
(PORT=1521))
)
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME=ORANEND)
(SID_NAME = ORANEND)
(ORACLE_HOME = C:oracleora90)
)
)

7) client sqlnet.ora
NAMES.DEFAULT_DOMAIN = xxx.yyy.com
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES,LDAP, ...)

8) Oracle database parameters in init.ora:
db_name = ORANEND
db_domain=xxx.yyy.com
instance_name=ORANEND

Have tried a lot of alternatives, but cannot overcome this issue.

Any hints would be gratefully appreciated !
Many thanks in advance and best regards
Walter
Re: Getting ORA-12545: Connect failed because target host or object does not exist [message #66686 is a reply to message #66684] Fri, 18 October 2002 11:30 Go to previous messageGo to next message
Angie
Messages: 12
Registered: April 2002
Junior Member
Have you checked TWO_TASK environment setting on your Unix platform? Set it as:
TWO_TASK=ORANEND.XXX.YYY.COM
export TWO_TASK
then try it again.
Hope it helps.
Angie
Re: Getting ORA-12545: Connect failed because target host or object does not exist [message #66688 is a reply to message #66684] Wed, 23 October 2002 02:37 Go to previous messageGo to next message
Walter Schmid
Messages: 2
Registered: October 2002
Junior Member
The problem occurs, when trying to connect from a Win2K client having Oracle 9.2 client installed through a jdbc call from a java program to a Win2K server running an Oracle 9i database server.
Unfortunately, it didn't help. Thank you anyway - it was worth trying.
Re: Getting ORA-12545: Connect failed because target host or object does not exist [message #66694 is a reply to message #66688] Mon, 28 October 2002 21:09 Go to previous messageGo to next message
Rajendra Verma
Messages: 2
Registered: October 2002
Junior Member
when u are using making a jdbc call, and using thin driver then sqlnet.ora file doenot comes into picture.
SO I willl suggest u to make address entry in listener.ora file corressponding IP address of server or try hostname with fullly qualified domain name.

In a normal sqlplus connection domain is automatically attached with the hostname as defined in sqlnet.ora.

If all this does'nt work then remove the listener.ora file (which is not a required file ) and try all the possible ways of making connections ,
hope this works
Re: Getting ORA-12545: Connect failed because target host or object does not exist [message #66843 is a reply to message #66684] Fri, 31 January 2003 17:33 Go to previous messageGo to next message
Peter Kossowski
Messages: 1
Registered: January 2003
Junior Member
Check that "local_listener" parameter in database parameters file (init.ora)is set to null. You can find the current value using:
select value
from v$parameter
where name = 'local_listener';

Peter
Re: Getting ORA-12545: Connect failed because target host or object does not exist [message #67172 is a reply to message #66684] Tue, 13 January 2004 14:39 Go to previous message
Michel Laliberté
Messages: 1
Registered: January 2004
Junior Member
Try to replace your hostname by the IP address in your tnsnames.ora !!!
Previous Topic: Oracle 9i transparent gateway error
Next Topic: help with 8i installation: tnslsnr.exe
Goto Forum:
  


Current Time: Thu Nov 21 21:23:50 CST 2024