dbTalk Databases Forums  

How to test Dblink is Up or not

comp.database.oracle comp.database.oracle


Discuss How to test Dblink is Up or not in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brij
 
Posts: n/a

Default How to test Dblink is Up or not - 05-18-2004 , 12:28 PM






Hi,
I am having Multiple oarcle database server with same schema. sometimes i
have to access other database server to get some information for that i am
using dblink.
Now my problem is if because of some network error or due to link failure if
i can not connect to database specified by DBlink then it goes into a long
wait...
Is there any way to first test DBLINK whether it's Up or not and then
proceed using Sql stored procedure or Developer 2k.
Brij

Reply With Quote
  #2  
Old   
Mir
 
Posts: n/a

Default Re: How to test Dblink is Up or not - 05-18-2004 , 05:19 PM






The problem may not be the connection to the database. It may be to
retrive data. I would say try "select sysdate from dual@dblink" and
see how long this takes. if this returns the data fast then it is the
data which is taking long time and not the connection.

Hope this helps.
Mir

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.