Get the App
SLTechnology News&Howtos  ›  Database  › 

How to download and install the latest version of OPatch

Shulou Source: shulou.com Published: 2022-06-01 13:35:05 10月01日 Update

1. Log in to the mos site to download the latest version of the OPatch patch. Here, take the p6880880_102000_Linux-x86-64.zip patch as an example.

Https://updates.oracle.com/download/6880880.html

2. Upload the patch to the server and move the patch to the database software installation directory.

# mv p6880880_102000_Linux-x86-64.zip $ORACLE_HOME

3. Switch users to oracle users and go to $ORACLE_HOME to install the patch.

[oracle@server ~] $cd / home/oracle/orahome/

[oracle@server orahome] $mv OPatch OPatch.old

[oracle@server orahome] $unzip p6880880_102000_Linux-x86-64.zip

Archive: p6880880_102000_Linux-x86-64.zip

Creating: OPatch/

Creating: OPatch/ocm/

Extracting: OPatch/ocm/ocm.zip

Creating: OPatch/ocm/lib/

Inflating: OPatch/ocm/lib/osdt_jce.jar

Inflating: OPatch/ocm/lib/osdt_core3.jar

Inflating: OPatch/ocm/lib/emocmclnt-14.jar

Inflating: OPatch/ocm/lib/emocmutl.jar

Creating: OPatch/ocm/bin/

Inflating: OPatch/ocm/bin/emocmrsp

Inflating: OPatch/ocm/ocm_platforms.txt

Creating: OPatch/crs/

Creating: OPatch/crs/log/

Inflating: OPatch/crs/patch212.pl

Inflating: OPatch/crs/crsdelete.pm

Inflating: OPatch/crs/crspatch.pm

Inflating: OPatch/crs/s_crsconfig_defs

Inflating: OPatch/crs/crsconfig_lib.pm

Inflating: OPatch/crs/oracss.pm

Inflating: OPatch/crs/auto_patch.pl

Inflating: OPatch/crs/s_crsconfig_lib.pm

Inflating: OPatch/opatch

Creating: OPatch/opatchprereqs/

Creating: OPatch/opatchprereqs/opatch/

Inflating: OPatch/opatchprereqs/opatch/runtime_prereq.xml

Inflating: OPatch/opatchprereqs/opatch/opatch_prereq.xml

Inflating: OPatch/opatchprereqs/opatch/rulemap.xml

Inflating: OPatch/opatchprereqs/prerequisite.properties

Creating: OPatch/opatchprereqs/oui/

Inflating: OPatch/opatchprereqs/oui/knowledgesrc.xml

Inflating: OPatch/opatch.ini

Inflating: OPatch/emdpatch.pl

Inflating: OPatch/opatch.pl

Creating: OPatch/jlib/

Inflating: OPatch/jlib/opatchprereq.jar

Inflating: OPatch/jlib/opatchactions.jar

Inflating: OPatch/jlib/opatchutil.jar

Inflating: OPatch/jlib/opatchfmw.jar

Inflating: OPatch/jlib/opatchext.jar

Inflating: OPatch/jlib/opatch.jar

Inflating: OPatch/opatch.bat

Creating: OPatch/docs/

Inflating: OPatch/docs/Prereq_Users_Guide.txt

Inflating: OPatch/docs/FAQ

Inflating: OPatch/docs/Users_Guide.txt

Inflating: OPatch/README.txt

[oracle@server orahome] $cd OPatch

[oracle@server OPatch] $. / opatch version

Invoking OPatch 10.2.0.5.1

OPatch Version: 10.2.0.5.1

OPatch succeeded.

[oracle@server OPatch] $

4. You can use the absolute path to start OPatch:

[oracle@server OPatch] $$ORACLE_HOME/OPatch/opatch version

Invoking OPatch 10.2.0.5.1

OPatch Version: 10.2.0.5.1

OPatch succeeded.

[oracle@server OPatch] $

Or you can add the directory where OPatch is located to the environment variable PATH, and then you can run the OPatch command (opatch) in any directory without specifying an absolute path

For Korn / Bourne shell:

$export PATH=$PATH:$ORACLE_HOME/OPatch

Tags: Patch directory user path version variable command location data database server environment site software switch service login mobile run Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology MariaDB Shulou Information Docker vpn