Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: rollback after crash

Re: rollback after crash

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Wed, 14 Dec 2005 17:13:28 +0000 (UTC)
Message-ID: <dnpjrn$2dc$1@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com>


"Pradeep" <agarwalp_at_eeism.com> wrote in message news:1134578650.960249.62470_at_z14g2000cwz.googlegroups.com...
> Thanks lewis your reply was great and easy to understand. One question
> on smon & pmon. Below is from Expert oe-on one
>
> for PMON "If your dedicated server 'fails' PMON will rollback
> uncommited work"
> for SMON " SMON responsible for peforming crash recovery of a failed
> instance upon restart"
>
> And this is what confuses me between PMON & SMON. Please can you
> clarify?
>

All Oracle processes are the same on-disc code, so any process could run any bit of the code - in theory - so it's perfectly feasible for smon and pmon both to have the ability to perform a rollback of a transaction that has no parent.

smon happens to do this only at system recovery, when there may be lots of dead transactions and you don't want pmon to be tied up for a long time.

pmon does this whenever it finds a dead process - which isn't very often (you hope).

Smon wakes up every 5 minutes to do all sorts of things; pmon wakes up every 3 seconds to do a check for dead processes. The different time-scales explain why it is smon that does the rollbacks on recovery and pmon does it only in normal running.

-- 
Regards

Jonathan Lewis

http://www.jlcomp.demon.co.uk/faq/ind_faq.html
The Co-operative Oracle Users' FAQ

http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html
Cost Based Oracle: Fundamentals

http://www.jlcomp.demon.co.uk/appearances.html
Public Appearances - schedule updated 29th Nov 2005
Received on Wed Dec 14 2005 - 11:13:28 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US