SHUTDOWN: Active processes prevent shutdown operation

【信息科学与工程学】【通信工程】第五十九篇 IP网络设计01 IP网络设计不是只写ip address;它本质是的问题,所以参数天然分布在:层级例子物理/传输(可选但你会要求光路/电路)光功率/OSNR/色散/衰减/BER/FEC;铜/微波链路预算L1/L2 链路模型速率、MTU、成帧开销、串行化、传播时延、缓冲排队/调度/QoS服务曲线、令牌桶、延迟界、丢包概率近似路由/TE/可靠性流守恒、路径容量、切换/收敛时间信息论/可达性Shannon 上限、FEC 有效码率、链路容量 after overhead计算科学/数值。 阅读详情


       在使用shutdown immediate关闭数据库时hang住,查看alert 日志,遭遇了SHUTDOWN: Active processes prevent shutdown operation。也即是说有一些活动进程阻止了当前的shutdown操作。

1、查看alert日志

[oracle@ora11g oracle]$ cd diag/rdbms/ora11g/ora11g/trace/
[oracle@ora11g trace]$ 
[oracle@ora11g trace]$ tail -f alert_ora11g.log 
Thu Jan 09 09:40:46 2014
Shutting down instance (immediate)
Stopping background process SMCO
Shutting down instance: further logons disabled
Thu Jan 09 09:40:47 2014
Stopping background process CJQ0
Stopping background process QMNC
Stopping background process MMNL
Stopping background process MMON
License high water mark = 13
All dispatchers and shared servers shutdown
Thu Jan 09 09:45:52 2014
SHUTDOWN: Active processes prevent shutdown operation
Thu Jan 09 09:50:54 2014
SHUTDOWN: Active processes prevent shutdown operation
Thu Jan 09 09:55:55 2014
SHUTDOWN: Active processes prevent shutdown operation

2、分析与解决

由于之前的session没有断开,而后又使用了host切换到OS提示符下,导致数据库无法正常关闭。

SQL> !
[oracle@ora11g trace]$ pwd
/u01/oracle/diag/rdbms/ora11g/ora11g/trace

只要断开这个连接,数据库就会继续shutdown immediate。

[oracle@ora11g trace]$ exit
exit


SQL> 
SQL> exit
Disconnected
[oracle@ora11g trace]$ 

再看关库的窗口:

SQL> shutdown immediate




Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> SQL> SQL> 


此后建议我们在关闭数据库时需先断开所有SYS会话连接,再关闭数据库即可。


3、Oracle官方文档(Doc ID 416658.1)

Doc ID 416658.1

Shutdown Immediate Hangs / Active Processes Prevent Shutdown (Doc ID 416658.1)

Applies to: 
Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.2.0.2 - Release: 10.1 to 11.2
Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.2.0.2  [Release: 10.1 to 11.2]
Information in this document applies to any platform.

Symptoms
The 'shutdown immediate' command hangs or is very slow

The alert log lists messages like:

SHUTDOWN: waiting for active calls to complete.ACTIVE PROCESSES PREVENT SHUTDOWN OPERATION

Cause
This is not a bug.

If the DB Control repository is running on the database target against which shutdown immediate was attempted then an incorrect 
order of events seems used.

You should stop DB Control first to get rid of all connections between DB Control and the repository database and then shutdown
the database with 'shutdown immediate'.

Current database sessions may show:

SQL> select SID, USERNAME, PROGRAM from v$session;
SID  USERNAME              PROGRAM
----- ---------------------- ----------------------------------
  243 SYSTEM                SQL Developer
  246 SYSMAN                OMS
  247                        oracle@lgiora09 (q001)
  248                        oracle@lgiora09 (q000)
  251 DBSNMP                emagent@lgiora09 (TNS V1-V3)
  252 SYSMAN                OMS
  253 SYSMAN                OMS
  254 DBSNMP                emagent@lgiora09 (TNS V1-V3)
  255 SYSTEM                java.exe
  256 SYSMAN                OMS

