Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle processes running wild
Daniel Morgan wrote:
> Dennis Bieling wrote: >
> > > I know others have advised differently ... but I have never hesitated > to apply a small thermonuclear device, kill -9, and never once had a > problem. >
Under any flavor of Unix that supports Oracle, "kill -9" (or the symbolic equivalent signal) for client or server (in the Oracle sense,
MTS or dedicated) processes is very low risk, as indicated.
Try an "alter system kill session..." from within the RDBMS first, if you can. (Sounds like the OP already tried this). Can't hurt, and might be all you have to do in many situations. The OEM stand-alone client under Windows is a very convenient way to do this.
Even killing the core RDBMS processes under Unix is no worse than a "shutdown abort". To re-start the instance, you might have to remove shared memory "ipcrm ..." and lock file ($ORACLE_HOME/dbs/LK*), which in turn may require some reading and understanding of Unix man pages to perform correctly. Some people just reboot after this drastic action to (usually) accomplish the same thing, albeit the slow and easy way. (And I'm not even dealing with RAC here, which might have other issues unique to a clustered environment).
Here is 1-liner to try, logged in as user 'oracle', if you find the need to quickly, forcefully kill all Oracle processes running under Unix without rebooting the system:
ps -ef | grep oracle | grep -v grep | awk '{print $2}' | xargs kill -9
Test it first, of course, by leaving off one or more of the trailing pieces of the pipeline.
Windows has a "tlist" and "kill" command also (and Task Manager), but I haven't used them as often so can't vouch for their robustness.
If you have to resort to killing Unix processes more often than rarely, you should find the underlying cause of the problem.
--Mark Bole Received on Wed Feb 25 2004 - 21:39:56 CST