Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> SMON Interview Question

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: SMON Interview Question
 Kaiz  Posted: Apr 01, 2008 03:11:31 AM

 Total Post: 104
 Joined: Sep, 2007






 Dear Friends,
When the database is up and running , how can we kill smon? If i kill smon what will happened?
Thanks & regards...

 Murtuja
Posted: Apr 01, 2008 05:13:04 AM  

 Total Post: 814
 Joined: Jan, 2006






 
If you kill a default background process then this may cause the database to be down.


 Kaiz
Posted: Apr 02, 2008 08:26:52 AM  

 Total Post: 104
 Joined: Sep, 2007






 
Thanks but I can understand and know to kill the user but how can one kill the SMON or matter of fact any Background Process....
Thanks & Regards..

 Murtuja
Posted: Apr 02, 2008 08:49:33 AM  

 Total Post: 814
 Joined: Jan, 2006






 
ps -ef|grep smon
oracle 29922 1 0 Mar 26 ? 0:29 ora_smon_compass

kill -9 29922


 avnish
Posted: Apr 03, 2008 02:06:39 AM  

 Total Post: 50
 Joined: Dec, 2007






 
Hi,
You can kill a background process by this command also

alter system shutdown immediate 'process'; \\process like D0001

Murtuja & Taj please right me if i m wrong.

Thanks & Regards
Avnish

 Kaiz
Posted: Apr 03, 2008 08:03:06 AM  

 Total Post: 104
 Joined: Sep, 2007






 
Dear Murtuja
Thanks for the answer ... but I am using XP I am not getting command...

ps -ef|grep smon

Thanks and Regards

 Murtuja
Posted: Apr 03, 2008 09:02:02 AM  

 Total Post: 814
 Joined: Jan, 2006






 
Avnish,

I think you are telling about "alter system kill session <session id>"

There no such command like alter system shutdown immediate 'process'


 Murtuja
Posted: Apr 03, 2008 09:03:42 AM  

 Total Post: 814
 Joined: Jan, 2006






 
For windows

orakill <sid> <spid>


 Murtuja
Posted: Apr 03, 2008 09:09:38 AM  

 Total Post: 814
 Joined: Jan, 2006






 
orakill <sid> <spid>

you can find out spid by this query

select * from v$process where program like '%SMON%'

You should only use orakill in cases where access to the database to execute ALTER SYSTEM KILL SESSION isn't possible. If you accidentally kill one of the required background processes, such as SMON, you'll probably crash the database.

 avnish
Posted: Apr 04, 2008 12:58:05 AM  

 Total Post: 50
 Joined: Dec, 2007






 
Hi Murtuja,

This command actually i use for killing one of dispatcher process. I am not fully sure thru this query,other processes might be kill or not.

Thanks & Regards
AVNISH

 avnish
Posted: Apr 04, 2008 01:01:43 AM  

 Total Post: 50
 Joined: Dec, 2007






 
For Query Syntax
please check on google or one of these links

http://www.freelists.org/archives/oracle-l/09-2005/msg00001.html

OR

http://www.ss64.com/ora/system_a.html

 Kaiz
Posted: Apr 04, 2008 10:20:09 AM  

 Total Post: 104
 Joined: Sep, 2007






 
Thanks & Regards..

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi239
  neeraj sharma228
  Ramesh Jois226
  snehalatha p169






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software