Friday, September 25, 2026
  • About Us
  • Contact
DBAInsight
  • Guides
    • 23ai
    • RMAN
    • 26ai
    • Patch Update
    • RMAN
    • MySQL
    • Oracle GoldenGate
  • Cloud Technology
  • Case Studies
  • Troubleshooting
  • Training & Certification
NEWSLETTER
No Result
View All Result
DBAInsight
Home Cloud Technology

How We Upgraded Oracle 19c to 23ai on Exadata Cloud@OCI — A Complete Real-World Guide

October 20, 2025
in Cloud Technology
0
How We Upgraded Oracle 19c to 23ai on Exadata Cloud@OCI — A Complete Real-World Guide
0
SHARES
225
VIEWS

Table of Contents

Toggle
  • Introduction
  • Related posts
  • What Happens When the Cloud Region You Depend On Isn’t Actually Close to You
  • Exadata Cloud@Customer: What Provisioning Actually Looks Like on the Ground
  • Why Upgrade to Oracle Database 23ai?
  • The Real-World Scenario: 19c Exadata → 23ai Exadata Cloud@OCI
  • Step 1: Capture and Benchmark Using SQL Performance Analyzer (SPA)
  • Step 2: Validate Workload Behavior Using Database Replay (DB Replay)
  • Step 3: Ensuring a Safe Fallback Strategy
  • Step 4: Automating Compatibility Checks
  • Step 5: Post-Migration Validation and Performance Review
  • Lessons Learned and Best Practices
  • Conclusion

Introduction

Oracle Database 23ai represents a major milestone in database modernization — introducing advanced AI-driven automation, improved workload intelligence, and deeper hybrid cloud flexibility. For many enterprises, the challenge isn’t just adopting Oracle 23ai’s new features — it’s ensuring that mission-critical databases transition seamlessly without breaking existing SLAs or application dependencies.

This article explores a real-world upgrade from Oracle 19c on Exadata to Oracle Database 23ai on Exadata Cloud@OCI, detailing the methodology, tools, and lessons learned that made the migration both low-risk and performance-stable.

Related posts

cloud region

What Happens When the Cloud Region You Depend On Isn’t Actually Close to You

September 11, 2026
Exadata Cloud@Customer: What Provisioning Actually Looks Like on the Ground

Exadata Cloud@Customer: What Provisioning Actually Looks Like on the Ground

July 20, 2026
A 2D digital illustration showing Oracle Database modernization — on-premises Exadata servers transferring data to Oracle Cloud Infrastructure (OCI) with connecting arrows. The image features the Oracle 23ai logo, database icons, and a cloud background symbolizing migration, automation, and digital transformation.

Why Upgrade to Oracle Database 23ai?

For organizations running on Oracle Database 19c, upgrading to 23ai offers key advantages:

  • AI Vector Search and JSON Relational Duality for smarter analytics.
  • Improved scalability for multitenant architectures.
  • Seamless hybrid deployment across on-prem, OCI, and other clouds.
  • Enhanced automation via Real Application Testing (RAT) and Oracle AutoUpgrade.

But before enjoying these features, teams must overcome the most common challenge — proving that performance remains stable after migration. This is where Oracle’s Real Application Testing suite, specifically SQL Performance Analyzer (SPA) and Database Replay (DB Replay), comes into play.


The Real-World Scenario: 19c Exadata → 23ai Exadata Cloud@OCI

A large financial customer needed to move their high-transaction OLTP system from Exadata 19c on-premises to Oracle Cloud Infrastructure, leveraging Exadata Cloud@OCI for elasticity and simplified management.
Their main goals were to:

  1. Validate that no SQL regressions occurred post-upgrade.
  2. Ensure transaction throughput remained consistent.
  3. Complete the transition with minimal downtime.

Step 1: Capture and Benchmark Using SQL Performance Analyzer (SPA)

Before initiating the migration, the DBA team used SPA to capture and analyze SQL statements running in production.

Process Summary:

  1. Capture SQL Tuning Set (STS) from the source 19c database.
  2. Load STS into SPA for replay on the target 23ai environment.
  3. Compare execution plans and runtime statistics between pre- and post-upgrade executions.

Outcome:
SPA evaluated over 47,800 SQL statements and identified a small subset of regressions (approximately 8,600% negative variance) primarily caused by plan changes due to optimizer statistics.
By applying SQL Plan Baselines and re-gathering statistics, performance was restored before production cutover.

SQL Performance Analyzer (SPA)

This proactive validation ensured no surprises during go-live.


Step 2: Validate Workload Behavior Using Database Replay (DB Replay)

After SQL-level tuning, the next focus was real workload testing. The team used Database Replay, which captures actual production workload and replays it in the target 23ai environment.

DB Replay Process:

  • Capture Phase:
    The workload was captured on the 19c source system for a specific SCN window.
    Oracle’s Automatic Workload Repository (AWR) provided precise capture start and end points.
  • Pre-Processing Phase:
    The captured workload was preprocessed on the target 23ai system to make it replay-ready.
  • Replay Phase:
    Using Workload Replay Clients (WRCs), the workload was executed on the new environment to simulate actual user sessions.
  • Analysis Phase:
    DB Replay compared capture vs replay statistics — including elapsed time, CPU usage, and SQL calls — to measure accuracy and detect anomalies.

