HANGFG User Guide (Doc ID 362094.1)
The Hang File Generator(HANGFG) User Guide
Carl Davis, Center of Expertise
Best Practices
Pro-Active Problem Avoidance and Diagnostic Collection
Although some problems may be unforeseen, in many cases problems may be avoidable if signs are detected early enough. Additionally, if an issue does occur, it is no use collecting information about that issue after the event. HANGFG is one of the tools that support recommend for collecting such diagnostics. For information on suggested uses, other proactive preparations and diagnostics, see:
Document 1477599.1 Best Practices Around Data Collection For Performance Issues
Contents
-
Introduction
- Overview
- Supported Platforms
- Download HANGFG
- Installing HANGFG
- Uninstalling HANGFG
- Running HANGFG
- RAC Environments
- Output Files
- Reporting Feedback
Introduction
HANGFG (Hang file generator) is a series of unix shell scripts used to automate the generation and collection of hanganalyze and systemstate trace files. HANGFG generates and collects hang trace files based on the impact of taking diagnostic traces on a system which is already in a degraded state. The overall decision on what level of impact the user can afford is left up to the user when he runs HANGFG, as the level of impact is passed in as an argument to the tool. HANGFG is also capable of making this decision for the user if the user selects light or medium impact (option 1 or 2) as an argument to the tool. HANGFG is RAC aware and can run in either a RAC or non RAC environment.
Overview
One of the major problems with obtaining the necessary diagnostic information to diagnose database hanging problems is having the necessary diagnostic data collected while the problem is actually occurring. Additionally, the necessary diagnostic data is seldom collected because of the time it takes to react to recognizing there is a problem, trying to determine what kind of data to collect, and knowing how to collect the data. Frequently, the problem has passed or the database has to be shutdown to correct the problem. HANGFG automates the generation and collection of hang diagnostic traces. The user need only run one diagnostic, HANGFG, during the database hang. The commands to issue the generation of diagnostic traces are performed by HANGFG, thus freeing the user from having to know and issue the individual cryptic commands to the database to generate these traces. HANGFG will also look to see how badly a system is degraded before issuing any commands that could degrade the system even further. Finally HANGFG will collect all the trace files that are produced from issuing these commands as well as any other oracle trace file that gets updated from the time the first hang diagnostic is performed. This greatly increases the probability that all the necessary hang related diagnostic traces are collected at one time thereby reducing the amount of pinging between the user and Oracle support for requests for additional diagnostic data requests.
Supported Platforms
-
Solaris
-
Linux
-
HP-UX
-
AIX
- Tru64
Download HANGFG
Current HANGFG Version: 1.3.0 October 25, 2012Click here to download the file .
If a file download dialog box does not appear when clicking on the above link, you may need to clear your web browser's cache and/or restart your web browser. If you are still unable to download the file, you may request that we email you a copy: Carl.Davis@oracle.com
Installing HANGFG
Download of HANGFG is available through MetaLink and can be downloaded as a tar file. The user can then copy the tar file to the directory where HANGFG is to be installed and issues the following command:
|
This will create a directory called hangfg. The hangfg files are then untar'd into this new directory. Next, make
sure to change the file permissions on these files to execute by using the chmod command.
Uninstalling HANGFG
To uninstall HANGFG issue the following command on the hangfg directory:
|
Running HANGFG
To run HANGFG standalone go to the directory hangfg and issue the following command:
|
This script takes 1 argument which controls the number and level of detail of the hang trace files generated.
ARG1 = level of impact (1, 2 or 3).
ARG1 | Description |
1 | Light impact on system. This option collects 2 hanganalyze level 3 traces and then determines whether it can also collect 1 hanganalyze level 4 trace with minimal impact to the system. If so, it collects the hanganalyze level 4 trace. If not, it does not collect an additional trace file. |
2 | Medium impact on system (default value). This option collects 1 hanganalyze level 3 trace and then determines whether it can also collect 2 hanganalyze level 4 traces with minimal impact to the system. If so, it collects the 2 additional hanganalyze level 4 traces. If not, it collects an additional hanganalyze level 3 trace. This option also collects 1 systemstate level 258 trace. |
3 | Heavy impact on system. This option collects 2 hanganalyze level 4 traces and 2 systemstate level 258 traces. |
If you do not enter any argument the script runs with a default value of 2 meaning collect trace files with a medium impact on the system.
|
|
RAC Environment
HANGFG is RAC aware. If the node you are running on is part of a RAC cluster the hanganalyze and systemstate dump commands are issued with the -g option. If the current node where you are running hangfg is hung you will be given a notification and asked to run hangfg from another node in the cluster. HANGFG finds all files on all nodes in the cluster and lists these files along with nodename in the file hangfiles.out. HANGFG bundles all the trace files from all the nodes and puts them into one compressed tar file named hfiles_
Output Files
HANGFG creates hang trace files in the respective udump and bdump directories. In addition the following files are also generated in the directory where you are running hangfg.
- hangfiles.out - This file contains a list of all files generated during the hang. This is the list of files you need to send into support for analysis.
- hangfg.log - This file contains a log of the hangfg program. This file is useful for debugging any issues that may arise along with logging all actions associated with the hangfg program.
-
hfiles_
.tar.Z - This file contains a compressed tarball of all hang traces collected by the hangfg program. It also contains the file hangfiles.out.
Reporting Feedback
If you encounter problems running HANGFG or would like to provide feedback, please send email to Carl.Davis@oracle.com.
Legal Notices and Terms of Use
@keywords
References
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1134076/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 2.4、User’s guide (Coroutines)GUIIDE
- EVASH Ultra EEPROM Development Board User GuidedevGUIIDE
- Oracle 最新PSU (Doc ID 2118136.2)Oracle
- expdp/impdp變慢 (Doc ID 2469587.1)
- Reading and Understanding Systemstate Dumps (Doc ID 423153.1)
- MT6761_MT62_MT65_ MMD User GuideGUIIDE
- MyBatis-maven-User例子-根據id查詢UserMyBatisMaven
- RMAN -- Frequently Asked Question (FAQ) (Doc ID 469777.1)
- Oracle 下載最新psu (Doc ID 2118136.2)Oracle
- PRCT-1011 : Failed to run "oifcfg" (Doc ID 1380183.1)AI
- How to Collect Diagnostics for Database Hanging Issues (Doc ID 452358.1)Database
- [轉帖]Release Schedule of Current Database Releases (Doc ID 742060.1)Database
- 【CURSOR】How to Monitor and tune Open and Cached Cursors (Doc ID 1430255.1)
- Physical Standby Switchover_status Showing Not Allowed. (Doc ID 1392763.1)
- oracle11g: Scheduler Maintenance Tasks or Autotasks (Doc ID 756734.1)OracleAINaN
- 【DBA】Relinking Oracle Home 常見問題 (Doc ID 2048232.1)Oracle
- How To Replicate Data from Oracle to Postgres Using GoldenGate (Doc ID 1544137.1OracleGo
- 11g-Reduce Transportable Tablespace Downtime using XTTS (Doc ID 1389592.1)TTS
- Can GoldenGate Replicate An Oracle Table That Contains Only CLOB Column(s)? (Doc ID 971833.1)GoOracleAI
- 12c DG新特性 - Active Data Guard Far Sync (Doc ID 2179719.1)
- 【GRID】Grid Infrastructure 啟動的五大問題 (Doc ID 1526147.1)ASTStruct
- 【DATAGUARD】Data Guard 12C 新特性:Far Sync Standby (Doc ID 2179719.1)
- ORA-04063: package body SYS.DBMS_REGISTRY_SYS has errors (Doc ID 2165402.1)PackageError
- 【ASM】ORA-27504 ORA-27300 ORA-27303 while starting ASM (Doc ID 2281441.1)ASMWhile
- 【RAC】Oracle 12c以及以上版本的diagsnap是什麼? (Doc ID 2469643.1)Oracle
- Flexbox GuideFlexGUIIDE
- A guide to this in JavaScriptGUIIDEJavaScript
- Meterpreter GuideGUIIDE
- Guide to app architectureGUIIDEAPP
- crontab usage guideGUIIDE
- sqlserver docSQLServer
- Guide to Database as a Service (DBaaS)GUIIDEDatabase
- webpack Performance: The Comprehensive GuideWebORMGUIIDE
- MariaDB ubuntu install guideUbuntuGUIIDE
- The hater’s guide to KubernetesGUIIDE
- 【Java】A Guide to the Java ExecutorServiceJavaGUIIDE
- Merchant‘s Guide to the GalaxyGUIIDE
- The Definitive Guide to CentOS.pdfGUIIDECentOS
- Notes about Vue Style GuideVueGUIIDE