oracle rac 其中第一個節點監聽偶爾中斷處理案例
問題簡述:2010-5-31日上午,p730a節點listener_p730a資源offline,導致
應用切換到p730b節點上,後來p730a節點每隔四五天左右,監聽就會出現偶爾
中斷現象。
作業系統:AIX 6100
資料庫:oracle 10.2.0.5 rac
儲存: emc-cx4-960
日上午,p730a節點listener_p730a資源offline,導致
應用切換到p730b節點上,後來p730a節點監聽每隔四五天左右會出現offline現象,需要手工去啟動p730a節點監聽。
3 處理過程
1. 透過以下方法,可以暫時解決這個問題
Srvctl stop listener –n p730a
Srvctl start listener –n p730a
2. 檢查作業系統日誌
最新日誌只有到2011.5.18號,後來作業系統沒有任何相關報錯。
3. 檢視p730a節點crs日誌
2011-05-30 09:19:37.294: [ CRSAPP][11834]32CheckResource error for ora.p730b.vip error code = 1
2011-05-30 09:19:37.308: [ CRSRES][11834]32In stateChanged, ora.p730b.vip target is ONLINE
2011-05-30 09:19:37.309: [ CRSRES][11834]32ora.p730b.vip on p730a went OFFLINE unexpectedly
2011-05-30 09:19:37.309: [ CRSRES][11834]32StopResource: setting CLI values
2011-05-30 09:19:37.321: [ CRSRES][11834]32Attempting to stop `ora.p730b.vip` on member `p730a`
2011-05-30 09:19:37.689: [ CRSRES][11834]32Stop of `ora.p730b.vip` on member `p730a` succeeded.
2011-05-30 09:19:37.690: [ CRSRES][11834]32ora.p730b.vip RESTART_COUNT=0 RESTART_ATTEMPTS=0
2011-05-30 09:19:37.692: [ CRSRES][11834]32ora.p730b.vip failed on p730a relocating.
2011-05-30 09:19:37.755: [ CRSRES][11834]32Attempting to start `ora.p730b.vip` on member `p730b`
2011-05-30 09:19:44.705: [ CRSRES][11834]32Start of `ora.p730b.vip` on member `p730b` failed.
2011-05-30 09:21:08.879: [ CRSAPP][11841]32CheckResource error for ora.p730a.vip error code = 1
2011-05-30 09:21:08.883: [ CRSRES][11841]32In stateChanged, ora.p730a.vip target is ONLINE
2011-05-30 09:21:08.883: [ CRSRES][11841]32ora.p730a.vip on p730a went OFFLINE unexpectedly
2011-05-30 09:21:08.883: [ CRSRES][11841]32StopResource: setting CLI values
2011-05-30 09:21:08.903: [ CRSRES][11841]32Attempting to stop `ora.p730a.vip` on member `p730a`
2011-05-30 09:21:09.280: [ CRSRES][11841]32Stop of `ora.p730a.vip` on member `p730a` succeeded.
2011-05-30 09:21:09.280: [ CRSRES][11841]32ora.p730a.vip RESTART_COUNT=0 RESTART_ATTEMPTS=0
2011-05-30 09:21:09.283: [ CRSRES][11841]32ora.p730a.vip failed on p730a relocating.
2011-05-30 09:21:09.321: [ CRSRES][11841]32StopResource: setting CLI values
2011-05-30 09:21:09.330: [ CRSRES][11841]32Attempting to stop `ora.p730a.LISTENER_P730A.lsnr` on member `p730a`
2011-05-30 09:22:26.511: [ CRSRES][11841]32Stop of `ora.p730a.LISTENER_P730A.lsnr` on member `p730a` succeeded.
2011-05-30 09:22:26.527: [ CRSRES][11841]32Attempting to start `ora.p730a.vip` on member `p730b`
2011-05-30 09:22:28.006: [ CRSRES][11841]32Start of `ora.p730a.vip` on member `p730b` succeeded.
可以看到p730a節點監聽offline主要原因是由於p730a節點 vip offline,然後p730a節點的vip資源自動切換到p370b節點。
4. 開啟debug對vip資源進行trace
crsctl debug log res "ora.p730a.vip:5"
產生的trace檔案放在$ORA_CRS_HOME/log/p730a/目錄下
5. 根據metalink文件ID1297867.1
根據以下步驟:修改racgvip指令碼
1. Stop all node applications.
% srvctl stop nodeapps -n
2. Backup then Modify the racgvip script. .
Change:
# timeout of ping in number of loops (1 sec)
PING_TIMEOUT=" -c 1 -w 1"
To:
# timeout of ping in number of loops (3 sec)
PING_TIMEOUT=" -c 1 -w 3"
3. Start the node applications and other necessary resources.
% srvctl start nodeapps -n
6. 關閉debug
crsctl debug log res "ora.p730a.vip:0"
後來打電話給客戶,客戶說透過修改racgvip指令碼後, p730a監聽中斷問題沒有再出現過。
4 結論和建議
對於比較異常的crs問題,可以用debug來跟蹤產生log,從而確定問題所在。
開啟debug
crsctl debug log res "ora.p730a.vip:5"
crsctl debug log res "ora.p730b.vip:5"
關閉debug
crsctl debug log res "ora.p730a.vip:0"
crsctl debug log res "ora.p730b.vip:0"
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-701543/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 處理rac資料庫一個節點監聽異常資料庫
- oracle grid 其中一個節點asm 磁碟組後設資料損壞處理案例OracleASM
- Oracle RAC Database 11.1.0.6監聽故障案例OracleDatabase
- 網路中斷導致RAC環境所有節點監聽lsnr自動關閉
- oracle 11gR2 crs 其中一個節點grid叢集啟動不成功處理案例Oracle
- Oracle 監聽異常處理Oracle
- oracle 11gR2 rac 兩節點有一個節點down掉問題處理Oracle
- oracle listener 監聽啟動不起來處理案例一則Oracle
- 【RAC】刪除RAC資料庫節點(三)——刪除監聽資料庫
- Oracle10g RAC 兩個監聽狀態為offline 問題處理Oracle
- 一次oracle rac 監聽不定時offline處理過程Oracle
- 使用Zabbix中遇到的問題:snmp監控埠流量偶爾會斷圖
- Oracle優化案例-新增RAC節點(二十九)Oracle優化
- Oracle RAC新增節點Oracle
- Oracle RAC 新增節點Oracle
- JavaScript 監聽子節點改變JavaScript
- oracle rac scan監聽更改埠號Oracle
- RAC第一個節點被剔除叢集故障分析
- 【RAC】處理因ASM例項異常導致RAC第一節點例項異常終止故障ASM
- oracle監聽器日誌過大-處理辦法Oracle
- Oracle Rac 刪除節點Oracle
- 監聽Dom節點變化 - Mutation ObserverServer
- JavaScript監聽後代節點改變JavaScript
- Oracle RAC命中ORA-7445只能開啟一個節點故障案例分析Oracle
- oracle 10g cluster rac vip始終在節點2的問題處理Oracle 10g
- RAC中job會在哪個節點執行
- Oracle 11g RAC 監聽日常管理Oracle
- 中斷和中斷處理程式
- Netty中自定義事件處理程式和監聽器Netty事件
- [網摘] Oracle RAC新增節點Oracle
- 檢視oracle rac的節點Oracle
- JavaScript監聽文字節點內容改變JavaScript
- 數字影象處理-第一節
- rac scan listener log 清理監聽日誌 oracleOracle
- oracle crs監聽狀態為offline處理過程Oracle
- Java GUI之事件監聽與處理JavaGUI事件
- 英特爾首度披露80個核心處理器技術細節
- oracle 11gR2 rac for aix 第二個節點執行root.sh不成功問題處理OracleAI