Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: is instance up???
Hi
Also, Pls copy the 7.3.2 version of oiconnect onto 7.3.4/8.0
ORACLE_HOMEs to
use dbping.
Kenneth C Stahl wrote:
#!/usr/bin/kshReceived on Wed Jun 23 1999 - 13:51:39 CDT
tnsping mysid >/dev/null 2>&1;
if [ $? -eq 0 ];then
print -u2 "Oracle is up";
else
print -72 "Oracle is down";
fiJust adapt to your own needs. You'll need to make sure that sqlnet v2 is set
up properly. The "mysid" referenced above is the tnsnames.ora database alias
for the instance that you want to check.Ken
Ed Lufker wrote:
> Hi All:
>
> Does anyone have a script for unix that will check to see if an
> instance is up. I need to run the script from a central location to check
> many instances.
>
> thanks in advance for any help
> eddie lufker