Clearly OMS and OEM are connected (Oracle Enterprise Manager Grid Control or DBConsole) via users SYSMAN and DBSNMP.
These sessions should be de-activated (that is to log off any OEM, OMS, SYSMAN and DBSNMP) before the shutdown immediate is attempted.

Oracle Enterprise Manager, Grid Control, Dbconsole and agents keep doing internal processing.
This may include a few PLSQL notification procedures running on the database by database control like
BEGIN EMD_NOTIFICATION.QUEUE_READY(:1, :2, :3); END;

As per internal documentation of the shutdown immediate, if there are active calls then it would wait for all the active calls to finish.

Solution
To implement the solution:

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';






SpeedyBee F405 V3 50A飞塔装机全攻略:从开箱到首飞避坑指南 本文提供SpeedyBee F405 V3 50A飞塔的详细装机指南,涵盖从开箱检查、硬件焊接、软件配置到安全首飞的全流程。重点剖析了电源连接、固件刷写等高频故障点,帮助FPV新手避开常见陷阱,确保一次成功组装并安全起飞。 阅读详情

相关推荐

CAD制图

CAD制图可以提高设计效率和准确性,并方便文档的存档和交流,是现代工程设计中不可或缺的一部分。·CAD三维开发是指使用计算机程序和工具来创建、编辑和操作三维模型、图形和设计的过程。它在工程、建筑、制造和游戏等领域广泛应用。CAD三维开发可能涉及到复杂的图形算法、性能优化、并行计算等方面的内容,因此需要深入学习和实践,以提高开发的效率和质量。

RZer的博客 1683

关闭数据库遇到SHUTDOWN: Active processes prevent shutdown operation

关闭数据库遇到SHUTDOWN: Active processes prevent shutdown operation

还不算晕的专栏 2309

ADS RFpro 射频阻抗仿真步骤

导入器件后,在库里面选取器件的对应模型,如图所示我们选取10pf 系统自带的村田模型。选取网络上的器件,拖入到下面component Models。导入成功后,截取需要仿真的区域(不截取仿真时间会非常长),可以生成对应如下原理图,通过原理图继续调整仿真。图上找到需要仿真链路上的网络,右键设置为信号。的叠层信息,按照PCB板厂提供信息填写完整。选择仿真的频率范围和频点数,生成如下图的RFPro仿真界。,然后再把GND也添加到下面。按图设置截取需要仿真的部分。添加成功后 网络就有了,15 双击run开始仿真。

m0_72954480的博客 3231

Oracle shutdown immediate无法关闭数据库

使用shutdown immediate;命令关闭数据库,但是10分钟无反应。 查看数据库报警日志(alert_orcl.log),发现数据库在等待部分会话,无法关闭。 top命令查看到三个进程都处于 LOCAL=NO 的状态 解决方案为:使用kill -9 杀掉三个进程后,数据库即可关闭。 参考: https://www.cnblogs.com/kerrycode/p/3435581.htm...

li916227164的博客 802

汇川机器人与PLC通信-ModbusTCP超详细案例

通过汇川机器人与PLC的ModbusTCP通信项目案例,我们可以了解通讯配置的过程,地址映射的方式,对接信号的转换,运行时序的逻辑等注意事项,帮助我们快速应用到项目中。

weixin_44166380的博客 1万+

从零到一:Mx_yolo本地训练与K210部署实战指南

本文详细介绍了从零开始进行Mx_yolo本地模型训练到K210部署的全流程实战指南。涵盖环境配置、数据准备、模型训练与调优、模型转换及K210部署等关键步骤,并提供了常见问题解决方案和性能优化技巧,帮助开发者高效完成AI模型在嵌入式设备的落地应用。

weixin_29081163的博客 259

解决SGA 不能超过4G,数据库关闭缓慢的问题

OS:redhat 4 64bitDatabase:oracle10gR2 for linux 64bitPhysical memory:32G 昨天晚上一哥们Q我说数据库关闭缓慢,我叫他贴出告警日志,部分关键信息如下:Waiting for dispatcher D000 to shutdownAll dispatchers and shared servers shut

