Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Is Database Up?
amerar_at_iwc.net wrote:
> Hi All,
>
> 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........
>
> Thanks!!!
If you're using some centralized system to check on all your database, but don't want to use OEM as other's have suggested, couldn't you just use tnsping?
Now this assumes you've at least got the client installed on the system you're checking from, and that you've built a TNSNAMES.ORA file, then you could just:
$ tnsping yourremotedb
Charles R. Whealton
Charles Whealton @ pleasedontspam.com
Received on Mon Aug 28 2006 - 18:59:17 CDT
![]() |
![]() |