文档内容
|
|
用途 |
| 上传到 oracle support 的数据文件类型 |
|
|
排错步骤 |
| 1. 对于 oracle 集群问题的数据收集 |
| 2. 对于节点重启/驱逐问题的数据收集 |
| 3. 对于 RAC 问题的数据收集 |
| 4. 对于 RAC 性能/Hang 问题的数据收集 |
| 5. 对于 oracle 集群安装问题的数据收集 |
| 5.1. 对于执行 root 脚本前的错误: |
| 5.2. 对于执行 root 脚本过程中或之后的错误: |
| 附录: A RDA |
| 附录:B 系统日志 |
| 附录:C 集群中的 systemstat 和 hanganalyze |
|
|
参考 |
该文档是临时性的,以后会被淘汰,强烈建议使用 TFA 收集所有节点文件:
参考: note 1513912.1TFA Collector - Tool for Enhanced Diagnostic Gathering
11.2.0.4 或更高版本 TFA Collector 会默认安装在的 GI HOME下,11.2.0.3 或以下版本请参考 note 1513912.1 关于下载和安装。
这篇文档列出了如何搜集不同类型集群和 RAC 问题的数据信息,对于新建 SR 不强制上传所有文件,但如果所有相关信息都已上传,将加快问题的分析与处理。
Oracle support 希望客户按节点压缩相关文件并使用标准格式,如: .tar, .gz, .Z 或 .zip。
过期的诊断信息或文件(如果是几天或几周前的诊断收集信息)不包含当前发生问题的日志信息,则可能延缓我们的分析结果。
提供集群中所有节点的当前诊断信息输出:
Note 330358.1 - CRS 10gR2/ 11gR1/ 11gR2 Diagnostic Collection Guide
Note 272332.1 - CRS 10gR1 Diagnostic Collection Guide
请提供“对于 Oracle 集群问题的数据收集”以及提供下面信息:
Note 301137.1 - OS Watcher User Guide
Note.433472.1 - OS Watcher For Windows (OSWFW) User Guide
对于所有节点:
$ grep "2010-09-02 03" *.trc | awk -F: '{print $1}' | sort -u |xargs tar cvf trace.`hostname`.`date +%Y%m%d%H%M%S`.tar $ gzip trace*.tar
对于 11g 以前版本,在 bdump 和 udump 目录下执行。
对于 11g+ 版本,在目录${ORACLE_BASE}/diag/rdbms/$DBNAME/${ORACLE_SID}/trace下执行 。
提供"对于 Oracle 集群问题的数据收集"以及以下信息:
Note 301137.1 - OS Watcher User Guide
Note.433472.1 - OS Watcher For Windows (OSWFW) User Guide
针对于 11gR2 版本:note 1056322.1 - Troubleshoot 11gR2 Grid Infrastructure/RAC Database runInstaller Issues
针对于 11.2 以前版本:note 406231.1 - Diagnosing RAC/RDBMS Installation Problems
请提供“对于 Oracle 集群问题的数据收集”以及下面文件:
建议提供集群中所有节点最近的 RDA 数据收集。
Note 314422.1 - Remote Diagnostics Agent (RDA)
根据 OS 平台日志在下面对应的目录中:
注意:对于11gR2,在 linux, solaris,hp-ux 平台,诊断收集信息已包含系统日志。
为在 RAC 中搜集 hanganalyze 和 systemstate 信息,在 RAC 中的一个实例执行下面命令来产生集群 dump 文件。
a - 使用 sysdba 用户连接数据库:”sqlplus /as sysdba”
如果 sqlplus 不能正常工作,就使用”sqlplus –prelim /as sysdba”
b - 执行下面命令:
SQL> oradebug setospid <ospid of diag process>
SQL> oradebug unlimit
SQL> oradebug -g all hanganalyze 3
##..Wait about 2 minutes
SQL> oradebug -g all hanganalyze 3
SQL> oradebug -g all dump systemstate 258
如果可能,请使用 266 级别再进行一次收集。
If SGA is large or fix for bug 11800959 (fixed in 11.2.0.2 DB PSU5, 11.2.0.3 and above) is not applied, level 266 could take very long time and generate a huge trace file and may not finish in hours.
SQL> oradebug setospid <ospid of diag process>
SQL> oradebug unlimit
SQL> oradebug -g all dump systemstate 266##..Wait about 2 minutes
SQL> oradebug -g all dump systemstate 266
请从 bdump 或 trace 目录上传 diag trace 文件。
SQL> oradebug setmypid
SQL> oradebug unlimit
SQL> oradebug hanganalyze 3
##..Wait about 2 minutes
SQL> oradebug hanganalyze 3
SQL> oradebug dump systemstate 258
SQL> oradebug tracefile_name
请上传以上的 trace 文件。
如果 ASM 包含在内,上面的命令同样使用于 ASM 上搜集 hanganalyze 和 systemstate。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31393455/viewspace-2130457/ ,如需转载,请注明出处,否则将追究法律责任。