OPatch Utlity

OPatch

It is a java based utility used mainly for installing patches and interim patches (bug fixes). Opatch requires that OUI is installed
  
List of Database Patches

One-off patches (e.g. a bug fix)
Critical Patch Update (CPU)
Upgrade patches (bug fix bundle)
Patch Set Update (PSU)
Bundled patches (For Windows and Exadata only)

Upgrade OPatch version

Upgrade your version of opatch search on Oracle Support for patch number 6880880 and click one of the results

Download the latest OPatch
p6880880_112000_Linux-x86-64.zip

Make a backup of the actual OPatch and make sure there is no OPatch folder on $ORACLE_HOME folder

(EX)

cd $ORACLE_HOME

mv OPatch OPatch_old

Unzip the patch into $ORACLE_HOME

unzip p6880880_112000_Linux-x86-64.zip -d $ORACLE_HOME


Apply steps

Step 1:-Backup database

Step 2:-Backup database Home path

(Ex):- tar -cvf patch_bkp /u01/oracle/

STEP 3:-Check OPatch version

(Ex):- opatch version

STEP 4:- Shutdown database and listener 

Step 5:- Download patch

Step 6:- Export path

  $export path = $ORACLE_HOME/bin

Step 7:-Check the patch applay are not

   ./Opatch lsinventory

Step 8:-unzip the patch

Step 9:-Appaly the patch

     Opatch applay

Step 10:-[testora@vtebz1 admin]$ pwd

/u01/oracle/DEV/db/12.1.0/rdbms/admin

[testora@vtebz1 admin]$ ls -l catbundle.sql

-rwxr-xr-x 1 testora dba 2514 Feb 21 08:11 catbundle.sql

[testora@vtebz1 admin]$ sqlplus / as sysdba

SQL> @catbundle.sql pus apply

Step 11:- Delete previus database backup

Step 12:-Tack backup after patch updating database

Comments

Popular posts from this blog

How to troubleshoot long running concurrent request in R12.2

How to run Gather Schema Statistics in R12.2

How to compile forms in R12.2