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: How to check if the database is active

Re: How to check if the database is active

From: Tuktukia <tuktukia_at_aol.com>
Date: 1997/07/29
Message-ID: <19970729173300.NAA10015@ladder02.news.aol.com>#1/1

Gilberto,

I have done this in unix using a script. The code goes as follows:

sqlplus @ex << EOF
user/password
^M
^M

EOF
if [ $? -ne 0 ]
then
  .... database not up ....
else
  ... database is up ....
fi

Create a file ex.sql with this one line : exit;

Note: To type in the ^M in vi type ^V and then ^M

Hope this helps,
Abhijit Bhattacharya Received on Tue Jul 29 1997 - 00:00:00 CDT

Original text of this message

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