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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- db_name,db_domain, global_name, service_name的區別AI
- Removing Sessions in Killed Status on Unix (文件 ID 274216.1)REMSession
- [轉]ORACLE中的DB_NAME,SERVICE_NAME,INSTANCE_NAME,ORACLE_SID,GLOBAL_DBNAMEOracle
- Oracle修改instance_name、db_name、db_unique_name、service_namesOracle
- instance_name、db_name、ORACLE_SID、db_name等的區別Oracle
- Oracle中DB_NAME,SID,DB_DOMAIN,SERVICE_NAME等之間的區別OracleAI
- ORACL中的DB_NAME,SERVICE_NAME,INSTANCE_NAME,ORACLE_SID,GLOBAL_DBNAME介紹Oracle
- ORACLE中的DB_NAME,SERVICE_NAME,INSTANCE_NAME,ORACLE_SID,GLOBAL_DBNAME介紹Oracle
- DB_NAME、DB_UNIQUE_NAME、SERVICE_NAME和INSTANCE_NAME等的區別
- CUUG 筆記ORACLE db_name instance_name gobal_name service_name db_unique_name分析筆記OracleGo
- ORACLE_SID,INSTANCE_NAME和DB_NAMEOracle
- DB_NAME DB_UNIQUE_NAME 和 SID 的理解
- 利用nid工具修改db_name和instance_name
- ImportError: cannot import name 'get_ora_doc' from partially initialized moduleImportErrorZed
- Rename db_name for OracleOracle
- Oracle SID VS Service NameOracle
- Oracle SID & SERVICE_NAMEOracle
- Using Multiple Variables with the Same Name
- Kill all sessions of a specified user nameSession
- DB_NAME Initialization Parameter (87)
- 更改Global_name, domain_name, db_name 的方法AI
- 利用nid工具修改db_name時hang住
- 關於db_name,oracle_sid,service_names,global_names等的總結說明Oracle
- DB_NAME&TANCE_NAME&DB_UNIQUE_NAME&ORACLE_SID&GLOBAL_NAME&DB_DOMAIN&SERVICE_NAMEOracleAI
- oracle sid,instance_name,db_name,oracle_sid之間的關係Oracle
- Linux OS Service 'ntpd' (Doc ID 551704.1)Linux
- How to get complete sessions informationSessionORM
- 更改資料庫SID名和db_name名資料庫
- 關於ORACLE_SID和DB_NAME的理解Oracle
- Unable to locate factory with name [default]
- db_name和db_unique_name的區別
- How to Rename Database/Change DB_NAME or ORACLE_SID/Instance Name-15390.1DatabaseOracle
- 驗證service_names、db_name、db_unique_name在註冊動態監聽服務名時的作用
- SID、ORACLE_SID、INSTANCE_NAME、DB_NAME、SERVER_NAMES、GLOBAL_DBNAME等區別OracleServer
- oracle 10g中的幾個概念(sid/db_name/....)Oracle 10g
- Under the same directory(folder) copy or rename with the different extension name
- [oradebug命令學習2]How to Use Oradebug to Get Trace File Name and Location
- 修改資料庫db_name的方法資料庫