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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Database Link Timer (oh, one more thing)

RE: Database Link Timer (oh, one more thing)

From: <Jared.Still_at_radisys.com>
Date: Thu, 24 Jun 2004 14:38:02 -0700
Message-ID: <OFD2329A71.C32CAD0C-ON88256EBD.0076CF4E-88256EBD.0076D23A@radisys.com>


I'm aware of that method, just don't like it. Jared

> > http://www.oreilly.com/catalog/oracleperl/pdbatoolkit/
>
> You could "try" some variation of this.. I do use this code, and it
seems
> to work.. YMMV
>
> #!/bin/ksh
> me=$$
> # Ping the database
> ( ping_database.sh -s ORACLE_SID ) &
> pingproc=$!
>
> (
> # Sleep for 60 seconds.. set it accordingly
> sleep ${TIMEOUT:-60};
> echo "Timed out waiting for ping to complete. Please check for " \
> "defunct processes: (pingproc: ${pingproc}, me: ${me})";
> ps -f;
> kill -TERM ${pingproc} ${PPID} ${me} $$ >/dev/null 2>&1;
> ) &
> sleepproc=$!
>
> # Don't wait for the sleep.. or else it wont be cleared later
> # (and fail everytime)
> wait ${pingproc};
>
> # This will (hopefully) clear out the sleep counter if the ping
returns
> # before the sleep completes.
> kill -9 ${sleepproc}



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Thu Jun 24 2004 - 16:35:33 CDT

Original text of this message

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