如何下载并安装最新版本的 OPatch (Doc ID 1674440.1)

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

注意:downloading/uncompressing/unzipping opatch zip 文件时禁用防病毒软件,以便防病毒软件在downloading or uncompressing or unzipping opatch zip 文件时不会重命名/删除 opatch 文件。

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


上一篇: