/  45
 
Issue ..........................................................................................................................................................2SQL to check database before Shutdown database ..................................................................................2Oracle.Metalink.com document ...............................................................................................................21076161.6:-Shutdown Normal or Shutdown Immediate Hangs. SMON disabling TX Recovery ......................................................................................................................................................3375935.1:- What To Do and Not To Do When 'shutdown immediate' Hangs .............................5Applies to: ...............................................................................................................................6Goal ..........................................................................................................................................6Solution ....................................................................................................................................6References ................................................................................................................................8Errors ........................................................................................................................................8Bug:5057695: Shutdown Immediate Very Slow To Close Database...........................................8Applies to: ...............................................................................................................................8Symptoms ................................................................................................................................8Changes ....................................................................................................................................8Cause ........................................................................................................................................9Solution ....................................................................................................................................961997.1: SMON - Temporary Segment Cleanup and Free Space Coalescing ...........................10100054.1: Transaction Rollback after a failed operation or during Database Shutdown ..........15Conversation between me and Oracle.Metalink.com document ...........................................................16More information ....................................................................................................................................451
 
Issue
TO SHUTDOWN DATABASE IT IS TAKING LONG TIME, SOMETIME MORE THAN 2HOURS. Frequently we are facing this problem. Some time to take shutdown it takes 10 min.One days we have got one error that is " ORA-01013: user requested cancel of currentoperation" time of shutdown database
SQL to check database before Shutdown database
To make database shutdown faster please run SQL before shutdown database.and see the status of database1. All active session======================If Active session is exist then, try to find out what is doing in the database by this session. Active session makeshutdown slower select sid, serial#, username, status, schemaname, logon_time from v$session where status='ACTIVE' andusername is not null2.Temporary Tablespace Recover ================================
Sea any session used
Temporary tablespace for sorting
. For this also
may shutdown slower Select f.R "Recovered", u.nr "Need Recovered" from (select count(block#) R , 1 ch from sys.fet$ ) f,(selectcount(block#) NR, 1 ch from sys.uet$) u where f.ch=u.ch3. Long Running Query=======================select * from v$session_longops where time_remaining>0 order by username4. Large Transactions========================select sum(used_ublk) from v$transaction5. Progress of the transactions that Oracle is recovering.========================================================select * from v$fast_start_transactions6. Parallel transaction recovery==================================select * from v$fast_start_servers
Oracle.Metalink.com document
1
1076161.6:-
Shutdown Normal or Shutdown Immediate Hangs. SMON disablingTX Recovery
2
- What To Do and Not To Do When 'shutdownimmediate' Hangs
3
Note 428688.1-Bug 5057695: Shutdown Immediate Very Slow To Close Database.
 
2
 
4
Note 61997.1SMON - Temporary Segment Cleanup and FreeSpace Coalescing
5
100054.1
Subject: Transaction Rollback after a failed operation or duringDatabase Shutdown
1076161.6:-
Shutdown Normal or Shutdown Immediate Hangs.SMON disabling TX Recovery
Subject:
Shutdown Normal or Shutdown Immediate Hangs. SMON disabling TXRecovery
 Doc ID:
Note:1076161.6
Type:
BULLETIN
 Last Revision Date:
21-DEC-2007
Status:
PUBLISHED
Description===========SHUTDOWN NORMAL or SHUTDOWN IMMEDIATE hangs. In the alert.log, you see onlythe following:Shutting down instance (immediate)License high water mark = 12Thu Dec 8 18:43:16 1994alter database close normalThu Dec 8 18:43:17 1994SMON: disabling tx recoverySMON: disabling cache recoveryorwaiting for smon to disable tx recoveryThere are no ORA errors or trace files.Scope & Application===================InformationalDuring a SHUTDOWN IMMEDIATE and SHUTDOWN NORMAL, SMON is cleaning up extentswhich are no longer needed and marking them as freed.Either wait for SMON to clean up the free extents in the database as it shutsdown or perform a SHUTDOWN ABORT to shutdown the instance. A SHUTDOWN ABORTwill not perform a clean shutdown.Verify that temporary segments are decreasing---------------------------------------------To verify that the temporary segments are decreasing have an active sessionavailable in Server Manager or SQLPLUS during the SHUTDOWN IMMEDIATE. Issue
3

Share & Embed

More from this user

Add a Comment

Characters: ...