ITPUX技术网

交流 . 资讯 . 分享
Make progress together!
Oracle数据库DBA高级工程师培训视频
Oracle数据库培训-备份恢复-性能优化-集群容灾
mysql数据库视频教程

【Oracle script】CRS 10gR2/11gR1/11gR2 Diagnostic Collection Script

内容发布:风哥| 发布时间:2013-12-24 15:19:30
From the $ORA_CRS_HOME, run the following commands as root user:
# script. /tmp/diag.log
# id
# env
# cd <a log file location where there is plenty space>

For 10gR2:
# export ORA_CRS_HOME=<ORA_CRS_HOME>
# export ORACLE_BASE=<ORACLE_BASE>
# export HOSTNAME=<host>
# $ORA_CRS_HOME/bin/diagcollection.pl -collect

For 11gR1:

# export ORA_CRS_HOME=<$ORA_CRS_HOME>
# $ORA_CRS_HOME/bin/diagcollection.pl -crshome=$ORA_CRS_HOME --collect

For 11gR2:

# $GRID_HOME/bin/diagcollection.sh

# exit
Above commands will collect all logs under CRS or GRID HOME. The following .gz files will be generated in the current directory:
crsData_<hostname>.tar.gz,
ocrData_<hostname>.tar.gz,
oraData_<hostname>.tar.gz,
coreData_<hostname>.tar.gz (only --core option specified)
os_<hostname>.tar.gz (only for 11.2+)
Please upload them.


o From 11gR2 onwards, new features available for diagcollection.sh. If only a subset of logs to be collected, --adr together with --beforetime and --aftertime can be used.

For example:
# mkdir /tmp/collect
# $GRID_HOME/bin/diagcollection.sh --adr /tmp/collect -beforetime 20120218100000 -aftertime 20120218050000


This command will copy all logs contain timestamp 2012-02-18 05:00 - 10:00 to /tmp/collect directory. Time is specified with YYYYMMDDHHMISS24 format. --adr points to a directory where the logs are copied to.

o From 11.2.0.2 onwards, cluster health monitor(CHM/OS) data is also generated automatically, to collect CHM/OS data:

$ $GRID_HOME/bin/diagcollection.sh --chmos --incidenttime 02/18/201205:00:00 --incidentduration 05:00

This command will collect data from 2012-02-18 05:00 to 10:00 for 5 hours.
incidenttime is specified as MM/DD/YYYY24HH:MM:SS, incidentduration is specified as HH:MM.

详见metalink  :ID 330358.



上一篇:Oracle数据库系统安全加固规范
下一篇:Oracle DBA日常维护操作手册指南_Oracle数据库教程
189070296,150201289

专业提供Oracle数据库服务、主机、存储、备份、中间件等相关技术支持服务,QQ号:176140749
关注ITPUX技术网微信公众号itpux_com  ,了解本站最新技术资料的分享.

欢迎加QQ群,提供超多高质量Oracle/Unix/Linux技术文档与视频教程的下载。

Oracle/MySQL/Linux群4-5:189070296  150201289  
Oracle/MySQL/Linux群6-8:244609803   522261684   522651731
备注:请勿重复加群,另请注明 from itpux

加群分享视频教程部分如下:

1、公开课视频:Oracle/MySQL数据库工程师职业发展前景讲解(免费)
http://edu.51cto.com/course/7015.html

2、51CTO学院Oracle数据库高级工程师培训(高薪就业.课程介绍)
http://edu.51cto.com/px/train/131?xiaotu

3、Oracle DBA数据库高级工程师培训视频课程1.1(系列78套+七大阶段+上千案例)
套餐视频地址: http://edu.51cto.com/topic/1121.html

4、MySQL数据库(终身门徒)套餐:http://edu.51cto.com/sd/1e1a6

回复

使用道具 举报

内容发布:rubby1228| 发布时间:2015-4-7 12:00:24
学习了,标记下先,哈哈哈哈哈;P
回复 支持 反对

使用道具 举报

内容发布:YKN1390| 发布时间:2015-4-6 23:18:01
MARK 学习下,吼吼吼吼~
回复 支持 反对

使用道具 举报

1框架
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表