ITPub博客

首页 > 应用开发 > IT综合 > Opatch常用命令测试日志(转)

Opatch常用命令测试日志(转)

原创 IT综合 作者:mfm088 时间:2007-06-21 09:04:55 0 删除 编辑
一、操作系统平台:AIX 5L

二、Opatch常用命令测试日志

-----------------------------------------------------------------------------------------
Opatch用户指南中提示的命令

http://www.itpub.net/797271.html
[@more@]Opatch常用命令测试日志

一、操作系统平台:AIX 5L

二、Opatch常用命令测试日志

-----------------------------------------------------------------------------------------
Opatch用户指南中提示的命令
-----------------------------------------------------------------------------------------

$ 'opatch apply ...' is to apply a patch
$ 'opatch rollback ...' is to roll back a patch
$ 'opatch lsinventory' is to show installed patches
$ 'opatch lsinventory -detail' is to show installed products
$ 'opatch lsinventory -all' is to show all products on all Oracle Homes
$ 'opatch version' is to show version of OPatch

-----------------------------------------------------------------------------------------
Opatch需要解压在ORACLE_HOME下
-----------------------------------------------------------------------------------------

oracle@TSLP5096:/home/oracle>cd $ORACLE_HOME
oracle@TSLP5096:/home/oracle/product/9i>cd OP*
oracle@TSLP5096:/home/oracle/product/9i/OPatch>pwd
/home/oracle/product/9i/OPatch
oracle@TSLP5096:/home/oracle/product/9i/OPatch>ls
README.txt emdpatch.pl opatch opatch.pl
docs jlib opatch.bat perl_modules

-----------------------------------------------------------------------------------------
查看Opatch的版本
-----------------------------------------------------------------------------------------

oracle@TSLP5096:/home/oracle>opatch version

Oracle Interim Patch Installer version 1.0.0.0.57
Copyright (c) 2007 Oracle Corporation. All Rights Reserved..

We recommend you refer to the OPatch documentation under
OPatch/docs for usage reference. We also recommend using
the latest OPatch version. For the latest OPatch version
and other support related issues, please refer to document
293369.1 which is viewable from metalink.oracle.com

OPatch Version: 1.0.0.0.57

-----------------------------------------------------------------------------------------
因9206及9208的opatch存在bug,需要修改相关配置文件
-----------------------------------------------------------------------------------------

----------------------------不修改配置的情况下显示错误信息-------------------------------

oracle@TSLP5096:/bak/4523125>opatch apply

Oracle Interim Patch Installer version 1.0.0.0.57
Copyright (c) 2007 Oracle Corporation. All Rights Reserved..

We recommend you refer to the OPatch documentation under
OPatch/docs for usage reference. We also recommend using
the latest OPatch version. For the latest OPatch version
and other support related issues, please refer to document
293369.1 which is viewable from metalink.oracle.com

Oracle Home : /home/oracle/product/9i
Oracle Home Inventory : /home/oracle/product/9i/inventory
Central Inventory : /home/oracle/oraInventory
from : /etc/oraInst.loc
OUI location : /home/oracle/product/9i/oui
OUI shared library : /home/oracle/product/9i/oui/lib/aix/liboraInstaller.so
Java location : /home/oracle/product/9i/jre/1.4.2/bin/java
Log file location : /home/oracle/product/9i/.patch_storage//*.log

Creating log file "/home/oracle/product/9i/.patch_storage/4523125/Apply_4523125_
06-20-2007_16-06-25.log"

Invoking fuser to check for active processes.

Invoking fuser on "/home/oracle/product/9i/bin/oracle"

OPatch detects your platform as 610 while this patch 4523125 supports platforms:
212 (AIX-Based Systems (64-bit) 5L)

This patch is not suitable for this operating system.
Please contact support for the correct patch.

ERROR: OPatch failed during pre-reqs check.

-------------------------------修改配置文件--------------------------------

oracle@TSLP5096:/home/oracle/product/9i/inventory/ContentsXML>pwd
/home/oracle/product/9i/inventory/ContentsXML
oracle@TSLP5096:/home/oracle/product/9i/inventory/ContentsXML>ls
comps.xml oraclehomeproperties.xml
config.xml oraclehomeproperties.xml.fwei
libs.xml
oracle@TSLP5096:/home/oracle/product/9i/inventory/ContentsXML>echo "cat old xml"
oracle@TSLP5096:/home/oracle/product/9i/inventory/ContentsXML>cat old xml
oracle@TSLP5096:/home/oracle/product/9i/inventory/ContentsXML>cat oraclehomeproperties.xml.fwei



610
IBM_AIX


oracle@TSLP5096:/home/oracle/product/9i/inventory/ContentsXML>echo "cat modified xml"
oracle@TSLP5096:/home/oracle/product/9i/inventory/ContentsXML>cat modified xml
oracle@TSLP5096:/home/oracle/product/9i/inventory/ContentsXML>cat oraclehomeproperties.xml



212
IBM_AIX



-----------------------------------------------------------------------------------------
应用Opatch安装临时补丁
-----------------------------------------------------------------------------------------

oracle@TSLP5096:/bak/4523125>ls
README.txt etc files
oracle@TSLP5096:/bak/4523125>opatch apply

Oracle Interim Patch Installer version 1.0.0.0.57
Copyright (c) 2007 Oracle Corporation. All Rights Reserved..

We recommend you refer to the OPatch documentation under
OPatch/docs for usage reference. We also recommend using
the latest OPatch version. For the latest OPatch version
and other support related issues, please refer to document
293369.1 which is viewable from metalink.oracle.com