落落的专栏 专注SQL调优 性能调优 4507

泛微OAe9-自定义资源看板

OA中,有一个很好用的功能:会议室预约。对于一间设立的会议室,同一时间段内,肯定会有不同的人预约同一间会议室,并且,在资源看板里,能看清各个时间段会议室的占用情况,可是会议室资源是有限的,显然不可能让多个人在同一时间段内预约同一间会议室,如会议室已占用,其他人再次申请时,应当拒绝预约。

小松鼠的博客 1863

oracle 10G OEM安装,10G OEM安装和配置

Oracle10G的EM采用了web方式,并且分成了2个产品,database control和grid control。Grid control需要下载单独的光盘安装。在用DBCA建库的时候,可以选择是否启用dbcontrol,启用的话需要在数据库中建立一个sysman的schema,用于保存EM的一些数据,这个就是EM的资料库(repository)。使用命令行工具emca可以创建,修改,重建...

weixin_32316643的博客 352

从零开始安装 Windows 11 和 Ubuntu 22.04 双系统

本文详解Windows与Ubuntu 22.04双系统安装流程:需提前确认BIOS模式(UEFI/GPT或Legacy/MBR),关闭BitLocker加密、设备加密及快速启动;推荐Rufus/Ventoy制作启动盘。安装时需规划分区方案(建议单独划分EFI系统分区),注意引导器安装位置选择。双系统启动通过BIOS引导顺序管理,安装后需同步Windows与Linux系统时间。教程适配主流UEFI+GPT设备,强调操作前数据备份及Windows更新策略调整,避免兼容性问题。

萑澈的博客 3794

网络安全系列-四十三:使用Suricata分析恶意流量pcap文件

本文基于[网络安全系列-三十六:使用Suricata IDS分析pcap文件]和 [网络安全系列-四十二: Suricata之rulesets的激活、更新及动态加载]的基础上,使用suricata针对包含恶意流量的pcap文件进行分析,触发事件告警,并对suricata输出的日志进行逐个分析,让你掌握针对恶意流量的分析步骤,及怎么查看suricata输出的日志。

penriver的博客 2896

Oracle数据库shutdown immediate被hang住的几个原因

