Welcome 微信登录

首页 / 数据库 / MySQL / 诊断Oracle Clusterware和RAC组件

RAC 调试中的一个黄金规则  
1.请始终确保各个节点具有完全相同的系统时间,这样才能实现以下目标:  
 – 便于进行日志信息分析  
 – 确保读取 GV$ 视图时获得准确结果  
 – 避免实例被过早逐出  
2. 最好的建议是使用网络时间协议对各节点进行同步。  

Oracle Clusterware 主要日志文件

诊断收集脚本  
1.用于收集所有重要日志文件的脚本应满足以下条件:  
 – 必须以 root 身份执行  
 – 位于 $ORA_CRS_HOME/bin/ 中  
 – 名为 diagcollection.pl  
2.将在本地目录中生成以下文件:  
 – basData_<hostname>.tar.gz
 - coreData_<hostname>.tar.gz
 – crsData _<hostname>. tar.gz
 – ocrData _<hostname>. tar.gz  
 – oraData _<hostname>. tar.gz  
 示例:
  1. root@rac1 /oracle/backup$ /u01/crs1020/bin/diagcollection.pl -collect  
  2. Production Copyright 2004, 2005, Oracle.  All rights reserved  
  3. Cluster Ready Services (CRS) diagnostic collection tool  
  4. The following CRS diagnostic archives will be created in the local directory.  
  5. crsData_rac1.gz -> logs,traces and cores from CRS home  
  6. ocrData_rac1.gz -> ocrdump, ocrcheck etc  
  7. coreData_rac1.gz -> contents of CRS core files in text format  
  8.   
  9. Collecting crs data  
  10. /bin/tar: Removing leading `/" from member names  
  11. Collecting OCR data  
  12. Collecting information from core files  
  13. /usr/bin/gdb: option `--bat" is ambiguous  
  14. Use `/usr/bin/gdb --help" for a complete list of options.  
  15. /usr/bin/gdb: option `--bat" is ambiguous  
  16. Use `/usr/bin/gdb --help" for a complete list of options.  
  17. /usr/bin/gdb: option `--bat" is ambiguous  
  18. Use `/usr/bin/gdb --help" for a complete list of options.  
  19. /usr/bin/gdb: option `--bat" is ambiguous  
  20. Use `/usr/bin/gdb --help" for a complete list of options.  
  21. /usr/bin/gdb: option `--bat" is ambiguous  
  22. Use `/usr/bin/gdb --help" for a complete list of options.  
  23. The following Oracle Home diagnostic archives will be created in the local directory.  
  24. oraData_rac1.gz -> logs, traces and cores from Oracle Home  
  25. Collecting oracle home data  
  26. /bin/tar: Removing leading `/" from member names  
  27. /bin/tar: /u01/app/oracle/product/10.2.0/db_1/admin/*: Cannot stat: No such file or directory  
  28. /bin/tar: Error exit delayed from previous errors  
  29. The following Oracle Base diagnostic archives will be created in the local directory.  
  30. basData_rac1.gz -> logs,traces from Oracle base  
  31. Collecting oracle base data  
  32. /bin/tar: Removing leading `/" from member names  
  33. root@rac1 /oracle/backup$ ll | grep tar  
  34. -rw-r--r-- 1 root   root      13233982 Feb 28 22:37 basData_rac1.tar.gz  
  35. -rw-r--r-- 1 root   root           232 Feb 28 22:36 coreData_rac1.tar.gz  
  36. -rw-r--r-- 1 root   root      40923089 Feb 28 22:35 crsData_rac1.tar.gz  
  37. -rw-r--r-- 1 root   root          7921 Feb 28 22:36 ocrData_rac1.tar.gz  
  38. -rw-r--r-- 1 root   root        164183 Feb 28 22:36 oraData_rac1.tar.gz  
集群诊断与集群验证详细可以参考 :
Oracle Database Oracle Clusterware and Oracle Real Application Clusters Administration and Deployment Guide ->A Troubleshooting
http://docs.oracle.com/cd/B19306_01/rac.102/b14197/appsupport.htm#i632140MySQL Cluster 开发环境简明部署(中文)MongoDB 2.0.3 发布相关资讯      oracle数据库教程 
  • Oracle raw数据类型介绍  (01/29/2013 10:05:53)
  • 监听器注册与ORA-12514 错误分析  (11/13/2012 14:30:08)
  • Oracle SQL的cursor理解  (11/13/2012 14:16:17)
  • Oracle 如何强制刷新Buffer Cache  (01/29/2013 10:02:46)
  • dblink致Oracle库的SCN变成两库的  (11/13/2012 14:24:41)
  • Linux操作系统下完全删除Oracle数  (11/13/2012 08:25:52)
本文评论 查看全部评论 (0)
表情: 姓名: 字数