SHUTDOWN: waiting for active calls to complete.

赶上要重启数据库
shutdown immediate 后一直等在那里没有返回


[root@bidb bdump]# tail -f alert_bidw.log 
Thu Jan  2 12:22:14 2014
Shutting down instance (immediate)
License high water mark = 231
Thu Jan  2 12:22:14 2014
Stopping Job queue slave processes, flags = 7
Thu Jan  2 12:22:14 2014
Job queue slave processes stopped
Thu Jan  2 12:27:13 2014
Active call for process 28285 user 'oracle' program 'oracle@bidb'
SHUTDOWN: waiting for active calls to complete.
Thu Jan  2 12:42:14 2014
MMNL absent for 1261 secs; Foregrounds taking over
Thu Jan  2 13:22:16 2014
SHUTDOWN: Active sessions prevent database close operation
Thu Jan  2 13:23:29 2014


shutdown 等了一个小时都没有关掉,果断shutdown abort 硬上了。
后来查了一下资料:
提到oracle Metalink上的1039389.6,其内容如下:
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 .


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值