Install 12c Binaries
Install 12c Software, apply patches but do not create a Database
Please be aware that after your install the new 12c Software, a new Directory will be added to your PATH variable: C:\oracle\product\12.2.0\dbhome_1\bin
Source Server Preparation Upgrade Checklist
Use this checklist to prepare your server with the earlier Oracle Database release before you start the upgrade.
|
TAKS |
DESCRIPTION |
|
Clean up the database |
|
|
Check materialized views |
|
|
Check Time Zone setting |
|
|
Removing EM Repository (if exists) |
|
|
Check accounts using ONLY 10g password version |
|
|
Ensure that you do not have the deprecated parameter SEC_CASE_SENSITIVE_LOGON set to FALSE |
|
|
Gather dictionary statistics to decrease Oracle Database downtime |
EXEC DBMS_STATS.GATHER_DICTIONARY_STATS; |
|
Back up the database (recommended) |
|
Perform Upgrade
Now you can invoke DBUA from Command Prompt

DBUA (Step 1 of 9)
We need to choose the database SID for upgrade to 12.2.0.1. In this case, it is orcl database.

DBUA (step 2of 9)
In below screen, DBUA will perform various pre-checks. It will execute the preupgrade script (preupgrade.jar) and return warnings / errors.

DBUA (Step 3 of 9)
Once the pre-upgrade warnings has been adressed, next screen will show various options like Enable Parallel Upgrade, Recompile invalid objects in post upgrade phase, upgrading timezone, gather statistics before the upgrade, setting the user tablespaces to read only during upgrade. also, you can provide any SQL scripts before or after the upgrade. I unchecked the "Gather Statistics Before Upgrade" Option

DBUA (Step 4 of 9)
After selecting option, The next screen will show various Recovery options where it will create Guaranteed Restore Point, or Take an RMAN backup or the backup is already taken outside DBUA then "I have my own backup and restore stratege " option can be chosen.

DBUA (Step 5 of 9)
in this screen, we can create a new listener or upgrade the existing listener to 12.2.0.1. I used the existing listener.

DBUA (Step 6 of 9)
This screen is for configure EM express or register the upgraded database with EM Cloud control. Uncheck all the options.

DBUA (step 7 of 9)
This is the summary screen before the actual upgrade starts. Click on Finish to proceed with the upgrade.

DBUA (Step 8 of 9)
The DBUA will start the upgrade process of orcl database. It will perform pre-upgrade, database upgrade and post upgrade steps. It takes about 1 hour.
DBUA will perform the upgrade of database components like Oracle server, XML etc.

DBUA Step 9 of 9)
The final screen will show the result of upgrade.


It will show the log file location and the time taken by various steps of upgrade.

Target Server Post-Upgrade Checklist
Complete these checks on the upgraded Oracle Database environment.
|
TASK |
DESCRIPTION |
|
Query for any INVALID Objects |
SELECT substr(owner,1,12) owner, substr(object_name,1,12) object, substr(object_type,1,30) object, status from dba_objects WHERE status <> 'VALID'; |
|
Run postinstallation SQL scripts as SYS |
|
|
Review upgrade logs and trace files |
|
|
Verify upgrade status for CATALOG and CATPROC components |
|
|
Run Oracle Database 12.2 Post-Upgrade Status Tool (utlu122s.sql) |
|
|
Update time zone settings |
|
|
Create Oracle Database system files |
|