暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

停库遭遇Shutdown Waiting for Active Calls to Complete

原创 黄宸宁 2014-02-18
792
早上一上班就接到客户通知让协助分析昨天一套库为啥执行shutdown immediate后不能正常停库,查看了下alert日志发现在shutdown abort名字之前有“Shutdown Waiting for Active Calls to Complete”的提示,查看MOS(1039389.6),并询问客户如何操作的,可以确定是由于客户在停库之前并未杀点相关的LOCAL=NO的进程引起。
参考内容如下:
Checked for relevance on 11-Dec-2008
Problem Description:
====================
You are attempting to shut down the database and the database hangs. The
alert log contains the following message:
SHUTDOWN: Waiting for active calls to complete
There are no other error messages in the alert log.
Solution Description:
=====================
--------------------------------------------------------
Caveat: This note is intended for Unix platforms primarily, but we should
address this issue on Windows platforms as well. On Windows, stopping the
service is a valid workaround for these errors.
--------------------------------------------------------
Locate and kill any client connections to the database at the Unix level, as
follows:
1. Locate any client connections to the database using ps, and grep for any
processes belonging to this .
Example: ps -ef | grep V733
2. Look for processes that include a 'Local=No' designation.
Example: osupport 6235 1 0 Nov 24 0:01 oracleV733 (LOCAL=NO)
3. Kill the Unix process(es) with the 'Local=No' designation.
Example: Kill -9 6235
Explanation:
============
The database is waiting for pmon to clean up processes, but pmon is unable to
clean them. The client connections to the server are causing the shutdown
immediate or normal to hang. Killing them allows pmon to clean up and release
the associated Oracle processes and resources.
What resources are we talking about?
1) Any non committed transactions must be rolled back
2) Any temporary space (sort segments / lobs / session temporary tables) must be freed
3) The session itself and any associated memory consumed by the session.
4) Internal locks / enqueues must be cleaned up
Often Oracle (SMON or PMON depending on whether Shared Server is used) will wait for the OS to terminate the process(es) associated with the session. I the OS never returns, or fails to terminate them, then the instance shutdown will hang with this message (Shutdown Waiting for Active Calls to Complete)
Other means exist to achieve a quick shutdown, as outlined in Note 386408.1 - What Is The Fastest Way To Cleanly Shutdown An Oracle Database?
Note that in E-Business Environments, the same messages can be produced if the database shutdown process starts before the concurrent manager stops in the application server .

 
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论