0% found this document useful (0 votes)
430 views41 pages

Oracle Upgrade From 11.2.0.1 To 11.2.0.4

This document outlines the steps to upgrade Oracle software from version 11.2.0.1 to 11.2.0.4. It discusses upgrading the GRID home, RDBMS home, and databases. Key steps include downloading the 11.2.0.4 software, creating new homes, running pre-upgrade checks, applying required patches, and using DBUA to upgrade the databases.

Uploaded by

Pradeep S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
430 views41 pages

Oracle Upgrade From 11.2.0.1 To 11.2.0.4

This document outlines the steps to upgrade Oracle software from version 11.2.0.1 to 11.2.0.4. It discusses upgrading the GRID home, RDBMS home, and databases. Key steps include downloading the 11.2.0.4 software, creating new homes, running pre-upgrade checks, applying required patches, and using DBUA to upgrade the databases.

Uploaded by

Pradeep S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 41

Oracle Upgrade from 11.2.0.1 to 11.2.0.

4 – GRID Home, RDBMS


Home and DB
This article about Oracle Upgrade from 11.2.0.1 to 11.2.0.4. I have divided this
topic into three parts.

1. GRID Home Up gradation

2. RDBMS Home up gradation

3. Database up gradation

11.2.0.4 software download:


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

      we can download software


from https://support.oracle.com

      Patchset Number :13390677


      Platform :Linux x86-64
Here download first 3 zip files.

1. GRID Home up gradation:-


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

* Create new home.


mkdir  /u01/oragrid/11.2.0/grid2
chown -R oragrid:oinstall /u01/oragrid/11.2.0/grid2
chmod -R 775 /u01/oragrid/11.2.0/grid2

* Create a directory to place the 11.2.0.4 zip files.


mkdir -p /backup/software/11.2.0.4

* copy the zip files and once unzipped change the


permission.
cp p13390677_112040_Linux-x86-64_3of7.zip /backup/software/11.2.0
.4

chown -R oragrid:oinstall grid

chmod -R 775 grid

* run the script “runcluvfy.sh” to verify the two nodes


are ready for upgrade
you can find the script runcluvfy.sh in the grid
directory.
./runcluvfy.sh stage -pre crsinst -upgrade -n
node1,node2 -rolling -src_crshome
/u01/oragrid/11.2.0/grid1 -dest_crshome
/u01/oragrid/11.2.0/grid2 -dest_version 11.2.0.4.0 -verbose >

/home/oragrid/pre_crsinst_cluvfy.lst

Checking for Oracle patch "9413827 or 9706490" in home


"/u01/oragrid/11.2.0/grid1".

Apply the patch 9706490:-


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

 mkdir /backup/software/patch

 cp p9706490_112010_Linux-x86-64.zip
/backup/software/patch

 Once unziped,change permission.

 chown -R oragrid:oinstall 9706490
 chmod -R 775 9706490

Actual steps of patching.


------------------------

* Stop the CRS managed resources running from DB homes.


  
[oradb@node1 ~]$ srvctl stop home -o /u01/oradb/db1 -n
node1 -s output.out (RDBMS user).

Prior to applying this part of the fix, you must


invoke this script
as root to unlock protected files.

(This stop Cluster ware and sets permissions on root


owner files so that they can be Modified while applying
patch as ORACLE user)
  
[root@node1 grid1]#
/u01/oragrid/11.2.0/grid1/crs/install/rootcrs.pl
-unlock (Root user).
* Apply the patch to GRID home.
  
[oragrid@node1 ~]$
/u01/oragrid/11.2.0/grid1/OPatch/opatch napply -oh
/u01/oragrid/11.2.0/grid1 -local
/backup/software/patch/9706490 (GRID user)
  
* Save the RDBMS home configuration settings
  
[oradb@node1 custom]$
/backup/software/patch/9706490/custom/scripts/prepatch.
sh -dbhome /u01/oradb/db1 (RDBMS User).

 * Apply patch to RDBMS home.


  
[oradb@node1 9706490]$ /u01/oradb/db1/OPatch/opatch
napply -oh /u01/oradb/db1 -local
/backup/software/patch/9706490/custom/server/9706490
(RDBMS user).

* After opatch completes, some configuration settings


need to be applied
  to the patched files. As the RDBMS software owner
execute the following;

/backup/software/patch/9706490/custom/scripts/postpatch
.sh -dbhome /u01/oradb/db1

Run the post script.


-------------------

As the root user execute:


/u01/oragrid/11.2.0/grid1/rdbms/install/rootadd_rdbms.sh (Root
user)

*  Now security settings need to be restored on the CRS


Home. This script
will also restart the CRS daemons. Invoke this script
as root.

/u01/oragrid/11.2.0/grid1/crs/install/rootcrs.pl -patch
(Root user).

* Start the CRS managed resources that were earlier


running from DB homes.

srvctl start home -o /u01/oradb/db1 -n node1 -s output.out (RDBMS


user).

Remove old rpm and install new rpm (On both nodes)
====================================================

[root@node1 rpm]# rpm -e   cvuqdisk-1.0.7-1.rpm


[root@node1 rpm]# rpm -ivh cvuqdisk-1.0.9-1.rpm
Preparing...                ########################################### [100%]

   1:cvuqdisk               ########################################### [100%]

Increase shmmax value
========================

node1]# cat > /etc/sysctl.conf

# added for Oracle 11gR2

kernel.shmall = 2097152
kernel.shmmax = 1610612736
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144

net.core.wmem_max = 1048576

node1]# /sbin/sysctl -p

Restart the servers after change the value.

now again run /runcluvfy.sh tool and check the log.

./runcluvfy.sh stage -pre crsinst -upgrade -n node1,node2


-rolling -src_crshome
/u01/oragrid/11.2.0/grid1 -dest_crshome /u01/oragrid/11.2.0/grid2
-dest_version 11.2.0.4.0 -verbose >
/home/oragrid/pre_crsinst_cluvfy1.lst

node1]# cat /home/oragrid/pre_crsinst_cluvfy1.lst

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

Checking Oracle Cluster Voting Disk configuration...

ASM Running check passed. ASM is running on all specified nodes

Oracle Cluster Voting Disk configuration check passed

Clusterware version consistency passed

Pre-check for cluster services setup was successful.

Now start the run Installer which is there in grid location.

 [oragrid@node1 grid]$./runInstaller
Check the status of clusterware

2.RDBMS Home up gradation.:-


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

* Create new home.

mkdir  /u01/oradb/db2
chown -R oradb:oinstall /u01/oradb/db2
chmod -R 775 /u01/oradb/db2

* Create a directory to place the 11.2.0.4 zip files.

mkdir -p /backup/software/11.2.0.4

* copy the zip files and once unzipped change the permission.

cp p13390677_112040_Linux-x86-64_1of7.zip p13390677_112040_Linux-x86-64_2of7.zip
/backup/software/11.2.0.4

chown -R oradb:oinstall database

chmod -R 775 database


3.Database upgradation. :-
======================

 Start DBUA utility from new RDBMS home.


Check the status of database.

You might also like