How to Download and Install OPatch

Posted at 2011. 3. 22. 14:59 | Posted in Oracle Solution
반응형
오라클 제품을 사용하면서 긴급한 패치들은 OPatch 라는 것을 사용해서 패치를 적용하더군요...

동영상 : https://support.oracle.com/CSP/main/article?cmd=show&type=VIDEO&id=1194734.1:OPatchTool



1) Please download the latest OPatch version from My Oracle Support (MOS)

a) Click on the "Patches & Updates" tab

b) In the "Patch Name or Number" field type 6880880 // 이 번호로 검색을 하면 플랫폼별 OPatch 종류가 나옵니다.

c) In the "Platform" field select the relevant platform // 플램폼까지 선택을 하면 좀더 검색이 수월합니다. (짱 많이 나옴 -_-)

d) Click the Search button.


e) Select the patch that corresponds to the Oracle release installed:

6880880 Universal Installer: Patch OPatch 9i, 10.1
6880880 Universal Installer: Patch OPatch 10.2
6880880 Universal Installer: Patch OPatch 11.1
6880880 Universal Installer: Patch OPatch 11.2

f) Click the Download button // 적당한 버젼을 찾아서 다운로드 합시다!


The option to download patches from our FTP site (updates.oracle.com) is no longer available, but it is
possible to use the wget utility to download patches. For instructions on how to do this, please review
the response to the question "Will customers be able to download patches without having to use the My
Oracle Support interface?" in Note:841055.1.

NOTE: You will need to use the HTML version of My Oracle Support (supporthtml.oracle.com)
rather than the flash version (support.oracle.com) because of a known problem with copying the
patch URL.

2) Upload or move the ZIP file to ORACLE_HOME and unzip it:
 // ORACLE_HOME=/home/weblogic/Oracle/Oracle_SOA1

Example:
==================================================================

% mv p6880880_101000_SOLARIS64.zip $ORACLE_HOME
% cd $ORACLE_HOME
(If an OPatch directory already exist then move it)                                                                        
% mv Opatch OPatch_100057                                                                                                   
% 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

(This will vary depending on the version installed)

==================================================================

3) Now you can set the OPatch directory in your PATH variable so you can execute the OPatch command from anywhere.

Example:
==================================================================

For Korn / Bourne shell
% export PATH=$PATH:$ORACLE_HOME/OPatch

For C Shell
% setenv PATH $PATH:$ORACLE_HOME/OPatch

반응형
//