Key Metrics:

MetricCaptureReplayVariance
DB Time (min)3029.4-2%
Average Active Sessions47.247.1-0.2%
User Calls2.79M2.78MNegligible

These results validated that the 23ai environment sustained identical workload performance — a critical win for production confidence.


Step 3: Ensuring a Safe Fallback Strategy

Because mission-critical databases can’t afford downtime, fallback and rollback planning were prioritized.
The DBAs implemented a multi-layered fallback strategy:

  • Oracle AutoUpgrade Utility for in-place upgrades with rollback checkpoints.
  • Flashback Database restore points for instant reversion.
  • Oracle Data Guard configured for rapid failback.
  • GoldenGate Reverse Replication (23ai → 19c) for disaster rollback if needed after go-live.

This approach ensured zero data loss and near-instant recovery options — allowing testing teams to confidently validate workloads.


Step 4: Automating Compatibility Checks

Before migration, the team validated all client versions connecting to the database.
A custom query against GV$SESSION_CONNECT_INFO identified unsupported clients such as legacy JDBC 12.1 and TOAD versions.

Example SQL:

SELECT sci.CLIENT_VERSION, sci.CLIENT_DRIVER, module, program, sci.osuser, username, -- machine,
       COUNT(*) AS cnt
FROM gv$SESSION_CONNECT_INFO sci, gv$session ses
WHERE sci.inst_id = ses.inst_id
  AND sci.sid = ses.sid(+)
  AND sci.SERIAL# = ses.SERIAL#(+)
  AND sci.CLIENT_VERSION NOT LIKE '19.%'
  AND sci.CLIENT_VERSION NOT LIKE '21.%'
  AND sci.CLIENT_VERSION NOT LIKE '23.%'
GROUP BY sci.CLIENT_VERSION, sci.CLIENT_DRIVER, module, program,
         sci.osuser, -- machine, -- username,
ORDER BY 1, 2, 3

By addressing these outdated connections early, post-upgrade connectivity issues were completely avoided.


Step 5: Post-Migration Validation and Performance Review

Once the system went live on 23ai, continuous monitoring was performed using Oracle Enterprise Manager (OEM) and AWR reports.

  • Key SQLs were reviewed to confirm consistent response times.
  • DBA_HIST_SQLSTAT and GV$SQLAREA were queried to compare performance variances.
  • Top queries with minor regressions were tuned proactively using SQL Plan Management (SPM).

This disciplined validation confirmed that all workloads met or exceeded performance benchmarks from 19c.


Lessons Learned and Best Practices

  1. Always capture production workloads for testing — synthetic tests don’t represent true system behavior.
  2. Leverage SPA before DB Replay — SQL-level tuning saves significant time.
  3. Enable guaranteed Flashback restore points before starting any test.
  4. Use identical parameter files and statistics between source and target for consistent results.
  5. Plan rollbacks with Data Guard or GoldenGate replication before go-live.

Conclusion

Upgrading to Oracle Database 23ai is more than a version change — it’s a modernization journey toward smarter, self-optimizing database infrastructure.
Through strategic use of SQL Performance Analyzer, Database Replay, and Oracle AutoUpgrade, enterprises can perform upgrades with zero downtime, validated performance, and complete rollback assurance.

The success of this Exadata-to-OCI upgrade demonstrates that, with the right methodology, even the most mission-critical systems can evolve into the AI-driven era confidently and securely.

Explore further: https://dbainsight.com/2025/10/oracle-database-23ai-upgrade-strategies/

Tags: DB ReplayDBA performance validationExadata OCI migrationOracle 19c upgradeOracle 23aiOracle Cloud InfrastructureOracle Database upgrade best practicesOracle RATSQL Performance Analyzer
Previous Post

How to Fix: UtilSession Failed — Prerequisite Check “CheckMinimumOPatchVersion” Failed

Next Post

Installing Oracle Database 26AI on Red Hat Enterprise Linux 9

Next Post
Installing Oracle Database 26AI on Red Hat Enterprise Linux 9

Installing Oracle Database 26AI on Red Hat Enterprise Linux 9

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

POPULAR NEWS

  • Oracle Patch 38632161: Step-by-Step Guide to Upgrade Oracle 19c to Release Update 19.30

    Oracle Patch 38632161: Step-by-Step Guide to Upgrade Oracle 19c to Release Update 19.30

    0 shares
    Share 0 Tweet 0
  • How To Download And Install The Latest OPatch

    0 shares
    Share 0 Tweet 0
  • How to Install Oracle 19c Database on Red Hat Enterprise Linux 9

    0 shares
    Share 0 Tweet 0
  • Oracle Database 19.32 Release Update (RU) Patching Guide – Patch 39472050

    0 shares
    Share 0 Tweet 0
  • Installing Oracle Database 26AI on Red Hat Enterprise Linux 9

    0 shares
    Share 0 Tweet 0
  • About Us
  • Contact

© 2026 DBAInsight - Smarter Databases. Sharper Insights. DBAInsight.

No Result
View All Result
  • Home
  • Cloud & Modern DBs
  • Guides
  • Cloud Technology
  • Case Studies
  • Troubleshooting
  • Training & Certification

© 2026 DBAInsight - Smarter Databases. Sharper Insights. DBAInsight.

Add as a preferred source on Google
Add as preferred source on Google