Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[solved]ps -ef|grep pmon ???? Databases not up

littlescripterJul 27 2007 — edited Aug 3 2007
Hi all,

ps -ef | grep pmon | grep -v grep | tr -s " " |cut -d " " -f8

This command displaying all the process which contains pmon in it
ie.,

ora_pmon_scott2
ora_pmon_scott3
ora_pmon_scott5

I have set a database other than this in my system...they are

ora_pmon_scott1
ora_pmon_scott2
ora_pmon_scott3
ora_pmon_scott4
ora_pmon_scott5

Now My question is

I want to display below two ...i.e., databases which are not up

ora_pmon_scott1
ora_pmon_scott4

Help me how to do that?

if this can be implemented with shell script please tell me how to do that?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2007
Added on Jul 27 2007
9 comments
1,826 views