[solved]ps -ef|grep pmon ???? Databases not up
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?