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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to Check whether Server is up in Oracle Stored Procedure

Re: How to Check whether Server is up in Oracle Stored Procedure

From: Sybrand Bakker <gooiditweg_at_sybrandb.verwijderdit.demon.nl>
Date: Mon, 11 Oct 2004 09:57:34 +0200
Message-ID: <n1ekm0p5pos8kr1f3c62o0mflrncma8fid@4ax.com>


On 11 Oct 2004 00:29:39 -0700, aone1504_at_yahoo.com (Srini) wrote:

>We have a Oracle client where a trigger is present. A Stored procedure
>is associated with the trigger. And link between Oracle client and
>server is using DBLINK.
>
>When Oracle server machine is down or database server has crashed, we
>want the stored procedure not to be executed. The problem is we do not
>always come to know when the server machine is down ( for say,
>maintenance ).
>
>Can any one tell me how we can code this check (on the server) inside
>the Stored Procedure ?
>
>Regards,
>Srini

You'll get an exception in the stored procedure. Just trap the exception. If you really don't want the procedure to do anything code a dummy select * from dual_at_dblink

--
Sybrand Bakker, Senior Oracle DBA
Received on Mon Oct 11 2004 - 02:57:34 CDT

Original text of this message

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