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: db up script

Re: db up script

From: Paul Polentz <ppolentz_at_sctcorp.com>
Date: Thu, 11 May 2000 16:22:50 -0400
Message-Id: <10494.105420@fatcity.com>


Lisa,

This alias does it for me...

dbsup='ps -ef | grep pmon; ls -al
/u01/oracle/product/v733/dbs/sgadef*'

Output looks like this

>$ dbsup

  oracle  12340      1   0   May 06      -  2:41 ora_pmon_SDB3
  oracle  13562      1   0   Apr 27      -  7:17 ora_pmon_SDB4
  jsmith 147106  40824   0 12:56:44  pts/1  0:00 grep pmon
-rw-r-----   1 oracle   dba          376 May 06 04:01
/u01/oracle/product/v733/dbs/sgadefSDB3.dbf
-rw-r-----   1 oracle   dba          376 Apr 27 09:37
/u01/oracle/product/v733/dbs/sgadefSDB4.dbf

The above is a pretty good indication that the database(s) are up. You could also grep for the other oracle processes (such as smon). It won't tell you what state (resticted, unmounted, etc.) they are in, though.

HTH
pgp



Paul Polentz
Technical Consultant
SCT Global Education Solutions
ppolentz_at_sctcorp.com Received on Thu May 11 2000 - 15:22:50 CDT

Original text of this message

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