I was trying to think of a way to verify if a remote database (connected using database link)was up.
I thought about just trying to query from it and then handling any exceptions, but this didn't work:
I ran this and got the following:
Is there a better way to test if an instance is up? Or is there another exception to handle that will catch this? Terry M. Hoey
th3856@txmail.sbc.com
While I don't mind e-mail messages, please post all questions in these forums for the benefit of all members.
I thought about just trying to query from it and then handling any exceptions, but this didn't work:
Code:
CREATE OR REPLACE PROCEDURE "EHGRIFF"."TEST_EXCEPTION" IS
sql_msg VARCHAR2(1000) :=NULL;
BEGIN
SELECT SYSDATE FROM DUAL@CFDEV.SBC.COM;
-- If this works, perform process
EXCEPTION
WHEN OTHERS THEN
-- Do not perform process
END;
Code:
SQLWKS> execute test_exception;
ORA-02068: following severe error from CFDEV
ORA-01034: ORACLE not available
ORA-07429: smsgsg: shmget() failed to get segment.
IBM AIX RISC System/6000 Error: 2: No such file or directory
th3856@txmail.sbc.com
While I don't mind e-mail messages, please post all questions in these forums for the benefit of all members.