1. Introduction
Database upgrades are a critical part of the Oracle Database lifecycle, ensuring systems remain secure, supported, and capable of leveraging the latest features and performance improvements. Organizations running Oracle Database environments must periodically upgrade their database versions to maintain compatibility with modern applications, benefit from improved performance optimizations, and take advantage of newly introduced technologies.
Oracle AI Database 26ai represents the next generation of Oracle’s database platform, introducing advanced capabilities such as AI-driven data processing, enhanced SQL functionality, improved automation, and strengthened security features. Upgrading from Oracle Database 19c to Oracle AI Database 26ai enables organizations to modernize their database infrastructure while maintaining full compatibility with existing workloads.
This document provides a step-by-step implementation guide for upgrading an Oracle Database from version 19c to Oracle AI Database 26ai in a Linux environment. The guide focuses on a practical upgrade approach, covering environment preparation, prerequisite checks, installation of the new Oracle software, upgrade execution, and post-upgrade validation.
The goal of this guide is to provide a clear, practical, and execution-focused reference that helps Oracle DBAs and infrastructure engineers perform database upgrades safely and efficiently while following best practices used in enterprise environments.
2. Real Enterprise Upgrade Scenario
In many enterprise environments, databases remain on long-term supported releases such as Oracle Database 19c for stability and compatibility reasons. However, as new Oracle Database versions are released, organizations often plan controlled upgrade projects to benefit from improved performance, enhanced security capabilities, and modern features.
For example, a financial services company running its core applications on Oracle Database 19c may decide to upgrade its infrastructure to Oracle AI Database 26ai in order to take advantage of advanced analytics capabilities, improved resource management, and long-term support.
During such upgrade projects, database administrators must carefully plan and execute the upgrade process. This includes validating system prerequisites, backing up critical data, installing the new Oracle software version, and performing the database upgrade using Oracle's recommended tools.
A properly executed upgrade ensures that business applications continue to function seamlessly while the organization benefits from the latest Oracle database innovations.
This guide simulates a real-world enterprise upgrade scenario in which an existing Oracle Database 19c environment is upgraded to Oracle AI Database 26ai using Oracle upgrade utilities and best practices.
3. Architecture
The upgrade architecture consists of a single-instance Oracle Database environment running on a Linux server, where the existing Oracle Database 19c installation is upgraded to Oracle AI Database 26ai.
The architecture includes the following components:
Source Environment
-
Oracle Database 19c
-
Oracle Linux operating system
-
Database running on filesystem storage
-
Oracle Listener for client connectivity
Target Environment
-
Oracle AI Database 26ai software installed on the same server
-
Database upgraded using Oracle upgrade tools
-
Existing database files reused during upgrade
-
Listener reconfigured to support the upgraded database
The upgrade process involves installing the new Oracle Database software, performing pre-upgrade checks, and executing the upgrade process while preserving the existing database configuration and data.
4. Objectives
The main objectives of this guide are:
-
To demonstrate a safe and structured database upgrade process
-
To provide a hands-on implementation example
-
To explain the pre-upgrade and post-upgrade validation procedures
-
To help DBAs understand upgrade best practices used in enterprise environments
5. Pre-Upgrade Checklist
Before starting the database upgrade, several validation checks must be performed to ensure the environment is ready for the upgrade process.
System Validation
-
Verify operating system compatibility with Oracle Database 26ai
-
Ensure required kernel parameters are configured
-
Confirm sufficient disk space for Oracle 26ai software installation
Database Validation
-
Check the current database version
-
Verify database status and availability
-
Validate tablespace usage and available storage
Backup Preparation
-
Take a full RMAN backup of the database
-
Backup control files and parameter files
-
Verify backup integrity
Pre-Upgrade Checks
-
Run Oracle pre-upgrade scripts
-
Identify deprecated parameters
-
Check for invalid database objects
Listener and Network Check
-
Validate listener configuration
-
Confirm client connectivity
-
Ensure TNS configuration is correct
Performing these checks ensures that the upgrade process proceeds smoothly and reduces the risk of unexpected failures.
Before you begin:
6. Upgrade Execution
Once the environment has been validated and all prerequisite checks have been completed, the database upgrade process can begin.
The upgrade process typically includes the following steps:
Step 1: Capture data from existing Oracle 19c database.
Step 2: Oracle 26ai Database Software Installation
Step 3: Download AutoUpgrade Setup.
Link :-AutoUpgrade Utility
-------- Download the file shown in the picture by clicking the link above --------
Step 4: Prepare AutoUpgrade Utility and create sample config file for upgrade.
Parameter Name: global_log_dir
Description: Directory location where AutoUpgrade stores log files and temporary files during upgrade. Default is ORACLE_BASE.
Parameter Value: /u01/app/oracle/cfgtoollogs/upgrade
Mandatory / Optional: Optional
Parameter Name: sid
Description: SID of the database to be upgraded.
Parameter Value: AUTOUPG
Mandatory / Optional: Mandatory
Parameter Name: source_home
Description: ORACLE_HOME of source version.
Parameter Value: /u01/app/oracle/product/19.0.0/dbhome_1
Mandatory / Optional: Mandatory
Parameter Name: target_home
Description: ORACLE_HOME of target version.
Parameter Value: /u01/app/oracle/product/23.0.0/dbhome_1
Mandatory / Optional: Mandatory
Parameter Name: keystore
Description: Secure directory for TDE wallet/keystore passwords.
Parameter Value: /u01/app/oracle/admin/AUTOUPG/keystore
Mandatory / Optional: Optional
Parameter Name: drop_grp_after_upgrade
Description: Drop the restore point after successful upgrade.
Parameter Value: YES | NO
Mandatory / Optional: Optional
Parameter Name: restoration
Description: Create a guaranteed restore point before upgrade.
Parameter Value: YES | NO
Mandatory / Optional: Optional
Parameter Name: add_after_upgrade_pfile
Description: PFILE whose parameters will be added after upgrade.
Parameter Value: /u01/app/oracle/admin/AUTOUPG/init_add.ora
Mandatory / Optional: Optional
Parameter Name: drop_after_upgrade_pfile
Description: PFILE whose parameters will be removed after upgrade.
Parameter Value: /u01/app/oracle/admin/AUTOUPG/init_remove.ora
Mandatory / Optional: Optional
Parameter Name: before_action
Description: Custom shell script to run before an upgrade activity.
Parameter Value: /u01/app/oracle/admin/AUTOUPG/before_upgrade.sh
Mandatory / Optional: Optional
Parameter Name: after_action
Description: Custom shell script to run after an upgrade activity.
Parameter Value: /u01/app/oracle/admin/AUTOUPG/after_upgrade.sh
Mandatory / Optional: Optional
Parameter Name: drop_win_src_service
Description: Drop source DB service after upgrade (Windows only).
Parameter Value: YES | NO
Mandatory / Optional: Optional
Parameter Name: wincredential
Description: Windows PowerShell credential object for Oracle software owner.
Parameter Value: C:\Users\oracle\cred
Mandatory / Optional: Optional
Parameter Name: log_dir
Description: Location of log files generated for database upgrades.
Parameter Value: /u01/app/oracle/admin/AUTOUPG/upgrade_logs
Mandatory / Optional: Optional
Parameter Name: raise_compatible
Description: Increases COMPATIBLE parameter to target release after upgrade. Downgrade not possible.
Parameter Value: YES | NO
Mandatory / Optional: Optional
Parameter Name: run_dictionary_health
Description: Run Oracle Dictionary Health Checks during pre-upgrade.
Parameter Value: FULL | CRITICAL
Mandatory / Optional: Optional
Parameter Name: timezone_upg
Description: Enable/disable time zone (DST) upgrade.
Parameter Value: YES | NO
Mandatory / Optional: Optional
Step 6: Run AutoUpgrade Fixups
Step 8: Validations
7. Post-Upgrade Tasks
After the upgrade process completes, several post-upgrade tasks must be performed to finalize the upgrade and validate database functionality.
Key post-upgrade activities include:
-
Recompiling invalid database objects
-
Running post-upgrade validation scripts
-
Checking database alert logs
-
Verifying database version and compatibility parameters
-
Testing application connectivity
-
Validating listener services
-
Updating database statistics
These steps ensure the upgraded database environment operates correctly and that applications can connect without issues.
8. Conclusion
Upgrading Oracle databases is a critical activity that ensures systems remain secure, supported, and capable of utilizing the latest technological advancements. The upgrade from Oracle Database 19c to Oracle AI Database 26ai provides organizations with access to improved performance, enhanced automation, and advanced AI-driven database capabilities.
By following a structured upgrade approach that includes proper planning, validation, execution, and post-upgrade verification, database administrators can successfully upgrade their database environments while minimizing risk and downtime.
This guide demonstrates a practical implementation of the Oracle database upgrade process and provides a clear reference for DBAs looking to perform similar upgrade operations in real-world environments.
9. Risks and Mitigation
Potential Risks
Mitigation Strategies
-
Perform a full RMAN backup before starting the upgrade.
-
Test the upgrade process in a staging environment first.
-
Validate application compatibility before production upgrade.
-
Monitor upgrade logs carefully during execution.
-
Run Oracle post-upgrade scripts to fix invalid objects.
10. Future Enhancements
After upgrading to Oracle AI Database 26ai, organizations can further enhance their database environment by implementing additional features and improvements.
Possible future enhancements include:
-
Implementing Oracle Data Guard for disaster recovery
-
Migrating storage to Oracle ASM for improved performance
-
Deploying Oracle RAC for high availability
-
Automating database maintenance tasks
-
Integrating AI-powered analytics features introduced in Oracle 26ai
-
Implementing advanced monitoring and performance tuning strategies
These enhancements help organizations maximize the benefits of the upgraded database platform while ensuring high availability, scalability, and performance.

