Upgrade Oracle 19c DB to 21c using Auto Upgrade utility inprogress
Upgrade Oracle 11g to 21c using AutoUpgrade utility:
How do I upgrade Oracle database to 21c? install the 21c oracle binaries into the server .
- Oracle Virtual Bix
- Oracle Linux 7
- Oracle Database 19c currently running
- Upgrading 19c database to 21c directly
The Oracle Database Auto Upgrade utility is a new command-line tool that allows you to upgrade your databases in an unattended way. The idea of the tool is to run the prechecks against multiple databases, fix 99% of the potential issues, set a restore point in case something goes wrong – and then upgrade your databases. And of course, do the post-upgrade, recompilation, and time zone adjustment.
Benefits of Auto Upgrade Utility
- Enables customers to upgrade one or many Oracle databases at the command-line with a single command and a single configuration file.
- Will run the pre-upgrade tasks, perform automated fixups where needed, execute the database upgrade, and finish by taking care of post-upgrade tasks.
- Includes automatic retry and fallback, the possibility to schedule upgrades for future points in time, and the ability to set, change or remove initialization parameters as desired.
- Saves time and money by upgrading hundreds of databases with one command and replacing bespoke high maintenance upgrade solutions.
Auto Upgrade Workflow
- The AutoUpgrade utility is a Java 8 release JAR file which is available by default in Oracle Database homes from release 12.1.0.2 and latest.
- The path to the Java version in the Oracle home is $ORACLE_HOME/JDK/bin/java -version where the $ORACLE_HOME is the old database home that you are going to upgrade.
Four AutoUpgrade processing modes characterize the actions that AutoUpgrade performs as it runs. For each mode, AutoUpgrade steps are performed in sequence.
- Analyze Mode: Setup–>Prechecks.
- Fixups Mode: Setup, Prechecks, and Prefixups.
- Deploy Mode: Setup, Pre upgrade, Prechecks, guaranteed to restore point (GRP), Prefixups, Drain, DB Upgrade, Post checks, and Post upgrade. You can run your own scripts before the upgrade or after the upgrade, or both before and after the upgrade.
- Upgrade Mode: Setup, DB Upgrade, Post checks, and Post fixups.
High-level Steps For Auto-Upgrade
- Install Oracle 21.3.0.0 binaries
- Prerequisite for Auto upgrade
- Create the config file
- Analyze the database
- Deploy the upgrade
- Post upgrade task
Download the latest file of autoupgrade.jar
- The autoupgrade.jar file exists by default, In Oracle Database 19c (19.3) and the later target Oracle homes.
- The autoupgrade. jar file is available in the Oracle 19c database software in the $ORACLE_HOME/rdbms/admin directory.
- Before you use AutoUpgrade, Oracle recommends that you download the latest Autoupgrade version available from MOS Note: 2485457.1 – AutoUpgrade Tool.
Replace the autoupgrade.jar with the latest version downloaded.
Java version
Java version should be 8 or later, which is available by default in Oracle Database homes from release 12.1.0.2 and latest.
Java version
Java version should be 8 or later, which is available by default in Oracle Database homes from release 12.1.0.2 and latest.
Advantages of AutoUpgrade Utility:
- Time saving method (completes the upgrade in a short time)
- can upgrade multiple Oracle Database deployments at the same time, using a single configuration file, customized as needed for each database deployment.
- preventing the issues before upgrade.
- It automatically performs the preupgrade and post upgrade steps/checks.
AUTOUPGRADE PROCESSING MODES:
Generally AutoUpgrade processes in four modes, they are ,
- Analyze
It performs a read only pre-upgrade analysis of databases before upgrade and detects any issues which may prevent the successful completion of upgradation.it should be run in the source database like normal operations.
- Fixups
In Fixups mode it checks the same as it have done in the analyze mode, so that it can identify issues that require fixing. In Fixup Mode, the AutoUpgrade utility detects and identifies both fixes that require manual intervention and AutoUpgrade utility can clear the fixduring upgrade.
- Deploy
In deploy mode it confirms that our database has been successfully upgraded and it copies the sqlnet.ora, listener.ora, tnsnames.ora from source to target home.
- Upgrade
An upgrade completes with either deploy or upgrade, after this we can run our post upgrade checks.in this we can run our custom scripts on the upgraded databases in accordance with the configuration file that we have created. After this the upgraded oracle database starts with a new oracle home.
AutoUpgrade utility jobs pass through a series of phases, called stages, during which specific actions are performed.
AutoUpgrade has the following stages,
SETUP
PREUPGRADE
PRECHECKS
GRP
PREFIXUPS
DRAIN
DBUPGRADE
POSTCHECKS
POSTFIXUPS
POSTUPGRADE
All the Analyze logs are created under autoupg_log_dir
Download
The most recent version of Auto Upgrade can be downloaded via this link: version 20240905.
Step 1: Check autoupgrade utility version Here is My environment details :
Step 2: Check JDK version
Step 4: Edit Config file

Comments
Post a Comment