Oracle Home : /home/oracle/product/9i
Oracle Home Inventory : /home/oracle/product/9i/inventory
Central Inventory : /home/oracle/oraInventory
from : /etc/oraInst.loc
OUI location : /home/oracle/product/9i/oui
OUI shared library : /home/oracle/product/9i/oui/lib/aix/liboraInstaller.so
Java location : /home/oracle/product/9i/jre/1.4.2/bin/java
Log file location : /home/oracle/product/9i/.patch_storage//*.log

Creating log file "/home/oracle/product/9i/.patch_storage/4523125/Apply_4523125_
06-20-2007_15-24-37.log"

Invoking fuser to check for active processes.

Invoking fuser on "/home/oracle/product/9i/bin/oracle"
Backing up comps.xml ...

OPatch detected non-cluster Oracle Home from the inventory and will patch the lo
cal system only.


Please shut down Oracle instances running out of this ORACLE_HOME
(Oracle Home = /home/oracle/product/9i)
Is this system ready for updating?
Please respond Y|N >
y
Applying patch 4523125...

Patching archive files...

Running make for target ioracle.



Inventory is good and does not have any dangling patches.


Updating inventory...

Verifying patch...
Backing up comps.xml ...


OPatch succeeded.

-----------------------------------------------------------------------------------------
应用Opatch安装临时补丁的版本情况
-----------------------------------------------------------------------------------------

oracle@TSLP5096:/bak/4523125>opatch lsinventory

Oracle Interim Patch Installer version 1.0.0.0.57
Copyright (c) 2007 Oracle Corporation. All Rights Reserved..

We recommend you refer to the OPatch documentation under
OPatch/docs for usage reference. We also recommend using
the latest OPatch version. For the latest OPatch version
and other support related issues, please refer to document
293369.1 which is viewable from metalink.oracle.com

Oracle Home : /home/oracle/product/9i
Oracle Home Inventory : /home/oracle/product/9i/inventory
Central Inventory : /home/oracle/oraInventory
from : /etc/oraInst.loc
OUI location : /home/oracle/product/9i/oui
OUI shared library : /home/oracle/product/9i/oui/lib/aix/liboraInstaller.so
Java location : /home/oracle/product/9i/jre/1.4.2/bin/java
Log file location : /home/oracle/product/9i/.patch_storage//*.log

Creating log file "/home/oracle/product/9i/.patch_storage/LsInventory__06-20-200
7_15-26-20.log"

Result:


Installed Patch List:
=====================
1) Patch 4523125 applied on Wed Jun 20 15:25:20 GMT+08:00 2007
[ Base Bug(s): 4523125 ]




OPatch succeeded.

-----------------------------------------------------------------------------------------
应用Opatch卸载临时补丁
-----------------------------------------------------------------------------------------

oracle@TSLP5096:/bak/4523125>opatch rollback -id 4523125

Oracle Interim Patch Installer version 1.0.0.0.57
Copyright (c) 2007 Oracle Corporation. All Rights Reserved..

We recommend you refer to the OPatch documentation under
OPatch/docs for usage reference. We also recommend using
the latest OPatch version. For the latest OPatch version
and other support related issues, please refer to document
293369.1 which is viewable from metalink.oracle.com

Oracle Home : /home/oracle/product/9i
Oracle Home Inventory : /home/oracle/product/9i/inventory
Central Inventory : /home/oracle/oraInventory
from : /etc/oraInst.loc
OUI location : /home/oracle/product/9i/oui
OUI shared library : /home/oracle/product/9i/oui/lib/aix/liboraInstaller.so
Java location : /home/oracle/product/9i/jre/1.4.2/bin/java
Log file location : /home/oracle/product/9i/.patch_storage//*.log

Creating log file "/home/oracle/product/9i/.patch_storage/4523125/RollBack_45231
25_06-20-2007_15-59-46.log"

Invoking fuser to check for active processes.

Invoking fuser on "/home/oracle/product/9i/bin/oracle"
Backing up comps.xml ...

OPatch detected non-cluster Oracle Home from the inventory and will patch the lo
cal system only.

Please shut down Oracle instances running out of this ORACLE_HOME
(Oracle Home = /home/oracle/product/9i)
Is this system ready for updating?
Please respond Y|N >
y
Removing patch 4523125...

Restoring archive files...

Running make for target ioracle.


Updating inventory...
Backing up comps.xml ...


Inventory is good and does not have any dangling patches.


OPatch succeeded.
oracle@TSLP5096:/bak/4523125>opatch lsinventory

Oracle Interim Patch Installer version 1.0.0.0.57
Copyright (c) 2007 Oracle Corporation. All Rights Reserved..

We recommend you refer to the OPatch documentation under
OPatch/docs for usage reference. We also recommend using
the latest OPatch version. For the latest OPatch version
and other support related issues, please refer to document
293369.1 which is viewable from metalink.oracle.com

Oracle Home : /home/oracle/product/9i
Oracle Home Inventory : /home/oracle/product/9i/inventory
Central Inventory : /home/oracle/oraInventory
from : /etc/oraInst.loc
OUI location : /home/oracle/product/9i/oui
OUI shared library : /home/oracle/product/9i/oui/lib/aix/liboraInstaller.so
Java location : /home/oracle/product/9i/jre/1.4.2/bin/java
Log file location : /home/oracle/product/9i/.patch_storage//*.log

Creating log file "/home/oracle/product/9i/.patch_storage/LsInventory__06-20-200
7_16-00-52.log"

Result:


There is no Interim Patch


OPatch succeeded.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/330796/viewspace-920018/,如需转载,请注明出处,否则将追究法律责任。

下一篇: rman test
请登录后发表评论 登录
全部评论

注册时间:2012-01-14

  • 博文量
    98
  • 访问量
    1025236