您好,欢迎访问一九零五行业门户网

Oracle数据库Immediate Kill Session错误解决方案

oracle数据库immediate kill session错误解决方案
1.错误信息
immediate kill session#: 1024, serial#: 9855
immediate kill session: sess: 7000001cc9bb9e8  os pid: 799228 
2.原因:
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.
简单地说,就是,会话session失去了连接。欲进行资源确认,可是资源状态信息却得不到。
于是,就认为资源没有在运行。
然后,就断开使用默认数据库服务名的session。
然后就没有然后了。。。
3.解决方案
方案一:升级数据库到10.2.0.5或以上版本
the fix is included in 10.2.0.5 patchset and 11.1.0.7 patchset.
    apply the patchset once they are available.
方案二:更改服务名,,不与db_name一致。
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.
具体步骤如下
1,获得实例名:
 select instance_name from v$instance;
2,获得当前service_names:
sql> show parameter name
name                                 type        value
------------------------------------ ----------- -------------
db_file_name_convert                 string
db_name                              string      orcl
db_unique_name                       string      orcl
global_names                         boolean     false
instance_name                        string      orcl
lock_name_space                      string
log_file_name_convert                string
service_names                        string      orcl
3.更改service_names:
alter system set service_names = 'orcl1' scope=memory sid='orcl';
其它类似信息

推荐信息