文档内容
适用于:
Oracle Database - Enterprise Edition - 版本 9.2.0.1 到 11.2.0.1 [发行版 9.2 到 11.2]
Oracle Universal Installer - 版本 1.0.0.0.50 到 11.2.0.1
本文档所含信息适用于所有平台
***Checked for relevance on 24-Feb-2014***
目标
本文档解释了如何下载并安装最新版本的 OPatch。
解决方案
1) 使用下面的链接从 My Oracle Support(MOS)下载最新版本的 OPatch
补丁 6880880
或者使用下面的链接:
https://updates.oracle.com/download/6880880.html
2) 在”Platform”那一栏选择对应的操作系统平台
3) 点击”Download”按钮下载
4) 把OPatch的压缩包上传到数据库主机并解压:
如:
% mv p6880880_101000_SOLARIS64.zip $ORACLE_HOME
% cd $ORACLE_HOME
(If a former OPatch directory already exist, then rename it)
% mv Opatch OPatch_100057_OLD
% unzip p6880880_101000_SOLARIS64.zip
Archive: p6880880_101000_SOLARIS64.zip
creating: OPatch/
creating: OPatch/docs/
inflating: OPatch/docs/FAQ
inflating: OPatch/docs/README.txt
inflating: OPatch/docs/Users_Guide.txt
inflating: OPatch/docs/bt1.txt
inflating: OPatch/docs/bt2.txt
inflating: OPatch/docs/tmp
inflating: OPatch/emdpatch.pl
creating: OPatch/jlib/
inflating: OPatch/jlib/opatch.jar
inflating: OPatch/opatch
inflating: OPatch/opatch.bat
inflating: OPatch/opatch.pl
creating: OPatch/perl_modules/
inflating: OPatch/perl_modules/Apply.pm
inflating: OPatch/perl_modules/AttachHome.pm
inflating: OPatch/perl_modules/Command.pm
inflating: OPatch/perl_modules/LsInventory.pm
inflating: OPatch/perl_modules/Query.pm
inflating: OPatch/perl_modules/RollBack.pm
inflating: OPatch/perl_modules/Version.pm
inflating: OPatch/perl_modules/XML.pm
inflating: OPatch/perl_modules/opatchIO.pm
inflating: OPatch/README.txt
creating: OPatch/ocm/
extracting: OPatch/ocm/ocm.zip
creating: OPatch/ocm/doc/
inflating: OPatch/ocm/doc/license.txt
creating: OPatch/ocm/lib/
inflating: OPatch/ocm/lib/emocmutl.jar
creating: OPatch/ocm/bin/
inflating: OPatch/ocm/bin/emocmrsp
% cd OPatch
% opatch version
Oracle Interim Patch Installer version 1.0.0.0.58
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.58
5)
可以使用绝对路径来启动 OPatch:
如:
$ORACLE_HOME/OPatch/opatch version
或者可以把 OPatch 所在的目录加到 PATH 这个环境变量中,之后就可以在任何目录运行 OPatch 命令(opatch <args>)而不需要指定绝对路径
如:
For Korn / Bourne shell:
% export PATH=$PATH:$ORACLE_HOME/OPatch
For C Shell:
% setenv PATH $PATH:$ORACLE_HOME/OPatch
参考
NOTE:224346.1 - OPatch - Where Can I Find the Latest Version of OPatch(6880880)? [Video]