Oracle Database: SMON: Paralleltransactionrecoverytried
Oracle Database: SMON: Parallel transaction recovery tried
SMON: Parallel transaction recovery tried this is generally caused by killing the process while running a large amount of data in transaction, resulting in smon clearing the rollback segment.
During the peak business hours, if we find this, it may cause SMON to occupy 100% of the cpu and the system hang to be there.
Even if you shutdown immediate, Oracle will wait until the smon cleaning is completed before it can be shut down, and the waiting process may be long.
If you shutdown abort, oracle will bother shutdown. However, when you start up, it may be very slow, because smon will then clean up the undo, the waiting process may be long:
----------------------------------
Completed: ALTER DATABASE MOUNT
Thu Aug 26 22:43:57 2010
ALTER DATABASE OPEN
Thu Aug 26 22:43:57 2010
Beginning crash recovery of 1 threads
Thu Aug 26 22:43:57 2010
Started first pass scan
Thu Aug 26 22:43:57 2010
Completed first pass scan
402218 redo blocks read, 126103 data blocks need recovery
Thu Aug 26 22:45:05 2010
Restarting dead background process QMN0
QMN0 started with pid = 16
Thu Aug 26 22:45:19 2010
Started recovery
Thread 1: logseq 13392, block 381202, scn 0.0
Recovery of Online Redo Log: Thread 1 Group 3 Seq 13392 Reading mem 0
Mem #0 errs 0:/zxindata/oracle/redolog/redo03.dbf
Recovery of Online Redo Log: Thread 1 Group 1 Seq 13393 Reading mem 0
Mem #0 errs 0:/zxindata/oracle/redolog/redo01.dbf
Thu Aug 26 22:45:21 2010
Completed redo application
Thu Aug 26 22:48:35 2010
Ended recovery
Thread 1: logseq 13393, block 271434, scn 2623.1377219707
126103 data blocks read, 115641 data blocks written, 402218 redo blocks read
Crash recovery completed successfully
________________________________________________
Look at the one marked in red. It takes 3 minutes to complete the recovery.
How can we make it faster? metalink (238507.1) provides some practices:
Bytes ---------------------------------------------------------------------------------------------
1. Find SMON's Oracle PID:
Example:
SQL> select pid, program from v $ process where program like '% SMON % ';
PID PROGRAM
----------------------------------------------------------
6 oracle @ stsun7 (SMON)
2. Disable SMON transaction cleanup:
SVRMGR> oradebug setorapid
SVRMGR> oradebug event 10513 trace name context forever, level 2
3. Kill the PQ slaves that are doing parallel transaction recovery.
You can check V $ FAST_START_SERVERS to find these.
4. Turn off fast_start_parallel_rollback:
Alter system set fast_start_parallel_rollback = false;
If SMON is recovering, this command might hang, if it does just control-C out of it. You may need to try this frequently times to get this to complete (between SMON cycles ).
5. Re-enable SMON txn recovery:
SVRMGR> oradebug setorapid
SVRMGR> oradebug event 10513 trace name context off ----------------------------------
The above idea is mainly to change the SMON parallel recovery function to non-parallel, mainly the function of fast_start_parallel_rollback. There are cases where parallel transaction recovery is not as fast as serial transaction recovery, because the pq slaves are interfering with each other. this depends mainly on the type of changes that need to be made during rollback and usually may happen when rolling back INDEX Updates in parallel.
We can also use V $ FAST_START_TRANSACTIONS.UNDOBLOCKSTOTAL to view the amount of undo to be recovered, but unfortunately, this view is always empty during my test.
In addition, SMON: Parallel transaction recovery tried may appear along with SMON: Restarting fast_start parallel rollback (I saw 10.2.0.4 on the Interface machine)