killing processes
Machiel Richards
MachielR at agilitytech.co.za
Wed Dec 3 23:19:56 PST 2008
Hi Guys
Here is the details from the administrator of that system:
Processes were spawned by the Oracle backup cron (rman).
"Any chance the cron could run a second time while the first is running?"
This is what happened yes. The 2nd cron started while the previous one was still running (took longer than 24 hrs). I then killed the first one, but it left processes behind with parent id 1 (kill -9 doesn't work on them).
Example:
Server:~ # ps -ef | grep 17344
oracle 17344 1 0 Nov27 ? 00:00:07 /bin/sh -c rm -f /backups/yarona/ARC* 1>/dev/null 2>&1
root 3302 18699 0 12:55 pts/0 00:00:00 grep 17344
Server:~ # kill -9 17344
Server:~ # ps -ef | grep 17344
oracle 17344 1 0 Nov27 ? 00:00:07 /bin/sh -c rm -f /backups/yarona/ARC* 1>/dev/null 2>&1
root 3691 18699 0 12:55 pts/0 00:00:00 grep 17344
-----Original Message-----
From: linux-users-bounces at linux-sxs.org [mailto:linux-users-bounces at linux-sxs.org] On Behalf Of David A. Bandel
Sent: 04 December 2008 04:42 AM
To: Linux tips and tricks
Subject: Re: killing processes
On Wed, Dec 3, 2008 at 8:54 AM, Machiel Richards
<MachielR at agilitytech.co.za> wrote:
> I am not sure as to why it is not exiting....
>
> Here is the command that is stuck:
>
> oracle 3074 1 0 Nov28 ? 00:00:00 /bin/sh -c rm -f /backups/yarona/ARC* 1>/dev/null 2>&1
Oracle. Expletives deleted.
Is the oracle db running while you're doing this? If it is, could it
have any of those files open that your script is trying to delete? If
so, try shutting down oracle then restarting. Do that anyway (stop
and restart Oracle). Something is most likely writing to these files
when you're trying to delete them. Kill that and your problem will be
solved.
Ciao,
David A. Bandel
--
Focus on the dream, not the competition.
- Nemesis Air Racing Team motto
_______________________________________________
Linux-users mailing list ( Linux-users at linux-sxs.org )
Unsub/Password/Etc:
http://linux-sxs.org/mailman/listinfo/linux-users
Need to chat further on this subject? Check out #linux-users on irc.linux-sxs.org !
*** Disclaimer ***
The information contained in this e-mail is confidential and legally privileged and is intended solely for the addressee and to others who have the authority to receive it. Access to this e-mail by anyone else is unauthorized and as such, any disclosure, copying, distribution or any action taken or omitted in reliance on it is unlawful. If you have received this e-mail in error, please notify the sender immediately.
The views expressed in this e-mail are the views of the individual sender and should in no way be construed as the views of the Company.
The Company is not liable to ensure that outgoing e-mails are virus-free.
The Company is not liable, should information or data, for whatever reason, be corrupted or fail to reach its intended addressee.
The Company is not liable for any loss or damage of whatsoever nature and howsoever arising resulting from the opening or the use of the information in this e-mail, including its attachments and links.
The sender of this e-mail is subject to and bound by the terms and conditions of Company’s Electronic Communications Usage Policy.
More information about the Linux-users
mailing list