UNIX kill command _ Oracle ..

Reviews
Shared by: Aashish Sharma
Categories
Tags
Stats
views:
34
rating:
not rated
reviews:
0
posted:
8/29/2009
language:
ENGLISH
pages:
0
UNIX kill command & Oracle Process ipcs -pmb processes http://www.oracle-training.cc/oracle_tips_unix_kill.htm Free Oracle Tips 1 of 3 7/19/2009 7:26 AM UNIX kill command & Oracle Process ipcs -pmb processes http://www.oracle-training.cc/oracle_tips_unix_kill.htm Donald K. Burleson Oracle Tips Using the UNIX kill command with Oracle Processes As we know, there are times when it is necessary to kill all Oracle processes, or a selected set of Oracle processes. A common use of the UNIX kill command is when you need to kill all Oracle processes when the database is “locked” and he cannot enter server manager are gracefully stop the database. When you are forced to terminate an Oracle instance on a UNIX server, you have to perform the following steps: 1. Kill all Oracle processes associated with the ORACLE_SID 2. Use the ipcs –pmb command to identify all held RAM memory segments, the then use the ipcrm –m command to release the RAM memory from UNIX. 3. (non_AIX only) Use the ipcs –sa command to display held semaphores and then use the ipcrm –s command to release the held semaphores for the instance For the Oracle professional, it is easy to create a single command to terminate all Oracle processes associated with your hung database instance. In the example below, we use the ps command to identify the Oracle processes and then use the awk utility to extract the process ID (PID) for the Oracle processes. We then pipe the process ID into the UNIX kill command: root> ps -ef|grep $ORACLE_SID| \ grep -v grep|awk '{print $2}'|xargs -i kill -9 {} HT ML AOL T ext We are top for USA Oracle Training Clients Free Oracle Tips Now, after we have killed all Oracle processes, we can then check for held memory using the ipcs –pmb command and remove the memory held by the database. We start by displaying all held memory segments on the database server. root> ipcs -pmb IPC status from /dev/kmem as of Mon Sep 10 16:45:16 2001 T ID KEY MODE OWNER GROUP SEGSZ CPID LPID Shared Memory: m 24064 0x4cb0be18 --rw-r----- oracle dba 28975104 1836 23847 m 1 0x4e040002 --rw-rw-rwroot root 31008 572 572 m 2 0x411ca945 --rw-rw-rwroot root 8192 572 584 m 4611 0x0c6629c9 --rw-r----root root 7216716 1346 23981 m 4 0x06347849 --rw-rw-rwroot root 77384 1346 1361 Free Oracle App Server Tips Oracle performance tuning software Oracle performance Tuning 10g reference poster Oracle performance tuning webcast Oracle training in Linux commands HT ML T ext Oracle support Oracle training Oracle tuning Rednecks! Remote Oracle Custom Oracle Training Here we see that the only RAM memory segment owned by Oracle is ID=24064. The following command will release this memory segment: root> ipcrm –m 24064 If you like Oracle tuning, you might enjoy my latest book “Oracle Tuning: The DefinitiveReference” by Rampant TechPress. (I don’t think it is right to charge a fortune for books!) and you can buy it right now at this link: http://www.rampant-books.com /book_2005_1_awr_proactive_tuning.htm 2 of 3 7/19/2009 7:26 AM UNIX kill command & Oracle Process ipcs -pmb processes http://www.oracle-training.cc/oracle_tips_unix_kill.htm email BC: Copyright © 1996 - 2009 by Burleson Enterprises, Inc. All rights reserved. Oracle® is the registered trademark of Oracle Corporation. 3 of 3 7/19/2009 7:26 AM

Shared by: Aashish Sharma
About
I am working as Oracle Apps DBA aand sharing my Oracle Documents Library will all of you.
Other docs by Aashish Sharma
Creating-Duplicate-Database-Using-RMAN
Views: 141  |  Downloads: 34
Check_Temp
Views: 49  |  Downloads: 7
sri
Views: 28  |  Downloads: 0
Wed_infoprdspace_check
Views: 19  |  Downloads: 1
Tue_infoprdspace_check
Views: 11  |  Downloads: 1
Thu_infoprdspace_check
Views: 7  |  Downloads: 1
Sun_infoprdspace_check
Views: 10  |  Downloads: 1
Sat_infoprdspace_check
Views: 5  |  Downloads: 1
Mon_infoprdspace_check
Views: 7  |  Downloads: 1
Fri_infoprdspace_check
Views: 4  |  Downloads: 1
sri
Views: 11  |  Downloads: 2
Wed_SCMPRDspace_check
Views: 5  |  Downloads: 1
Wed_hrprodspace_check
Views: 20  |  Downloads: 1
Tue_SCMPRDspace_check
Views: 11  |  Downloads: 1
Tue_hrprodspace_check
Views: 4  |  Downloads: 0
Related docs
UNIX Commands
Views: 652  |  Downloads: 116
Unix Command List
Views: 2  |  Downloads: 0
unix
Views: 53  |  Downloads: 9
Unix Command Reference
Views: 117  |  Downloads: 7
Unix Basic Command Sheet
Views: 0  |  Downloads: 0
Unix Command
Views: 725  |  Downloads: 107
Veritas NetBackup Command - UNIX LINUX
Views: 488  |  Downloads: 66
Unix Programming Tools
Views: 101  |  Downloads: 22
UNIX
Views: 343  |  Downloads: 54
ORACLE
Views: 274  |  Downloads: 31
UNIX Command Cheat Sheets
Views: 77  |  Downloads: 10
Unix command line command cheat sheet
Views: 202  |  Downloads: 29
Unix Command List_1_
Views: 0  |  Downloads: 0