修改adrci目录:
adrci> show homes
ADR Homes:
diag/clients/user_oracle/host_2467386799_76
diag/tnslsnr/biserver/orcl
diag/tnslsnr/biserver/listener
diag/rdbms/orcl/orcl
3)这里我们选择diag/rdbms/orcl/orcl
adrci> set homepath diag/rdbms/orcl/orcl
4)确认只有一个home
5)再次尝试创建逻辑包,成功。
adrci> ips create package;
Created package 1 without any contents, correlation level typical
6)将诊断数据添加到刚刚创建的逻辑包中
将系统中出现的53475 事件添加到逻辑包1中,在系统中可以使用show incident命令获得incident号。
adrci> ips add incident 53475 package 1;
Added incident 53475 to package 1
7)生成物理包
adrci> ips generate package 1 in /export/home/oracle
Generated package 1 in file /export/home/oracle/IPSPKG_20110201110631_COM_1.zip, mode complete
8)简单查看一下解压后的文件目录。可见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
.......
.....
5.小结
使用ADRCI (ADR Command Interface)完成整个故障打包的过程是很便利的。这既方便了自己也方便了Oracle的support人员。