Required Support Diagnostics for Hanging Databases

本文档提供了一套详细的步骤来收集Oracle数据库挂起时所需的信息,包括如何进行两次挂起分析、系统状态转储及数据库性能快照的获取方法,并指导如何使用SQL*Plus执行相关命令。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Doc ID: 452358.1

 

In this Document
  Goal
  Solution
  References


 

 

Applies to:

Oracle Server - Enterprise Edition - Version: 9.0.1.0 to 11.1.0.6
Information in this document applies to any platform.

Goal

Provide information on what to collect for a situation where the database appears to hang.

Solution

If the Database Appears to 'hang' Please provide the following information:

A. 2 Hanganalyze and 2 Systemstate dumps.
B. Provide snapshots of database performance
C. Provide an up to date RDA.

A. 2 Hanganalyze and 2 Systemstate dumps.

Hanganalyze will confirm if the db is really hung or just slow.
Systemstate dump shows what each process on the database is doing.

* Beware of taking systemstates on very large systems with large numbers of process.
  Systemstates can be very slow and the trace file can be very large.

Using SQL*Plus connect as SYSDBA using the following command:

 
  sqlplus " / as sysdba"

Do this 2 times in 2 separate windows, creating 2 sqlplus sessions (SQL1 and SQL2)
In SQL1 gather the hanganalyze by executing the following:

 
SQL1> oradebug setmypid
SQL1> oradebug unlimit;
SQL1> oradebug hanganalyze 3

In SQL2 gather the systemstates by executing the following:

 
SQL2> oradebug setmypid
SQL2> oradebug unlimit;
SQL2> oradebug dump systemstate 266

Gather a second hang analyze having waited at least 1 minute to give time to identify process state changes. In SQL1 execute the following:

 
SQL1> oradebug hanganalyze 3

In SQL2 execute the following to collect a second systemstate dump:

 
SQL2> oradebug setmypid
SQL2> oradebug unlimit;
SQL2> oradebug dump systemstate 266

If you are using systemstate level 266 and it is taking much longer than expected to generate the dump file, then end this systemstate dump and try level 258.

If connection to the system is not possible in any form, then please refer to the following article which describes how to collect systemstates in that situation:

Note 121779.1 Taking a SYSTEMSTATE dump when you cannot CONNECT to Oracle.



B. Provide snapshots of database performance

Please take and upload snapshots of database performance.
Please refer to the following article for details of what to collect:

Note 781198.1 Required Support Diagnostics for Database Performance Issues


Please collect the requested information and upload the files produced to metalink.
Please List and describe the uploaded files below. If none, please indicate as such:

C. Provide an up to date RDA.

An up to date current RDA provides a lot of additional information about the configuration of the database and performance metrics.

See the following note on metalink:

Note 314422.1 Remote Diagnostic Agent (RDA) 4 - Getting Started

 

References

Note 121779.1 - Taking Systemstate Dumps when You cannot Connect to Oracle
Note 175006.1 - Steps to generate HANGANALYZE trace files
Note 276103.1 - PERFORMANCE TUNING USING 10g ADVISORS AND MANAGEABILITY FEATURES
Note 314422.1 - Remote Diagnostic Agent (RDA) 4 - Getting Started

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值