实验操作环境:         操作系统:Red Hat Enterprise Linux ES release 4 (Nahant Update 6)                           数据库 : Oracle Database 10g Release 10.2.0.4.0 – Production  32bit 今晚使用shutdown immediate(其实是执行...

weixin_33787529的博客 246

基于本机知识库 + 豆包(火山引擎)+ MCP的落地方案

最小 MVP:本地知识库 + Doubao Embedding + 简单检索。工具化:把检索/写入/系统功能通过 MCP 封装。Agent 编排:RAG 流程 + 自检 + 引用输出。这样你就可以快速落地一个基于豆包 + 本机知识库的 MCP Agent。

lpfasd123的博客 1110

[翻译自mos文章 ]Shutdown Immediate 挂起/活动的processes 阻止shutdown

Shutdown Immediate 挂起/活动的processes 阻止shutdown 原文:Shutdown Immediate Hangs / Active Processes Prevent Shutdown (Doc ID 416658.1) 适用于: Oracle Database - Enterprise Edition - Version 10.1.0.2 to 1

msdnchina的专栏@JiNan,ShanDong 1482

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

Oracle shutdown immediate无法关闭数据库解决方法

在测试服务器上使用shutdown immediate命令关闭数据库时,长时间无法关闭数据库,如下所示 1: [oracle@DB-Server admin]$ sqlplus / as sysdba 2: 3: SQL*Plus: Release 10.2.0.4.0 - P...

weixin_34254823的博客 143

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

Shutdown Immediate 挂起/活动的processes 阻止shutdown

http://blog.csdn.net/msdnchina/article/details/37613451 Shutdown Immediate 挂起/活动的processes 阻止shutdown 原文:Shutdown Immediate Hangs / Active Processes Prevent Shutdown (Doc ID 416658.1)适用于: Oracle...

weixin_30338743的博客 159

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

shutdown immediate关不了

SQL> shutdown immediate 。。。。。一直等待   警报日志: [oracle@liumujing trace]$ more alert_bianxueqing.log Thu Feb 21 16:34:55 2013 Shutting down instance (immediate) Stopping background process SMCO Shut

lmj1990的专栏 841

利用nid工具修改db_name时hang住

问题描述: 在发出nid命令后,执行到最后,等待了很长时间都没有执行完毕,如下: [oracle@HQ-CICUTESTDB-01 bin]$ nid target=sys/oracle dbname=tpuktes...

conggangdian4456的博客 177

【翻译自mos文章】job 不能自己主动执行--这是另外一个mos文章,本文章有13个解决方法...

job 不能自己主动执行--这是另外一个mos文章 參考原文: Jobs Not Executing Automatically (Doc ID 313102.1) 适用于: Oracle Database - Enterprise Edition - Version 9.2.0.3 to 10.2.0.4 [Release 9.2 to 10.2] Informat...

weixin_34320159的博客 139

PHP - PHP-FPM - 学习/实践

本文摘要: 文章主要探讨了Nginx+PHP-FPM的运行机制、配置优化与实践应用。首先介绍了PHP-FPM作为PHP FastCGI进程管理器的工作原理,对比了CGI与FastCGI的区别,强调FastCGI通过主进程管理worker进程提升性能。详细解析了php-fpm.conf配置文件结构及核心参数,包括进程管理、日志设置等。同时展示了Nginx与PHP-FPM的协同配置,特别是虚拟主机多站点部署。文中还讨论了PHP-FPM的进程模型(master+worker)、平滑重启方法,以及常驻内存特性与Sw

"代码"的日常搬运 2295

SH9面向碳硅认知对齐的轻量化度量:TCFT‑Lite 中的拓扑偏差角与递归收敛机制(世毫九实验室原创研究)

AbstractR_η: M → MR_η: M → Mbreak。

shardylab.blog.csdn.net 548

oracle 25254,ORA-25254: time-out in LISTEN while waiting for a message 解决

用户的现场数据库出现问题:ORA-25254: time-out in LISTEN while waiting for a messageFATAL ERROR IN TWO-TASK SERVER: error = 12152上面这个问题直接导致了数据库 restart了版本: 10.1.0.2检查DUMP文件:[@more@]Thu Mar 25 13:16:11 2010Errors in...

weixin_33138569的博客 288

ORA-00257+mysql_ORA-00257:archiver error解决办法

出现ORA-00257错误(空间不足错误),通过查找资料,绝大部分说这是由于归档日志太多,占用了全部的硬盘剩余空间导致的,通过简单删除日志或加大存储空间就能够解决。(一)、oralce 11g更改归档模式、目录、日志大小(本人采用的这种做法)一、更改Oracle为归档模式1.关闭oracleSQL>shutdownimmediate;Database closed.Database di...

weixin_39593519的博客 314

BEGIN EMD_NOTIFICATION.QUEUE_READY(:1, :2, :3); execute too many times in two hours

问题:1.一个EM的oracle进程占cpu50%左右2.AWR中,The following sql statement executed 2,031,351 times during 2 hours:BEGIN EMD_NOTIFICATION.QUEUE_READY(:1,

amethystqi的专栏 9115

因host命令导致无法正常SHUTDOWN的实验

SHUTDOWN有几个参数可以使用: SHUTDOWN NORMAL:NORMAL也是默认的子句,执行的条件是 No new connections are allowed after the statement is issued. Before the database is shut down, the database waits for all currently connec

bisal的专栏 3242
上一篇: optimizer_index_caching和optimizer_index_cost_adj
下一篇: Shell中EOF出现syntax error: unexpected end of file
vindak
博客等级 码龄17年 16粉丝 62原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值