I have couple of dblinks. Sometimes due to some other reason, I loose the dblink. The reason could be anything, like database down, listener down, server down, IP change, port closed etc. Since these dblinks are on prodution, users start calling and complaining about the dblink down. Is there a way to know immediately if any db link goes down, so that I can take pro-active measure?
Set up a DBMS_JOB or DBMS_SCHEDULER task to query across the link regularly.
Depending on the nature of the problem that takes down the link, you might also have luck with using tnsping to see if the local server can reach the remote listener -- this may be all you need.
tnsping is OS command. I know I can use DBMS_JOB or DBMS_SCHDULER. But what happens is if the dblink is down, then it takes forever to throw the error. Is it possible that if the db link is down, then the exception throws the errror immediately?
Bookmarks