签到成功

知道了

CNDBA社区CNDBA社区

How to Check Why Shutdown Immediate Hangs? [ID 164504.1]

2016-11-25 15:45 1627 0 原创 Oracle 故障处理
作者: dave

How to Check Why Shutdown Immediate Hangs? [ID 164504.1]


 

Modified 30-JUN-2010     Type HOWTO     Status PUBLISHEDhttp://www.cndba.cn/Dave/article/547

 

 http://www.cndba.cn/Dave/article/547

 

Checked for relevance on 02-Mar-2010

http://www.cndba.cn/Dave/article/547

 

·         goal: What information to collect when shutdown immediate is hanging ?

·          

·         fact: Oracle Server - Enterprise Edition

·          

·          

http://www.cndba.cn/Dave/article/547

 

 

fix:

 

In order to see why shutdown immediate is hanging we need to do the following:

 

A. While shutdown immediate is hanging

 

  Start Server Manager (or SQL*Plus for 8i or higher)

  SVRMGRL> connect internal (or SYSDBA for 8i or higher)

  SVRMGRL> select * from x$ktuxe where ktuxecfl = 'DEAD';

 

  This shows dead transactions that smon is looking to rollback.

 

B. Plan to shutdown again and gather some information. Before issuing the

shutdown immediate command set some events as follows:

http://www.cndba.cn/Dave/article/547
http://www.cndba.cn/Dave/article/547

 

  SVRMGRL> connect internal

  SVRMGRL> alter session set events '10046 trace name context forever,level 12';

  SVRMGRL> alter session set events '10400 trace name context forever, level 1';

  SVRMGRL> shutdown immediate;

 

  10046 turns on extended SQL_TRACE for the shutdown process.

  10400 dumps a systemstate every 5 minutes.

 

Let the shutdown go for around 15 minutes and then send the traces to Oracle

Support. The traces are written to the location specified by user_dump_dest parameter.http://www.cndba.cn/Dave/article/547

The trace files should show where the time is going.

 

Note :

Shut down immediate may hang because of various reasons.http://www.cndba.cn/Dave/article/547

- processes still continue to be connected to the database and do not terminate.

- SMON is cleaning temp segments or performing delayed block cleanouts.http://www.cndba.cn/Dave/article/547

- Uncommitted transactions are being rolled back.

 

 

 

 

 

------------------------------------------------------------------------------

Blog http://blog.csdn.net/tianlesoftware

网上资源: http://tianlesoftware.download.csdn.net

相关视频:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx

DBA1 群:62697716(); DBA2 群:62697977()

DBA3 群:62697850   DBA 超级群:63306533;    

http://www.cndba.cn/Dave/article/547

聊天 群:40132017

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请

版权声明:本文为博主原创文章,未经博主允许不得转载。

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
dave

dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 2261
    原创
  • 3
    翻译
  • 578
    转载
  • 192
    评论
  • 访问:8045159次
  • 积分:4346
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