Sun Dec 13 00:25:15 2015 Shutting down instance (immediate) Stopping background process SMCO Shutting down instance: further logons disabled Sun Dec 13 00:25:17 2015 Stopping background process CJQ0 Stopping background process QMNC Stopping background process MMNL Stopping background process MMON License high water mark = 78 Stopping Job queue slave processes, flags = 7 Job queue slave processes stopped All dispatchers and shared servers shutdown Sun Dec 13 00:30:21 2015 SHUTDOWN: Active processes prevent shutdown operation Sun Dec 13 00:35:23 2015 SHUTDOWN: Active processes prevent shutdown operation Sun Dec 13 00:40:24 2015 SHUTDOWN: Active processes prevent shutdown operation Sun Dec 13 00:45:25 2015 SHUTDOWN: Active processes prevent shutdown operation Sun Dec 13 00:48:31 2015 Instance shutdown cancelled
2.此类问题的解决方法:
参考文档:
Shutdown Immediate Hangs / Active Processes Prevent Shutdown (文档 ID 416658.1)
Alert Log: Shutdown Waiting for Active Calls to Complete (文档 ID 1039389.6)
What Is The Fastest Way To Cleanly Shutdown An Oracle Database? (文档 ID 386408.1)
以下解决方案来自文档 ID 416658.1:
1. Given OEM connections are active (SYSMAN and DBSNMP), de-activate these sessions, i.e. by stopping the agent/DBConsole 2. Then shutdown immediate as normal - OR - There may be processes still running and holding locks at the time a shutdown is issued. Sometimes these are failed jobs or transactions, which are effectively 'zombies', which are not able to receive a signal from Oracle. If this occurs, the only way to shutdown the database is by doing: sql> shutdown abort startup restrict shutdown normal The startup does any necessary recovery and cleanup, so that a valid cold backup can be taken afterward. If this issue occurs frequently, it would be a good practice to see if there are any active user processes running in v$session or v$process before shutting down the instance. If the problem persists, and no apparent user processes are active, you can set this event prior to issuing the shutdown command in order to see what is happening. This will dump a systemstate every 5 minutes while shutdown is hanging SQL> connect / as sysdba alter session set events '10400 trace name context forever, level 1'; Then issue the shutdown command. 3. You can kill the sessions preventing shutdown. Refer: Alert Log: Shutdown Waiting for Active Calls to Complete (Doc ID 1039389.6)