- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Is OK to kill an ORACLE process?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 01:50 AM
тАО12-02-2004 01:50 AM
I'm a bit of a nervous Nellie, when it comes to killing processes in HP-UX. But it appears that I may have a run-away ORACLE process that is consuming 100% of one of our 4 processors in a K460 system, and I was wondering if I could safely kill it.
The Oracle Instance is called 'ORD' and the process in the ps -ef command is 'oracle 20610 1 255 16:59:20 ? 316:52 oracleORD (LOCAL=NO)'.
I'm thinking that this is a just an ORACLE connection from someplace.
Can anyone confirm my thoughts about being able to kill this?
Thanks in advance,
Randy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 01:57 AM
тАО12-02-2004 01:57 AM
Re: Is OK to kill an ORACLE process?
kill "pid"
kill -1 "pid"
kill -2 "pid"
kill -3 "pid"
kill -11 "pid"
If everything above failes, use -9 signal.
Do not use -9 signal to start with.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 02:01 AM
тАО12-02-2004 02:01 AM
Re: Is OK to kill an ORACLE process?
Thanks,
Randy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 02:03 AM
тАО12-02-2004 02:03 AM
Re: Is OK to kill an ORACLE process?
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 02:06 AM
тАО12-02-2004 02:06 AM
Re: Is OK to kill an ORACLE process?
I would double check with the DBA for more insight into the process you are looking at. The DBA should be able to associate the UNIX PID with the ORACLE process and tell you what that ORACLE process is and if it safe to kill.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 03:06 AM
тАО12-02-2004 03:06 AM
Re: Is OK to kill an ORACLE process?
Oracle is robust enough to recover from a killed process.
as mentioned in other post, you should kill the session with the oracle console.
alter system kill '
Then Oracle will have to rollback the transaction, and this may take sometimes.
Therefore, you may 1st check what this transaction is all about.
Check the size of rollback segment.
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 03:10 AM
тАО12-02-2004 03:10 AM
Re: Is OK to kill an ORACLE process?
It's likely to trigger an automatic recovery. You may need to do a shutdown abort, bring up the database and then down again to get it to run normally after such and event.
Oracle is pretty robust and survives sudden failures or process kills reasonably well. If you have a major write operation going on, see about stopping that prior to doing a process kill.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 03:12 AM
тАО12-02-2004 03:12 AM
Re: Is OK to kill an ORACLE process?
Should Sessions be Killed in OS or Using Alter System Kill Session?
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 06:47 AM
тАО12-02-2004 06:47 AM
SolutionBefore killing the processess you can find out who the owner is and it if is truly a run-away process, or just a very long month end report.
From sqlplus you can run this script to get more information on the process.
select spid, s.sid, p.serial#, s.terminal , pid, machine, s.program, osuser,
p.program, w.event from v$session s, v$process p,
v$session_wait w where addr = paddr and (spid like '%&&OSID%' or
process like '%&&OSID%')
and w.sid(+) = s.sid;
OSID is your unix process id. This will give you information to kill the process in Oracle before killing the unix process, or to contact the owner to see what they are running. You can also use the sid to query the v$session_wait table to determine the resource that the process is waiting on. A good indicator of a runaway process is that the seconds_in_wait time in v$session_wait is growing, but the wait event is not changing. I've hit a few bugs that behaved this way and the only option is to kill the processes.
Patti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 11:46 AM
тАО12-02-2004 11:46 AM
Re: Is OK to kill an ORACLE process?
What I would prefer is to use lsof to get the remote or local socket address. Then using lsof find the batch program or the sql process which has created this oracle process. I would stop if possible else kill it.
lsof -p
On that hostname, lsof -i tcp:
will tell me the process id of the batch or the sql script.
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 12:41 PM
тАО12-02-2004 12:41 PM
Re: Is OK to kill an ORACLE process?
To see the current usage of shared memory & semaphores:
"ipcs -b"
Or you may need to remove using "ipcrm"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 07:23 PM
тАО12-02-2004 07:23 PM
Re: Is OK to kill an ORACLE process?
If you want to backup the database you will have to restart it and then shut it down again properly.
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 11:15 PM
тАО12-02-2004 11:15 PM
Re: Is OK to kill an ORACLE process?
this is modified script as per Patti's suggestion above:
select b.sid SID,b.serial# "Serial#", c.spid "srvPID", b.osuser, b.username, b.status, b.client_info from v$session b, v$process c where b.paddr = c.addr and c.sPID = &OSPID
hope this helps too!
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2004 01:05 AM
тАО12-03-2004 01:05 AM
Re: Is OK to kill an ORACLE process?
I ended up using Oracle OEM to kill the SID in question, and marked it as KILLLED. Then I killed the PID from the HP-UX side and it all went away. Now, the script provided above doesn't show the SID being a problem any more.
The processor board that was running at 100% usage dropped off to about 15% usage.
Thanks again,
Randy