Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

  Killing Oracle instance tips

Oracle Database Tips by Donald BurlesonMarch 29, 2015

Question:  My Oracle instance is not accepting SYSDBA connections.  How to go out to my UNIX/Linux OS and kill my Oracle instance?

Answer:  If you cannot connect, you have two choices, eighteen wait (impacting the end users) or immediately bounce the instance.  You kill the instance by:

1 - Killing the background processes and removing the RAM segments.

2 - Connecting to a hung database with the -prelim option to bypass creation of a new SQL*Plus session.

Here is how to kill an Oracle instance:

1 - kill -9 on the PMON and SMON processes,  See kill command.
 
2 - Verify that all background processes are killed (ps -ef|grep -i ora-")  See note below.

3 - Remove any held RAM with ipcs -pmb.  See ipcs command.

4 - (for non AIX and Windows 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

5 - Restart the instance, and wait to allow rollback of in-flight updates.

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 {}  

 

See these related notes on killing an Oracle instance:

   
Oracle Training from Don Burleson 

The best on site "Oracle training classes" are just a phone call away! You can get personalized Oracle training by Donald Burleson, right at your shop!

Oracle training
 
 

 

 


 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational

 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster