【RAC】Oracle 12c以及以上版本的diagsnap是什麼? (Doc ID 2469643.1)
文件內容
|
用途 |
|
適用範圍 |
|
詳細資訊 |
|
參考 |
適用於:
Oracle Database - Enterprise Edition - 版本 12.1.0.2 和更高版本
Oracle Database Cloud Schema Service - 版本 N/A 和更高版本
Oracle Database Exadata Express Cloud Service - 版本 N/A 和更高版本
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - 版本 N/A 和更高版本
Oracle Cloud Infrastructure - Database Service - 版本 N/A 和更高版本
Linux x86-64
Oracle Solaris on x86-64 (64-bit)
Oracle Solaris on SPARC (64-bit)
IBM AIX on POWER Systems (64-bit)
Linux on IBM Z
用途
解釋什麼是diagsnap.
適用範圍
適用於有經驗的Real application cluster DBA
詳細資訊
Diagsnap是從12.1.0.2 GI開始引入的,CHM的osysmod 管理著diagsnap。 diagsnap用來收集那些CHM不收集的額外的os的statistics。
Diagsnap每15分鐘自動執行收集baseline的matric。此外以下的事件也會觸發diagsnap的matric收集。
- cssd報告missing network heartbeats(NHB's).
- gipcd 偵測到一個或者多個網路卡啟動或者停止.
- gipcd rank的事件(網路卡的健康狀態,GIPC會把啟動階段標記為-1,沒有packet傳輸標記為0,任何小於90的標記意味著有packet的丟失)
- iostat
- netstat
- lsof <gipcd pid/ocssd pid/crsd pid/ohasd pid>
- arp
- ifconfig
- ping over the private interconnect
- tcpdump
- top
下面的alert文件介紹了我們應該在特定的PSU或者RU版本上禁用 pstack.
Document 2422509.1
ALERT: Disable pstack Called From Diagsnap After Applying PSU/RU released between October 2017 and July 2018 to Grid Infrastructure (GI) Home on 12.1.0.2 and 12.2. (Doc ID 2422509.1)
diagsnap log的例子:
對於18.1以及以後版本, 進入 $ORACLE_BASE/crsdata/<hostname>/crf/diagsnap
# tail -n 40 diagsnap_node1.log
2016-08-21 01:16:12.925: [18056][MSG] Following Event received
------------------------------------------------------------------------------
-
> TYPE < TYPE : ora.crs.hasdiag
> PARAMETER < SUBTYPE : NETWORK
> DATA < COMMENT : inf[ 1] eth2 - rank -1, avgms
30000000000.000000 [ 0: 0: 0 ]
> DATA < TIMESTAMP : 2016-08-21 01:16:12.730
------------------------------------------------------------------------------
-
2016-08-21 01:16:12.926: [18056][MSG] Reading User Commands/Config, will sync
if any commands found.
2016-08-21 01:16:12.926: [18056][MSG] Updating user command (netstat) : netstat -r
2016-08-21 01:16:12.927: [18056][MSG] Executing 28 commands for new incident at 2016-08-21 01:16:12.922
2016-08-21 01:16:12.927: [18056][MSG] Spawned process 30523 for : netstat_r
2016-08-21 01:16:12.928: [18056][MSG] Spawned process 30524 for : mpstat_p-ALL-1-15
2016-08-21 01:16:12.928: [18056][MSG] Spawned process 30525 for : ifconfig
2016-08-21 01:16:12.929: [18056][MSG] Spawned process 30526 for : vmstat_m
2016-08-21 01:16:12.929: [18056][MSG] Spawned process 30527 for : arp_an
2016-08-21 01:16:12.930: [18056][MSG] Spawned process 30530 for : lsof_5560_gipcd_bin
如何禁用diagsnap?
在 12.1.0.2, 如果以上的命令不生效, 請使用root使用者來執行 "diagsnap.pl deregister"
在成功執行完以上命令後, 每個server上的 GI_HOME/crf/admin/crf<hostname>.ora 檔案都應該有以下的設定
(執行"egrep '^DIAGSNAP|^PSTACK' <GRID_HOME>/crf/admin/crf$(hostname -s).ora" 來確認設定):
PSTACK=Disable
DIAGSNAP=Disable
如果Disable設定不生效, 編輯crf<hostname>.ora 檔案已包含以下資訊然後手工kill掉現有的Diagsnap程式 (手工在所有節點執行)
PSTACK=DISABLE
DIAGSNAP=DISABLE
參考
NOTE:27068526.8
- Bug 27068526 - Diagsnap.pl is starting again after installing October RU/GIPSU causing node evictions
NOTE:25785073.8
- Bug 25785073 - OCSSD hangs while DIAGSNAP takes pstack causing a node reboot
NOTE:2200321.1
- Prepatch Failed To Stop The Cluster
NOTE:2422509.1
- ALERT: Disable pstack Called From Diagsnap After Applying PSU/RU released between October 2017 and July 2018 to Grid Infrastructure (GI) Home on 12.1.0.2 and 12.2.
NOTE:23101338.8
- Bug 23101338 - Disable diagsnap after 12.1.0.2.160419 GI PSU patch was installed
NOTE:25397620.8
- Bug 25397620 - Public and Private interfaces entered/left Promiscuous Mode messages in OS log
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29487349/viewspace-2887349/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 最新PSU (Doc ID 2118136.2)Oracle
- Oracle 下載最新psu (Doc ID 2118136.2)Oracle
- 12c DG新特性 - Active Data Guard Far Sync (Doc ID 2179719.1)
- 【DATAGUARD】Data Guard 12C 新特性:Far Sync Standby (Doc ID 2179719.1)
- Oracle 12c rac ocr和votedisk管理Oracle
- ORACLE 12C RAC資料庫的啟停Oracle資料庫
- 什麼是bundle id
- Oracle 12c 使用RMAN搭建物理備庫(RAC to RAC)Oracle
- oracle 12C以上 版本資料庫訪問 ORA-28040 ORA-03134Oracle資料庫
- oracle11g: Scheduler Maintenance Tasks or Autotasks (Doc ID 756734.1)OracleAINaN
- 【DBA】Relinking Oracle Home 常見問題 (Doc ID 2048232.1)Oracle
- How To Replicate Data from Oracle to Postgres Using GoldenGate (Doc ID 1544137.1OracleGo
- [20190107]12c以上版本配置dg注意.txt
- Oracle 12C RAC CDB資料庫部署Oracle資料庫
- oracle 12c rac 詳細部署教程(二)Oracle
- oracle 12c rac 詳細部署教程(一)Oracle
- ORACLE 12C RAC 部署應用包準備Oracle
- Can GoldenGate Replicate An Oracle Table That Contains Only CLOB Column(s)? (Doc ID 971833.1)GoOracleAI
- 序列化ID是什麼?
- [20211115]12c以上版本Last Login Time 引發的故障.txtAST
- [20230308]12c以上版本模糊查詢問題.txt
- Oracle 12C RAC的單機Standby returning error ORA-16191OracleError
- 是什麼妨礙了人們升級到Java 8以上版本? - RedditJava
- ORACLE 12C RAC 生產環境搭建介紹Oracle
- Oracle 12c RAC構築之二:共享磁碟配置Oracle
- Oracle 12C ORA-12545 While Connecting to RAC through SCAN NameOracleWhile
- 【ASK_ORACLE】Oracle 12c之CDB與PDB的備份與恢復(一)什麼是CDB與PDB?Oracle
- Oracle RAC中驗證LUN_ID對應情況Oracle
- [20210421]12c以上版本增加欄位與預設值.txt
- expdp/impdp變慢 (Doc ID 2469587.1)
- Reading and Understanding Systemstate Dumps (Doc ID 423153.1)
- oracle 12C RAC 12.1.0.2 叢集日誌(cluster log)目錄Oracle
- Oracle 12c RAC CSSD程式無法啟動real time模式OracleCSS模式
- 什麼是Oracle的資料字典?Oracle
- 什麼是代理以及它是如何工作的?
- 什麼是規則即程式碼 (RaC) - brcommunityUnity
- RMAN -- Frequently Asked Question (FAQ) (Doc ID 469777.1)
- Oracle Database 12c RAC損壞ocr和votedisk恢復實驗OracleDatabase