Query on dblink returning ORA-12545 error

I have a dblink between Oracle 9i and Oracle 10g. When I execute this query sometimes I get the result, but sometimes I get the error "ORA-12545."

I have a dblink between Oracle 9i and Oracle 10g. When I execute this query sometimes I get the result, but sometimes I get the error "ORA-12545: Connect failed because target host or object does not exist." It's intermittent. Do you have any idea about the problem?
select sysdate
from [email protected];
The ORA-12545 error is indicating that the resolution of your remote server's hostname is failing (occasionally). Your TNS alias contains a host to connect to. The first thing I would do is to make sure the server name in this TNS alias is of the form "server.domain". Many times, we do not include the domain name. So instead of "(HOST=my_db_server)" in my TNS entry, make sure it looks like "(HOST=my_db_server.acme.com)." If this does not solve the problem, then instead of relying on DNS to resolve the host name, you can either use the IP address or define the host name in your server's hosts file.

Dig Deeper on Oracle database administration

Data Management
Business Analytics
SearchSAP
TheServerSide.com
  • The 3 daily Scrum questions

    The 2020 Scrum Guide removed all references to the three daily Scrum questions, but does that mean you shouldn't ask them anymore?

  • Why WebAssembly? Top 11 Wasm benefits

    Latency and lag time plague web applications that run JavaScript in the browser. Here are 11 reasons why WebAssembly has the ...

  • Why Java in 2023?

    Has there ever been a better time to be a Java programmer? From new Spring releases to active JUGs, the Java platform is ...

Data Center
Content Management
HRSoftware
Close