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: Is Database Up?

Re: Is Database Up?

From: <amerar_at_iwc.net>
Date: 28 Aug 2006 10:48:59 -0700
Message-ID: <1156787339.751377.246200@i42g2000cwa.googlegroups.com>

Radoulov, Dimitre wrote:
> > I want to write a Unix shell script that will check to see if a
> > database, on a remote machine, is up. Is this possible without writing
> > some long telnet routine or something?
> >
> > I was hoping for some simple command that I can grep for some string to
> > tell me the status of the remote database........
>
> No need to grep:
>
> printf "%s\n%s\n" "whenever sqlerror exit failure" "select null from
> dual;"|sqlplus -L user/pass_at_service_name >/dev/null 2>&1||echo "Database NOT
> accessible\!"
>
>
> Regards
> Dimitre

Very slick.....I like that.......... Received on Mon Aug 28 2006 - 12:48:59 CDT

Original text of this message

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