Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Remote database

Re: Remote database

From: Billy Verreynne <vslabs_at_onwe.co.za>
Date: Tue, 11 Feb 2003 11:44:59 +0000
Message-ID: <b2ago1$odv$1@ctb-nnrp2.saix.net>


Hillar Vetik wrote:

> how to check remote datatabase is up or down,

The only way to check is to make a connection and see if it succeeds or not.

> link exist & if remote database is up all work fine,

You can check the data dictionary view USER_DB_LINKS to see if the link exists.

You probably can also turn this into a PL/SQL package that can test the link's existance for you, open a connection and handle & report any exceptions.

> but if remote database is down i have big timeout &
> some meory problems

Ora error message number? Ah.. you mean you get the error message that shared memory does not exist. That is a normal message when you attempt to connect to a database that is down.

All you need to do is implement an exception handler. Catch this error and handle it accordingly.

Oracle tells you there is an error. It is up to your code to decide how it will handle that error. Oracle can not handle it for you.

--
Billy
Received on Tue Feb 11 2003 - 05:44:59 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US