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
2
Add a Comment