Database Networking (MOSC)

MOSC Banner

"ORA-12545 connect failed because target host or object does not exist"

edited Nov 17, 2011 8:41AM in Database Networking (MOSC) 8 commentsAnswered
Hi ,

I am trying to connect to a remote database via a database link from sqlplus . I have done the following steps.

1. from my local oracle db connected to sqlplus as SYSTEM

2.create public database link link_name connect to userid identified by password using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=host_name)(PORT=1521) ))(CONNECT_DATA=(SERVICE_NAME=service_name)))'

3. database link created.

4.try to run the qury "select * from sys.dual@link_name" , then am getting the error message "ORA-12545 connect failed because target host or object does not exist".

I have configured the tnsnames.ora

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center