Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1354171
  • 博文数量: 239
  • 博客积分: 5909
  • 博客等级: 大校
  • 技术积分: 2715
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-24 20:19
文章分类

全部博文(239)

文章存档

2014年(4)

2013年(22)

2012年(140)

2011年(14)

2010年(59)

我的朋友

分类: Oracle

2011-11-07 16:14:33

如果系统出现了异常需要取得支持人员协助处理时,以往通常需要手工准备很多的报告文件,然后手工打包后发给Oracle support。从开始这个过程将大大的简化,可以使用命令打包中出现的异常事件,然后将打包后的文件发送到Oracle Support,由Oracle的支持人员做进一步的分析和处理。

1.IPS名词解释
是Incident Packaging Service的缩写,事件打包服务是FDI(Fault Diagnosability Infrastructure)故障诊断基础架构中的一项。可以对同一次错误或故障相关的数据进行打包,如traces,dumps,health check reports等。


使用Oracle在11g版本中提供的ADRCI工具可以非常便利的提供,在之前的版本中如果要完成这个工具基本上是通过手工的方式来完成的。

下面给大家演示下具体操作过程:

1.使用“ips create package”创建一个新的逻辑包
1)进入到adrci命令行界面


ADRCI: Release 11.2.0.1.0 - Production on 星期二 2月 1 11:01:28 2011

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

ADR base = "/u01/oracle"

2)尝试创建逻辑包
adrci> ips create package;
DIA-48448: This command does not support multiple ADR homes

3)处理报错
错误提示创建逻辑包命令不支持多个ADR homes,修改之。
(1)查看当前有的homes情况
adrci> show homes
ADR Homes:

adrci> show homes
ADR Homes:
diag/clients/user_oracle/host_2467386799_76
diag/tnslsnr/biserver/orcl
diag/tnslsnr/biserver/listener
diag/rdbms/orcl/orcl

(2)这里我们选择diag/rdbms/orcl/orcl

adrci> set homepath diag/rdbms/orcl/orcl

3)确认只有一个home
adrci> show homes
ADR Homes:
diag/rdbms/orcl/orcl

4)再次尝试创建逻辑包,成功。
adrci> ips create package;
Created package 1 without any contents, correlation level typical

2.将诊断数据添加到刚刚创建的逻辑包中
系统中出现的53475 事件添加到逻辑包1中,在系统中可以使用show incident命令获得incident号。
adrci> ips add incident 53475 package 1;
Added incident 53475 to package 1

3.生成物理包
adrci> ips generate package 1 in /export/home/oracle

Generated package 1 in file /export/home/oracle/IPSPKG_20110201110631_COM_1.zip, mode complete

4.简单查看一下解压后的文件目录。可见Oracle在压缩包中自动采集了很多相关信息。

-bash-3.00$ unzip  IPSPKG_20110201110631_COM_1.zip
Archive:  IPSPKG_20110201110631_COM_1.zip
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/IPS_CONFIGURATION.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/IPS_PACKAGE.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/IPS_PACKAGE_INCIDENT.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/IPS_PACKAGE_FILE.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/IPS_PACKAGE_HISTORY.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/IPS_FILE_METADATA.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/IPS_FILE_COPY_LOG.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/DDE_USER_ACTION_DEF.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/DDE_USER_ACTION_PARAMETER_DEF.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/DDE_USER_ACTION.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/DDE_USER_ACTION_PARAMETER.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/DDE_USER_INCIDENT_TYPE.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/DDE_USER_INCIDENT_ACTION_MAP.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/INCIDENT.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/INCCKEY.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/INCIDENT_FILE.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/PROBLEM.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/HM_RUN.dmp 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/export/EM_USER_ACTIVITY.dmp 
  inflating: diag/rdbms/orcl/orcl/incident/incdir_50274/orcl_ora_908_i50274.trc 
  inflating: diag/rdbms/orcl/orcl/incident/incdir_50274/orcl_ora_908_i50274.trm 
  inflating: diag/rdbms/orcl/orcl/incident/incdir_56676/orcl_ora_1216_i56676.trm 
  inflating: diag/rdbms/orcl/orcl/incident/incdir_56676/orcl_ora_1216_i56676.trc 
  inflating: diag/rdbms/orcl/orcl/incident/incdir_59877/orcl_ora_1755_i59877.trc 
  inflating: diag/rdbms/orcl/orcl/incident/incdir_59877/orcl_ora_1755_i59877.trm 
  inflating: diag/rdbms/orcl/orcl/incident/incdir_63078/orcl_ora_1916_i63078.trm 
  inflating: diag/rdbms/orcl/orcl/incident/incdir_63078/orcl_ora_1916_i63078.trc 
  inflating: diag/rdbms/orcl/orcl/incident/incdir_66279/orcl_ora_892_i66279.trc 
  inflating: diag/rdbms/orcl/orcl/incident/incdir_66279/orcl_ora_892_i66279.trm 
  inflating: diag/rdbms/orcl/orcl/incident/incdir_53475/orcl_ora_1060_i53475.trc 
  inflating: diag/rdbms/orcl/orcl/incident/incdir_53475/orcl_ora_1060_i53475.trm 
  inflating: diag/rdbms/orcl/orcl/alert/log_2.xml 
  inflating: diag/rdbms/orcl/orcl/alert/log.xml 
  inflating: diag/rdbms/orcl/orcl/alert/log_3.xml 
  inflating: diag/rdbms/orcl/orcl/alert/log_1.xml 
  inflating: diag/rdbms/orcl/orcl/trace/alert_orcl.log 
  inflating: diag/rdbms/orcl/orcl/hm/HMREPORT_HM_RUN_61.hm 
  inflating: diag/rdbms/orcl/orcl/hm/HMREPORT_HM_RUN_3021.hm 
  inflating: diag/rdbms/orcl/orcl/hm/HMREPORT_HM_RUN_3841.hm 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/config.xml 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/crs/crsdiag.log 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/metadata.xml 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/manifest_1_1.xml 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/manifest_1_1.html 
  inflating: diag/rdbms/orcl/orcl/incpkg/pkg_1/seq_1/manifest_1_1.txt 
  inflating: metadata.xml 

5.小结
使用ADRCI (ADR Command Interface)完成整个故障打包的过程是很便利的。这既方便了自己也方便了Oracle的support人员。

转自:http://space.itpub.net/8183550/viewspace-686570

阅读(3185) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~