Simple Steps to upgrade non CDB 11g to 12C CDB
This blog explains the basic steps which we need to follow to upgrade 11g database to 12c database and preferably moving to PDB databases
I have tried to read oracle MOS standard document
(How to Download and Run Oracle's Database Pre-Upgrade Utility (Doc ID 884522.1))
(How to Download and Run Oracle's Database Pre-Upgrade Utility (Doc ID 884522.1))
which actually directs to different links explaining upgrade steps. But my intention is just to keep it simple to everyone when they were about to jumpstart the upgrade activity.
We can follow couple of methods to perform the upgrade activity
- Manual Method
- DBUA tool
I prefer to go with manual method because automated method will always makes our life difficult when we struck during the upgrade process. But this have been fixed with 18c and 19c upgrades.
Supported Upgrade Paths:
=================
Destination Source
=========== ======
12c Release 1 (12.1.0.2) 10.2.0.5+, 11.1.0.7+, 11.2.0.2+ or 12.1.0.1
12c Release 2 (12.2.0.1) 11.2.0.3+ or 12.1.0.1 or 12.1.0.2
Step1 -> Download and install the oracle 12c software into new home
Step 2-> Before you start upgrade process , you need to perform the prechecks
- login to the 11g database and check for invalid objects , if yes please compile the objects
- check for duplicate objects owned by system and sys users
- run the utlrp.sql script to check the invalid objects
- Run the preupgrade.sql script , this you will get it from the new 12c oracle home
- This script will generate 3 scripts (preupgrade.log/preupgrade_fixups..sql and postupgrade_fixups.sql)
- gather optimizer statistics
- purge the recyclebin
- Make sure all the data files in no backup mode
- if using dataguard make sure standby is in sync with primary
- disable dbms scheduler jobs
- remove EM repository
Step 3 -> Now start the upgrade process
- Stop the listener
- copy the parameter file and password file to the new 12c home/dbs and also update the oratab entries
- shutdown the database
- start the database in the startup upgrade mode
- Now you can use catctl.pl script to run the catupgrade.sql script with multiple parallel process
- $ORACLE_HOME/perl/bin/perl catctl.pl -n 6 catupgrd.sql
Step 4 -> Post upgrade
- Run the post upgrade script (utlu121s.sql)
- run the catupst.sql script if the installation returns with no errors
Do not run this in UPGRADE mode. Run catuppst.sql, located in the ORACLE_HOME/rdbms/admin directory, to perform remaining upgrade actions that do not require the database to be in UPGRADE mode. If an Oracle bundle patch or patch set update (PSU or BP) is installed in the Oracle home, then this script automatically applies that patch set update to the database.
Caution: If you perform a manual upgrade, and you do not run catuppst.sql,, then your database suffers performance degradation over time.
3. run the postupgrade_script.sql
This completes the upgradation
Comments
Post a Comment