Oracle 19c - The Different Methods of Upgrade Process - Never Upgrade Your Production Database Directly - Overview!
Step 1: Prepare to Upgrade Oracle Database:
Become familiar with the features of the new release of Oracle Database.
Determine the upgrade path to the new release.
Select an upgrade method.
Select an Oracle home directory for the new release.
Develop a testing plan.
Prepare a backup strategy.
Follow preupgrade recommendations.
Run preupgrade fixup scripts, or carry out manual preupgrade system updates.
Note:
During the upgrade, consider running multiple releases of the database software, so that you can use the existing release as your production environment while you test the new release.
Consider completing a software-only installation to the new Oracle Database release. In a software-only installation, you install the Oracle Database software but do not create a database as part of the installation process.
Step 2: Test the Upgrade Process for Oracle Database:
Perform a test upgrade using a test database. Conduct the test upgrade in an environment created for testing that does not interfere with the production database. Oracle recommends that your test environment is on a server that is, as much as possible, a replica of your production environment. For example: Oracle recommends that the server not only uses the same operating system, but that runs the same patch level, with the same packages, and matches other details of your production system configuration.
Complete these tasks before you upgrade your existing production database:
Prepare the current production database as appropriate to ensure that the upgrade to the new release of Oracle Database is successful.
Schedule the downtime required for backing up and upgrading the production database.
Back up the current production database.
Before you carry out a major change to a system, Oracle recommends that you make sure that you have a fallback strategy implemented.
Oracle recommends that your fallback strategy includes the following preparations:
Test your backup strategy, and ensure that it works.
If you need a backup strategy, then plan for the time required to apply it during your maintenance window.
To perform plan stability checks in preparation for upgrade, carry out SQL plan management. Raise a service request if you need assistance.
Upgrade the production database to the new release of Oracle Database.
After the upgrade, perform a full backup of the production database and perform other post-upgrade tasks.
Step 6: Tune and Adjust the New Production Oracle Database:
Tune the new production database for the new release. Typically, the new production Oracle Database performs to the same standards, or better, than the database before the upgrade.
Determine which features of the new Oracle Database release that you want to use, and update your applications accordingly.
Develop new database administration procedures as needed.
Do not upgrade your production Oracle Database release to the new release until all applications you must use in the upgraded database have been tested and operate properly.
#3 - Run Oracle’s Database Pre-Upgrade Utility:
Run the pre-upgrade script using the below guide from Oracle support:
How to Download and Run Oracle's Database Pre-Upgrade Utility (Doc ID 884522.1)
The script output will provide you with two additional scripts:
preupgrade_fixups.sql (Must be run before the upgrade)
postupgrade_fixups.sql (Must be run after the upgrade)
#4 - Install the Oracle 19c Database Software:
Install the Oracle 19c Database software (You can do this before Step 1 since you must install it in a different Oracle Home location from your Oracle 12c Home.)
#5 - Run the DBUA Utility
Run the DBUA utility to upgrade the database. The utility provides options for gathering stats before the upgrade, taking a database backup, creating a restore point, restoring the database to rollback, and creating custom scripts.
Post a Comment: