oracle9i版本的ERP数据库无法正常关闭。
场景描述:oracle9i数据库正常关闭的时候,hang住在一个地方无法正常关闭。
解决思路:查看alert日志,分析问题。
[oraprod@erpdb1 ~]$ ./stopdb.sh
You are running addlnctl.sh version 115.3
Shutting down listener process PROD ...
addlnctl.sh: exiting with status 0
You are running addbctl.sh version 115.7
Shutting down database PROD ...
hang住在此,不能继续正常关闭。
1)查看alert日志。看到如下语句 :
[oraprod@erpdb1 bdump]$ tail -f alert_PROD.log
Completed checkpoint up to RBA [0x210fb.2.10], SCN: 0x094a.f71170bc
Mon Aug 6 10:25:19 2018
Shutting down instance: further logons disabled
Shutting down instance (immediate)
License high water mark = 90
Mon Aug 6 10:30:33 2018
Active call for process 22809 user 'oraprod' program 'oracle@erpdb1.arp.cn (TNS V1-V3)'
Active call for process 31347 user 'oraprod' program 'oracle@erpdb1.arp.cn (TNS V1-V3)'
Active call for process 437 user 'oraprod' program 'oracle@erpdb1.arp.cn (TNS V1-V3)'
SHUTDOWN: waiting for active calls to complete.
发现有三个用户保持连接导致,数据库无法正常关闭。先直接杀掉进程。
kill -9 22809
kill -9 31347
kill -9 437
数据库正常关闭。