Sessions Get Killed if Connection Use Default Service name (Same as db_name) (Doc ID 730315.1)

今天一个朋友碰到一点问题,目标环境是AIX RAC 10.2.0.4,alert日志里出现


Thu Jan 6 09:04:13 2011
ALTER SYSTEM SET service_names='orcl' SCOPE=MEMORY SID='orcl1';
Thu Jan 6 09:04:13 2011
Immediate Kill Session#: 252, Serial#: 25
Immediate Kill Session: sess: 70000020821ec30 OS pid: 201078
Thu Jan 6 09:04:13 2011
Process OS id : 201078 alive after kill
Errors in file
Thu Jan 6 09:04:13 2011
ALTER SYSTEM SET service_names='' SCOPE=MEMORY SID='orcl1';
Immediate Kill Session#: 253, Serial#: 1332
Immediate Kill Session: sess: 70000020a247e98 OS pid: 270550
Thu Jan 6 09:04:14 2011
Process OS id : 270550 alive after kill
Errors in file /opt/oracle/app/admin/orcl/udump/orcl1_ora_209652.trc
Immediate Kill Session#: 254, Serial#: 348
Immediate Kill Session: sess: 70000020f2424c8 OS pid: 221658


在metalink上查了一下,Doc ID 730315.1,db_name和service_name相同时就有可能触发这个问题。

解决方法是修改service_name,使之与db_name不同,或者升级至10.2.0.5

[@more@]

Document TitleSessions Get Killed if Connection Use Default Service name (Same as db_name) (Doc ID 730315.1)

Modified Date LabelModifiedModified Date25-AUG-2010Document Type LabelTypeDocument TypePROBLEMStatusARCHIVED(EXTERNAL)Priority3To Bottom

In this Document
Symptoms
Cause
Solution
References

Applies to:
Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 10.2.0.4 - Release: 10.2 to 10.2
Information in this document applies to any platform.
Symptoms
alert.log report "Immediate Kill Session" messages, but no one issued such command.

ALTER SYSTEM SET service_names='' SCOPE=MEMORY SID='ORCL1';
...
Immediate Kill Session#: 1606, Serial#: 23
Immediate Kill Session: sess: 0x447e141c0 OS pid: 21802
Immediate Kill Session#: 1607, Serial#: 25
Immediate Kill Session: sess: 0x446e27580 OS pid: 21751
Immediate Kill Session#: 1608, Serial#: 32
Immediate Kill Session: sess: 0x447e15670 OS pid: 21804
Immediate Kill Session#: 1610, Serial#: 56
Immediate Kill Session: sess: 0x447e16b20 OS pid: 20036
Immediate Kill Session#: 1611, Serial#: 21
Immediate Kill Session: sess: 0x446e29ee0 OS pid: 19893
...
ALTER SYSTEM SET service_names='ORCL' SCOPE=MEMORY SID='ORCL1';

Cause
This is caused by unpublished Bug 6955040 ALL THE SESSIONS LOST CONNECTION AFTER KILLING CRSD.BIN.

The problem is when CRSD is killed or crashed and restarted, CRSD will run resource check action but CRS resource status will not be available at that time. Then in instance check action, it fails to get the preferred node VIP resource status and considered the preferred node VIP resource is not running. Therefore, instance check action will remove the default database service name and disconnect sessions connected using default database service name.

This causes messages "ALTER SYSTEM" and "Immediate Kill Session" printed in alert log.

Solution
1) The fix is included in 10.2.0.5 patchset and 11.1.0.7 patchset.
Apply the patchset once they are available.

OR

2) Configure a service name other than the default one (same as db_name), and get user to use the non-default service name for connection.

References

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/19423/viewspace-1044214/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/19423/viewspace-1044214/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值