DBA Hub

📋Steps in this guide1/4

How to install OPatch in ORACLE RAC database DBACLASS

In this article I will explain how to install/upgrade OPatch utility in grid_home and oracle_home in a RAC infrastructure. Opatch utility is used while applying patches to the database. Every readme file (that comes with patch), mention the recommended opatch version. If your existing opatch version is lower than the recommended version then, Opatch need […]

oracle clusteringintermediate
by OracleDba
14 views
1

1. Download latest opatch utility

LINK –  > Oracle OPatch link – 6880880 select required release and platform for download.
Step 1
2

2. Copy the file to both the database nodes:

cd /dumparea ls -ltr p6880880_122001_Solaris.zip
3

3. Upgrade OPatch on GRID_HOME( as root user)

GRID_HOME OPatch has been upgraded. Lets proceed with DB_HOME

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
----Backup existing OPatch ( as root user)

root#cd $GRID_HOME
root#pwd
/gridapp/app/oracle/product/grid12c

root#cp OPatch OPatch_old

--- copy the latest opatch file to GRID_HOME and unzip 
root#cp /dumparea/p6880880_122001_Solaris.zip /gridapp/app/oracle/product/grid12c/

root# cd /gridapp/app/oracle/product/grid12c/
root# unzip p6880880_122001_Solaris.zip

-- provide permission to grid owner( this is very important)

root# chown -R oracle:oinstall OPatch
root#chmod -R 755 OPatch

-- Check the OPatch version
root#./opatch version
OPatch Version: 12.2.0.1.21
4

4. Upgrade OPatch in DB_HOME

Now DB_HOME opatch version has been upgrade on the node 1: > THESE SAME OPATCH UPGRADE NEED TO BE FOLLOWED ON OTHER NODES IN THE GRID ALSO. THESE SAME OPATCH UPGRADE NEED TO BE FOLLOWED ON OTHER NODES IN THE GRID ALSO.

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
oracle$cd $ORACLE_HOME

oracle$pwd
/oracle/app/oracle/product/12.1.0.2/dbhome_1

oracle$cp OPatch OPatch_old

--- copy the latest opatch file to DB_HOME and unzip
oracle$cp /dumparea/p6880880_122001_Solaris.zip /oracle/app/oracle/product/12.1.0.2/dbhome_1

oracle$ cd /oracle/app/oracle/product/12.1.0.2/dbhome_1
oracle$ unzip p6880880_122001_Solaris.zip

-- Check the OPatch version
oracle$./opatch version
OPatch Version: 12.2.0.1.21

Comments (0)

Please to add comments

No comments yet. Be the first to comment!