diagcollection.pl来收集crs相关的日志
RAC2:/oracle_crs/product/10.2/crs/bin # ./diagcollection.pl --help
Production Copyright 2004, 2005, Oracle. All rights reserved
Cluster Ready Services (CRS) diagnostic collection tool
diagcollection
--collect
[--crs] For collecting crs diag information
[--oh] For collecting oracle home diag information
[--all] Default.For collecting all diag information.
[--core] UNIX only. Does not package core files.
[--afterdate] UNIX only. Collects archives from the specified date. Specify in mm/dd/yyyy format
[--crshome] Argument that specifies the CRS Home location
NOTE:
1. You can also do the following
./diagcollection.pl --collect --crs --oh
2. ORACLE_HOME env variable needs to be set.
--clean cleans up the diagnosability
information gathered by this script
--coreanalyze UNIX only. Extracts information from core files
and stores it in a text file
diagcollection
--collect
[--crs] For collecting crs diag information
[--oh] For collecting oracle home diag information
[--all] Default.For collecting all diag information.
[--core] UNIX only. Does not package core files.
[--afterdate] UNIX only. Collects archives from the specified date. Specify in mm/dd/yyyy format
[--crshome] Argument that specifies the CRS Home location
NOTE:
1. You can also do the following
./diagcollection.pl --collect --crs --oh
2. ORACLE_HOME env variable needs to be set.
--clean cleans up the diagnosability
information gathered by this script
--coreanalyze UNIX only. Extracts information from core files
and stores it in a text file
RAC2:/oracle_crs/product/10.2/crs/bin # ./diagcollection.pl --collect --all
Production Copyright 2004, 2005, Oracle. All rights reserved
Cluster Ready Services (CRS) diagnostic collection tool
Mandatory argument 'crshome' is missing.
RAC2:/oracle_crs/product/10.2/crs/bin # ./diagcollection.pl --collect --all --crshome=/oracle_crs/product/10.2/crs/
Production Copyright 2004, 2005, Oracle. All rights reserved
Cluster Ready Services (CRS) diagnostic collection tool
The following CRS diagnostic archives will be created in the local directory.
crsData_rac2.tar.gz -> logs,traces and cores from CRS home. Note: core files will be packaged only with the -core option.
ocrData_rac2.tar.gz -> ocrdump, ocrcheck etc
coreData_rac2.tar.gz -> contents of CRS core files in text format
Collecting crs data
/bin/tar: Removing leading `/' from member names
Collecting OCR data
Collecting information from core files
/usr/bin/gdb: option `--bat' is ambiguous
Use `/usr/bin/gdb --help' for a complete list of options.
/usr/bin/gdb: option `--bat' is ambiguous
Use `/usr/bin/gdb --help' for a complete list of options.
/usr/bin/gdb: option `--bat' is ambiguous
Use `/usr/bin/gdb --help' for a complete list of options.
The following Oracle Home diagnostic archives will be created in the local directory.
oraData_rac2.tar.gz -> logs, traces and cores from Oracle Home
Collecting oracle home data
/bin/tar: Removing leading `/' from member names
/bin/tar: /opt/oracle/product/10.2/db_1/log/rac2/client: Cannot stat: No such file or directory /bin/tar: Error exit delayed from previous errors
RAC2:/oracle_crs/product/10.2/crs/bin # ll *.tar.gz
-rw-r--r-- 1 root root 176 Feb 2 10:07 coreData_rac2.tar.gz
-rw-r--r-- 1 root root 196249 Feb 2 10:07 crsData_rac2.tar.gz
-rw-r--r-- 1 root root 7076 Feb 2 10:07 ocrData_rac2.tar.gz
-rw-r--r-- 1 root root 19039 Feb 2 10:07 oraData_rac2.tar.gz
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22779291/viewspace-715488/,如需转载,请注明出处,否则将追究法律责任。