adrci 问题打包

来源:互联网 发布:淘宝怎么看总销售额 编辑:程序博客网 时间:2024/06/05 16:13
[oracle@db01 ~]$ adrciADRCI: Release 11.2.0.4.0 - Production on Mon Feb 29 10:16:09 2016Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.ADR base = "/u01/PROD/db/11.2.0/admin/PROD_erpdb"adrci> show homeADR Homes: diag/tnslsnr/erpdb01/proddiag/rdbms/prod/PRODdiag/rdbms/prod/PROD1adrci> set homepath diag/rdbms/prod/PROD1adrci> show problemADR Home = /u01/PROD/db/tech_st/11.2.0/diag/rdbms/prod/PROD1:*************************************************************************PROBLEM_ID           PROBLEM_KEY                                                 LAST_INCIDENT        LASTINC_TIME                             -------------------- ----------------------------------------------------------- -------------------- ---------------------------------------- 1                    ORA 7445 [qmxtr2MrkOpn()+739]                               1167897              2014-03-15 21:01:07.948000 +08:00       3                    ORA 7445 [opifch2()+9234]                                   1361151              2015-06-16 06:01:40.771000 +08:00       2                    ORA 3137 [3149]                                             1488185              2016-01-25 17:22:10.304000 +08:00       5                    ORA 7445 [sltskyg()+23]                                     1489281              2016-01-28 16:37:06.498000 +08:00       6                    ORA 7445 [nsopenfree_nsntx()+215]                           1490889              2016-02-25 15:51:59.144000 +08:00       4                    ORA 7445 [nsclose()+272]                                    1486993              2016-02-26 10:54:03.322000 +08:00       6 rows fetchedadrci> show incident -p "problem_key='ORA 7445'"ADR Home = /u01/PROD/db/tech_st/11.2.0/admin/PROD_erpdb/diag/rdbms/prod/PROD1:*************************************************************************0 rows fetchedadrci> show incident -p "problem_key='ORA 7445 [nsclose()+272]'"ADR Home = /u01/PROD/db/tech_st/11.2.0/admin/PROD_erpdb/diag/rdbms/prod/PROD1:*************************************************************************INCIDENT_ID          PROBLEM_KEY                                                 CREATE_TIME                              -------------------- ----------------------------------------------------------- ---------------------------------------- 1488097              ORA 7445 [nsclose()+272]                                    2016-01-25 09:13:07.908000 +08:00       1488073              ORA 7445 [nsclose()+272]                                    2016-01-25 10:45:24.707000 +08:00       1490217              ORA 7445 [nsclose()+272]                                    2016-01-26 15:41:22.480000 +08:00       1488009              ORA 7445 [nsclose()+272]                                    2016-01-28 20:00:33.018000 +08:00       1487169              ORA 7445 [nsclose()+272]                                    2016-02-19 10:11:22.970000 +08:00       1486993              ORA 7445 [nsclose()+272]                                    2016-02-26 10:54:03.322000 +08:00       6 rows fetchedadrci> ips pack incident 1486993 in /tmpGenerated package 1 in file /tmp/ORA7445ns_20160229102129_COM_1.zip, mode completeadrci> 

概述参考:http://blog.csdn.net/eviswang/article/details/50236053

mos参考:

转到底部转到底部

In this Document

Goal Solution References

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.1.0.6 and later
Information in this document applies to any platform.
***Checked for relevance on 10-12-2015*** 

GOAL

Starting with Oracle11g, alert and trace information is generated in a new format and stored in the Automatic Diagnostic Repository (ADR).

Refer to Document 422893.1 to know the ADR in detail.

This article explains how to find and send the alert.log and relevant trace files to Oracle Global Software Support when a critical error occurs in database, using the ADRCI tool.

SOLUTION

Oracle11g provides tools and methods to automatically identify and gather trace files related to a problem (a critical error in the database environment) or an incident (an occurrence of a problem). This facility is known as the Incident Packaging Services (IPS). The Support Workbench (GUI) and ADRCI (command line) utilities are the two interfaces to the Incident Packaging Services. Every occurrence of a critical error (problem) in the database creates an incident.

Steps in identifying and sending files to support.

1. You are notified of a critical error reported in the database environment:


SQL> select * from atab;
select * from atab
*
ERROR at line 1:
ORA-01578: ORACLE data block corrupted (file # 6, block # 11)
ORA-01110: data file 6: '/opt/oracle/oradata/db11g/tt.dbf'


2. Check for the error reported in the instance alert file and in the ADR.

To check for the error reported in the ADR:

With the 11g / 12c environment being set, from the OS command prompt invoke the ADRCI utility:

$ adrci


Let ADRCI know which Oracle environment to investigate:

adrci> show home
--show home will list all the ADR homes. Set the proper database ADR home for use with ADRCI.
adrci> set homepath database_home


Check for the problems reported:

adrci> show problem

ADR Home = /opt/oracle/diag/rdbms/db11g/db11g:
*************************************************************************
PROBLEM_ID   PROBLEM_KEY    LAST_INCIDENT   LASTINC_TIME
------------ -------------- --------------- ---------------------------------
1            ORA 1578       18104           2009-06-01 22:06:19.501207 +10:00
1 rows fetched


You can have multiple problems reported. Create a package for the one which needs to be investigated.

3. Check for the incidents reported for the problem which needs to be packaged

Each occurrence of the problem is called an 'incident'. The instance alert file will show all the incidents reported. Each incident will be associated with a unique incident id in the ADR.

From the ADRCI prompt, execute the SHOW INCIDENT command for the problem to be investigated, by specifying the associated problem key. You can get the problem key from the SHOW PROBLEM command:

adrci> show incident -p "problem_key='ORA 1578'"

ADR Home = /opt/oracle/diag/rdbms/db11g/db11g:
*************************************************************************
INCIDENT_ID     PROBLEM_KEY              CREATE_TIME
--------------- ------------------------ ----------------------------------
18147           ORA 1578                 2009-06-01 22:02:08.805002 +10:00
1 rows fetched


You can see multiple incidents reported for the same problem.

Note the incident number for which you need to create a package.

4. Package the trace files invoking IPS.

Generate the package using the IPS PACK command and store the generated package in a directory of your choice. The example below shows the package for the incident will be created in the /tmp directory.

adrci> ips pack incident 18147 in /tmp
Generated package 9 in file /tmp/ORA1578_20090602113045_COM_1.zip, mode complete


If at this step the ADRCI utility complains that the incident was flood-controlled and that no package can be generated for it, then instead of choosing the most recent incident to be packaged, choose the first incident that occurred after an instance startup.

Examples of IPS PACK include:

ips pack problem 100 in /tmp
--Generates the package for the problem id 100 in /tmp

ips pack incident 6439 in /tmp
--Generates the package for the incident id 6439 in /tmp

ips pack problemkey "ORA 1578"
--Generates the package for the problem with the problem_key 'ORA 1578'

ips pack seconds 8
--Generates the package with the incidents occurred in last 8 seconds.

ips pack time '2007-05-01 10:00:00.00' to '2007-05-01 23:00:00.00'
--Generates the package with the incidents occurred between the times '2007-05-01 10:00:00.00' and '2007-05-01 23:00:00.00'


Upload the ZIP file generated to the Service Request you created on the My Oracle Support website . This file will include all the trace files, instance alert file and other diagnostic information for the critical error. Make sure that the ZIP file is uploaded WITHOUT any post processing (such as TAR).


0 0
原创粉丝点击