运行脚本diagcollection.pl报错

OracleRAC提供了diagcollection.pl脚本,用来收集CLUSTER和数据库的脚本。不过在客户环境中执行这个脚本报错。

 

 

详细错误信息为:

[root@smsdbrac1 ora_test]# $ORA_CRS_HOME/bin/diagcollection.pl -crshome=$ORA_CRS_HOME -collect
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_smsdbrac1.tar.gz -> logs,traces and cores from CRS home. Note: core files will be packaged only with the -core option.
ocrData_smsdbrac1.tar.gz -> ocrdump, ocrcheck etc
coreData_smsdbrac1.tar.gz -> contents of CRS core files in text format

Collecting crs data
sh: line 1: /bin/tar: Argument list too long
gzip: crsData_smsdbrac1.tar: No such file or directory
Collecting OCR data
Collecting information from core files
Previous frame. inner to this frame. (corrupt stack?)
Previous frame. inner to this frame. (corrupt stack?)
The following Oracle Home diagnostic archives will be created in the local directory.
oraData_smsdbrac1.tar.gz -> logs, traces and cores from Oracle Home
Collecting oracle home data
/bin/tar: Removing leading `/' from member names

执行脚本出现Argument list too long的错误,查询MOS发现导致问题的原因CRS目录中的文件太多,以致于超过了shell的限制。

11g中可以使用—afterdatevar来限制时间范围,从而减少CRS中采集的文件数量。

对于10.2版本,除了手工收集脚本这个办法外,还可以考虑手工减少日志数量的方法。进入$CRS_HOME/log//client目录,将所有一个月前的日志打包并压缩,然后删除,再次运行diagcollection.pl脚本即可。

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/4227/viewspace-712384/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/4227/viewspace-712384/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值