Using ps -ef |grep LOCAL [message #408100] |
Sun, 14 June 2009 01:45 |
balaji1482
Messages: 312 Registered: July 2007 Location: INDIA
|
Senior Member |
|
|
Hi ,
Can anybody let me know the purpose of these 2 commands and their impact in oracle
ps -ef |grep LOCAL=NO
ps -ef |grep LOCAL=YES
Mohan
|
|
|
|
Re: Using ps -ef |grep LOCAL [message #408111 is a reply to message #408107] |
Sun, 14 June 2009 04:15 |
balaji1482
Messages: 312 Registered: July 2007 Location: INDIA
|
Senior Member |
|
|
I faced a situation where my database was taking
long time to down when i issued shutdown immediate
( at that time some users were still connected).
so can i use ps -ef |grep LOCAL=NO to list and
kill processes using kill -9 spid (connecting remotely)
that are still in action if i face such situation
from nxt time ?
I think if i kill the processes which lists
from ps -ef |grep LOCAL=YES
will end up in trouble
ie the local connection will get closed.
Please correct me if im wrong.
[Updated on: Sun, 14 June 2009 04:17] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Using ps -ef |grep LOCAL [message #408186 is a reply to message #408182] |
Mon, 15 June 2009 02:36 |
|
Michel Cadot
Messages: 68718 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
gentlebabu wrote on Mon, 15 June 2009 09:14 |
As per Mr Mic; shutdown abort should work; but as per as i know; don't try to use shutdown abort; Try to kill your known session instead of doing shutdown abort.
|
Why?
It is better to shutdown abort and let Oracle kill its processes than to kill the processes by yourself and let Oracle discovers they have been killed.
Regards
Michel
|
|
|