Oracle Opatch使用方法


Oracle Opatch 使用方法 冯伟 2007-6-21 (ITPUB 帐号:fwei_fengwei) (EMAIL:fwei_fengwei@163.COM) „ 操作系统平台:AIX 5L „ 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.
还剩6页未读

继续阅读

下载pdf到电脑,查找使用更方便

pdf的实际排版效果,会与网站的显示效果略有不同!!

需要 5 金币 [ 分享pdf获得金币 ] 0 人已下载

下载pdf

pdf贡献者

waff_wahh

贡献于2012-07-27

下载需要 5 金币 [金币充值 ]
亲,您也可以通过 分享原创pdf 来获得金币奖励!
下载pdf