diagcollection.pl脚本使用

    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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22779291/viewspace-715488/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值