一、操作系统平台: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.
-----------------------------------------------------------------------------------------
三、Opatch工具下载
2007-6-21 08:42 上传
点击文件名下载附件
305.39 KB, 下载次数: 773