发表于: 2008.06.11 21:22
分类: ORACLE , Bug
出处: http://yangtingkun.itpub.net/post/468/464205
---------------------------------------------------------------
今天关闭一台问题数据库时,出现了这个问题。
用SYS执行SHUTDOWN IMMEDIATE命令后,数据库没有反应。
SQL> SHUTDOWN IMMEDIATE
由于解决下班时间,没有再进行处理,就让Oracle自己去关闭了。没想到第二天早上发现,SHUTDOWN IMMEDIATE方式仍然没有关闭数据库,这个命令执行时间已经超过了12个小时,检查alert文件发现信息如下:
Tue Jun 10 17:02:41 2008
Starting background process EMN0
EMN0 started with pid=16, OS id=15734
Tue Jun 10 17:02:41 2008
Shutting down instance: further logons disabled
Tue Jun 10 17:02:41 2008
Stopping background process CJQ0
Tue Jun 10 17:02:41 2008
Stopping background process MMNL
Tue Jun 10 17:02:42 2008
Stopping background process MMON
Tue Jun 10 17:02:43 2008
Shutting down instance (immediate)
License high water mark = 44
Tue Jun 10 17:02:43 2008
Stopping Job queue slave processes
Tue Jun 10 17:02:43 2008
Job queue slave processes stopped
All dispatchers and shared servers shutdown
Tue Jun 10 17:02:50 2008
Process OS id : 15693 alive after kill
Errors in file /opt/ora10g/admin/test08/udump/test08_ora_15629.trc
对应的trace文件中也没有发现什么特别之处:
[oracle@yans1 bdump]$ more /opt/ora10g/admin/test08/udump/test08_ora_15629.trc
/opt/ora10g/admin/test08/udump/test08_ora_15629.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /opt/ora10g/product/10.2.0/db_1
System name: Linux
Node name: yans1
Release: 2.6.9-42.0.0.0.1.ELsmp
Version: #1 SMP Sun Oct 15 15:13:57 PDT 2006
Machine: x86_64
Instance name: test08
Redo thread mounted by this instance: 1
Oracle process number: 20
Unix process pid: 15629, image: oracle@yans1 (TNS V1-V3)
*** 2008-06-10 17:01:03.275
*** SERVICE NAME:(SYS$USERS) 2008-06-10 17:01:03.265
*** SESSION ID:(117.7376) 2008-06-10 17:01:03.265
KGX cleanup...
KGX Atomic Operation Log 0xdb72c4f8
Mutex 0xd1c1ce40(117, 0) idn 0 oper EXAM
Cursor Parent uid 117 efd 5 whr 26 slp 0
oper=DEFAULT pt1=0xcf970858 pt2=0xcf970a40 pt3=0xcf970f60
pt4=(nil) u41=0 stt=0
*** 2008-06-10 17:02:50.783
----------------------------------------
SO: 0xf31f7090, type: 2, owner: (nil), flag: INIT/-/-/0x00
(process) Oracle pid=21, calls cur/top: (nil)/0xe80f92c0, flag: (0) -
int error: 1089, call error: 0, sess error: 0, txn error 0
(post info) last post received: 1089 8 12
last post received-location: ksusig
last process to post me: f01cf770 70 0
last post sent: 0 0 0
last post sent-location: No post
last process posted by me: none
(latch info) wait_event=0 bits=0
Process Group: DEFAULT, pseudo proc: 0xf3217738
O/S info: user: oracle, term: pts/2, ospid: 15693
OSD pid info: Unix process pid: 15693, image: oracle@yans1 (TNS V1-V3)
*** 2008-06-10 17:03:20.787
Short stack dump: ... timed out; stack dump taking longer than 30000 ms
Dump of memory from 0x00000000F31E9D78 to 0x00000000F31E9F80
0F31E9D70 00000004 00000000 [........]
0F31E9D80 E90D60C0 00000000 00000010 0003139D [.`..............]
0F31E9D90 E80F92C0 00000000 00000003 0003139D [................]
0F31E9DA0 F033F1C0 00000000 0000000B 0003139D [..3.............]
0F31E9DB0 F3271290 00000000 00000004 00031291 [..'.............]
0F31E9DC0 00000000 00000000 00000000 00000000 [................]
Repeat 27 times
在另外的会话以SYSDBA登陆,利用SHUTDOWN ABORT可以关闭数据库,重启数据库也没有问题。
查询metalink发现是Oracle10g的一个bug,bug描述为:Doc ID: Note:5057695.8。Oracle在10.2.0.4和11中解决了这个bug。











