【RAC】Oracle Clusterware 診斷收集指令碼

楊奇龍發表於2012-04-28
診斷收集指令碼  
1.用於收集所有重要日誌檔案的指令碼應滿足以下條件:  
 – 必須以 root 身份執行  
 – 位於 $ORA_CRS_HOME/bin/diagcollection.pl  
2.將在本地目錄中生成以下檔案:  
 – basData_.tar.gz 
 - coreData__date.tar.gz
 – crsData __date.tar.gz 
 – ocrData __date.tar.gz  
 – oraData __date.tar.gz 
[root@rac1 ~]# perl /opt/rac/11.2.0/grid/bin/diagcollection.pl  -collect
Production Copyright 2004, 2008, Oracle.  All rights reserved
Cluster Ready Services (CRS) diagnostic collection tool
The following CRS diagnostic archives will be created in the local directory.
crsData_rac1_20120428_2140.tar.gz -> logs,traces and cores from CRS home. Note: core files will be packaged only with the --core option. 
ocrData_rac1_20120428_2140.tar.gz -> ocrdump, ocrcheck etc 
coreData_rac1_20120428_2140.tar.gz -> contents of CRS core files in text format

osData_rac1_20120428_2140.tar.gz -> logs from Operating System
Collecting crs data
Collecting OCR data 
Collecting information from core files
No corefiles found 
Collecting OS logs
[root@rac1 ~]# ll -trs
總計 7976
3924 -rw-r--r-- 1 root root 4012196 04-28 21:40 crsData_rac1_20120428_2140.tar.gz
 116 -rw-r--r-- 1 root root  111837 04-28 21:40 osData_rac1_20120428_2140.tar.gz
  12 -rw-r--r-- 1 root root    9395 04-28 21:40 ocrData_rac1_20120428_2140.tar.gz

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22664653/viewspace-722462/,如需轉載,請註明出處,否則將追究法律責任。

相關文章