诊断收集脚本
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