Oracle Database Upgrade: 11g and 12c to 19c and 23ai, Step by Step
Written by Abdulla SaiyedFounder & CEO, Taj IT Solutions · Published · 13 min read
Quick answer
How do I upgrade an old Oracle database to 19c or 23ai?
Many Oracle databases still run on 11g or 12c, years after Premier Support ended, because they work and nobody wants to touch them. But unsupported Oracle means no security patches, audit findings and painful support calls. This guide explains which version to move to, the supported upgrade paths, the tools Oracle recommends and how to upgrade with little downtime and no surprises.
Reviewed by Abdulla Saiyed, Founder · Last updated
Which Oracle version should you upgrade to?
Quick answer
Should I upgrade Oracle to 19c or 23ai?
Choose Oracle 19c if your applications and third-party software are certified only on 19c or you need the lowest risk; it is the long-term release with support running to the end of this decade. Choose Oracle 23ai when your software supports it and you want the newest long-term release with AI Vector Search, JSON Relational Duality and a longer support runway.
Oracle labels some releases as long-term (11.2.0.4, 12.1.0.2, 19c, 23ai) and others as innovation releases (18c, 21c) with short support windows. Production systems should land on a long-term release.
Oracle 19c is the safe, widely certified target: almost every packaged application, including E-Business Suite and most vendor software, supports it. Oracle Database 23ai is the newer long-term release and the better choice for new projects and systems with a long life ahead, provided your vendors certify it.
Supported upgrade paths
- Direct upgrade to 19c is supported from 11.2.0.4, 12.1.0.2, 12.2.0.1 and 18c.
- Older releases such as 11.2.0.3 or 10g need an intermediate upgrade or a Data Pump export and import into a new 19c database.
- Direct upgrade to 23ai is supported from 19c and 21c, so 11g and 12c databases usually go to 19c first or move with Data Pump.
- Oracle 23ai supports only the multitenant architecture, so a non-CDB database must be converted into a pluggable database (PDB) as part of the upgrade. In 19c a single user PDB per container needs no Multitenant licence.
The tools: AutoUpgrade, Data Pump and transportable tablespaces
Quick answer
What is the best tool to upgrade an Oracle database?
Oracle's recommended tool is AutoUpgrade: one Java utility that runs pre-upgrade checks, fixes common issues, upgrades the database, converts non-CDB to PDB and runs post-upgrade steps, with restore points for rollback. Data Pump or transportable tablespaces are used when moving to new hardware, a new platform or skipping unsupported paths.
AutoUpgrade replaced the older DBUA and manual scripts as Oracle's recommended method. It runs in analyse mode first, producing a report of issues to fix, and then in deploy mode to perform the upgrade. It can upgrade many databases in parallel and convert a non-CDB into a PDB in the same run.
Data Pump export and import builds a fresh database on the new version and copies the data in. It is slower for very large databases but cleans up years of fragmentation and allows changes of platform or character set. Full transportable export/import combines Data Pump with copying data files and is much faster for large databases.
Upgrading with minimal downtime
- Guaranteed restore point: taken before the upgrade so the database can be flashed back if something fails.
- Data Guard rolling upgrade (transient logical standby): upgrades the standby first, then switches over, reducing downtime to the switch-over time.
- Oracle GoldenGate: keeps a new 19c or 23ai database in sync with the old one, so the cut-over takes minutes and the old system remains a fallback.
- Refreshable PDB clones: copy and keep a PDB in sync, then upgrade it at cut-over.
Testing and performance after the upgrade
The optimizer changes between releases, so a handful of SQL statements may choose different plans after the upgrade. Capture a baseline before you start: AWR reports for peak periods and SQL Tuning Sets for the most important statements.
After the upgrade, compare performance with SQL Performance Analyzer or Real Application Testing where licensed, or with AWR comparison reports. Fix regressions with SQL plan baselines rather than resetting the optimizer to the old version, which throws away improvements. Gather dictionary and fixed-object statistics after the upgrade.
Oracle upgrade checklist
- Confirm application and third-party certification for the target release.
- Apply the latest Release Update to the target Oracle home before the upgrade.
- Run AutoUpgrade in analyse mode and fix every reported issue.
- Check deprecated and desupported parameters and features.
- Take a full tested backup and create a guaranteed restore point.
- Rehearse the whole upgrade on a copy of production and time it.
- Capture AWR and SQL baselines before; compare and fix after.
- Update backups, monitoring, scripts, TNS entries and documentation.
Step 1: Assess the current database before choosing a method
Every good Oracle upgrade starts with an inventory, not with the installer. Record the exact version and patch level (for example 11.2.0.4 with a 2020 PSU), the edition (Standard Edition 2 or Enterprise Edition), the options and packs in use, the database size, the character set, whether it is a single instance, RAC or Data Guard configuration, and the operating system it runs on.
Then record what connects to it: application servers, reporting tools, ETL jobs, database links from other databases, scheduled scripts and backup software. Most upgrade surprises come from a forgotten integration rather than from the database itself, for example a reporting server with a twelve-year-old Oracle client, or a database link from another system that is still on 11g.
Finally, capture how the database performs today. Save AWR reports for a normal day and for the busiest period of the month, list the top SQL statements by elapsed time and save them into a SQL Tuning Set. Without this baseline nobody can prove after the upgrade whether the system is faster or slower, and every complaint becomes an argument.
- Version, patch level, edition, options in use (Partitioning, Advanced Compression, Diagnostics and Tuning Packs).
- Size, character set (AL32UTF8 or a legacy single-byte set), block size and number of data files.
- Architecture: single instance, RAC, Data Guard, GoldenGate, Exadata or Oracle Database Appliance.
- Clients and integrations: application servers, drivers, database links, external tables, UTL_FILE directories.
- Performance baseline: AWR for peak periods, top SQL in a SQL Tuning Set.
Step 2: Build the target environment
Install the target Oracle home (19c or 23ai) in a new directory alongside the old one, and apply the latest Release Update before the upgrade rather than after. Patching an empty Oracle home takes minutes; patching after the upgrade means a second outage.
If the upgrade is also a move to new hardware, a new operating system or the cloud, this is the moment to size the new server properly. Many old Oracle servers were sized for the workload of a decade ago. Use the AWR history to size CPU, memory and storage for current peaks plus growth, and remember that Oracle licences are counted per processor core, so more cores than needed is an unnecessary licence cost.
For 23ai, create the container database (CDB) in advance, with the character set and options you need. AutoUpgrade can then plug the upgraded database into it as a pluggable database in the same run.
Step 3: Run AutoUpgrade in analyse mode and fix the findings
AutoUpgrade is driven by a small configuration file that names the source Oracle home, the target Oracle home, the database SID and the options you want, such as a target CDB for non-CDB to PDB conversion. Running it with the analyse mode makes no change to the database; it produces an HTML and text report of every check that failed or needs attention.
Typical findings on old databases include invalid objects, outdated optimizer statistics on the data dictionary, deprecated initialisation parameters, an old timezone file version, materialised views that need refreshing, and objects in the recycle bin. Some issues AutoUpgrade fixes itself in the fixups stage; others need a DBA to decide, for example whether a deprecated parameter can simply be removed or needs a replacement setting.
Run analyse mode early in the project, not on the night of the upgrade. The findings often lead to small application changes, and those need time to test.
Step 4: Rehearse on a copy of production
Clone production to a test server, using RMAN duplicate or a storage snapshot, and run the full upgrade exactly as planned for production. Time every step: pre-upgrade fixups, the upgrade itself, recompiling objects, the non-CDB to PDB conversion, gathering statistics and the application checks.
Then let the application team test against the upgraded copy for long enough to cover their important processes: daily transactions, month-end close, reports, interfaces and batch jobs. Compare performance against the baseline with SQL Performance Analyzer if you have Real Application Testing, or with AWR compare-period reports if not.
A rehearsal often finds one or two statements that run slower on the new optimizer. Fix them now, by creating SQL plan baselines from the old plans in the SQL Tuning Set, adding a missing index or rewriting a query. Fixing them on the test copy is calm work; fixing them on Monday morning in production is not.
Step 5: The production upgrade night
- Confirm a full RMAN backup completed and was validated in the last 24 hours.
- Stop application servers and batch jobs; block new connections with a restricted session.
- Create a guaranteed restore point so the database can be flashed back if the upgrade fails.
- Run AutoUpgrade in deploy mode and watch its console for each stage.
- Recompile invalid objects (utlrp.sql) and compare the invalid object count with the pre-upgrade list.
- Gather dictionary and fixed-object statistics, and run the application smoke tests.
- Open the database to users, monitor closely for the first business day, and keep the restore point until the business confirms all is well.
- Drop the guaranteed restore point and raise the COMPATIBLE parameter only after the system is accepted, because raising COMPATIBLE prevents a simple downgrade.
Rollback: how to get back if something goes wrong
A rollback plan is not a sentence in a project document; it is a set of commands that someone has actually run. For an in-place upgrade the main rollback is Flashback Database to the guaranteed restore point taken before the upgrade, which returns the database to its pre-upgrade state in minutes, followed by starting it from the old Oracle home. This works only while COMPATIBLE has not been raised.
For side-by-side upgrades with Data Pump, transportable tablespaces or GoldenGate, the rollback is simpler: the old database is still there, untouched, and the application is pointed back to it. With GoldenGate you can even replicate changes from the new database back to the old one for a few days, so a late rollback loses no data.
Decide in advance who has the authority to call a rollback and the latest time by which the decision must be made, so the system is back in service before business hours.
Common Oracle upgrade problems we fix
- Old Oracle clients: 11g and older clients cannot connect to 23ai, and some cannot use newer password versions; upgrade clients and drivers before go-live.
- Password case sensitivity and SEC_CASE_SENSITIVE_LOGON: old applications that send passwords in a different case fail after the upgrade.
- Timezone file upgrades for TIMESTAMP WITH TIME ZONE data, which AutoUpgrade can handle but which take time on large tables.
- Plan regressions from the new optimizer, handled with SQL plan baselines rather than forcing optimizer_features_enable to the old version.
- Desupported features such as Oracle Streams, older XML DB components or the non-CDB architecture in 23ai.
- Invalid objects in custom schemas that were already broken before the upgrade and are noticed only afterwards.
How much an Oracle upgrade costs
The effort depends on the number of databases, their size, the upgrade method and how much testing the application needs. As a guide, a single non-RAC database with one application usually needs two to five days of DBA effort, including assessment, rehearsal, the production upgrade and follow-up. A RAC and Data Guard configuration or a low-downtime GoldenGate upgrade usually needs one to three weeks.
At Taj Solutions' rates of US$25–40 per hour, that is typically far below the cost of a single day of unplanned downtime, and well below the extended support fees many companies pay to keep old versions alive. We provide a written estimate after a free first call, and every hour is logged against the invoice.
Upgrading Oracle RAC and Data Guard configurations
In a RAC database, the Grid Infrastructure (Clusterware and ASM) must be upgraded to the target release or later before the database itself. Grid Infrastructure upgrades can be done in a rolling fashion, node by node, so the database stays available. The database upgrade then runs once for the whole cluster database, during which the database is closed on all nodes.
With Data Guard, the simplest approach is to install the new Oracle home on both primary and standby, keep the standby applying redo from the new home, and run the upgrade on the primary: the upgrade changes are shipped to the standby as redo, so both end up upgraded. For shorter outages, the transient logical standby method upgrades the standby first while the primary keeps working, then switches roles, limiting downtime to the switchover.
A worked example: 11.2.0.4 to 19c with a non-CDB to PDB conversion
Consider a typical case: a 600 GB Oracle 11.2.0.4 Enterprise Edition database on an old Linux server, one ERP application and several reporting jobs, with a Saturday night window of six hours. The business wants to move to new hardware and to be ready for 23ai later.
The plan builds a new Linux server with Oracle 19c, the latest Release Update and a new container database. Data files are copied in advance using incremental backups to keep the copy current, the final incremental is applied during the window, and AutoUpgrade upgrades the database and plugs it into the CDB as a PDB. The old server is left untouched as the fallback. Rehearsals on a copy show the window needs about three hours, leaving time for application checks before Sunday morning.
How Abdulla Saiyed's Oracle experience shapes your upgrade
Quick answer
Who leads Oracle upgrades at Taj Solutions?
Oracle upgrades at Taj Solutions are led by founder Abdulla Saiyed, an Oracle Certified Professional with 18+ years as a DBA, including 16+ years as Engineering Manager DBA at Sterlite Technologies running production Oracle with high availability, disaster recovery and performance tuning.
Abdulla Saiyed, Taj Solutions' founder, is an Oracle Certified Professional with 18+ years as a DBA. From 2006 to 2023 he was Engineering Manager DBA at Sterlite Technologies in Ahmedabad, responsible for database design, high availability, disaster recovery and performance tuning of production systems, and he then led remote DBA teams at Crossover.
That background matters most on the parts of an upgrade that a checklist cannot cover. Someone who has run Oracle RAC and Data Guard in production for years knows how to use a standby to shorten the outage, how to protect the standby during the upgrade, and how to bring the configuration back into sync afterwards. Years of performance tuning mean the before-and-after comparison is done properly: AWR baselines, SQL plan baselines for regressed statements and a calm fix rather than a panicked rollback.
In practice, Abdulla reviews the upgrade plan, the method and the rollback for every Oracle upgrade, and is on call for the production cut-over. You speak to the person who designs the plan, not to a sales layer.
Key takeaways
- Land on a long-term release: 19c for maximum compatibility, 23ai for the longest runway.
- Use AutoUpgrade, with a guaranteed restore point for rollback.
- 23ai requires multitenant: plan the non-CDB to PDB conversion.
- Use Data Guard or GoldenGate when downtime must be minutes, not hours.
Provider scorecard: how to compare oracle dba providers
Put the same questions to every provider, including us, and score each row from 1 to 5.
| What to compare | Ask this | Good answer | Red flag |
|---|---|---|---|
| Oracle depth | How have you used RMAN, AWR and Data Guard? | Real restores, tuning cases and failovers | Certification without production examples |
| Security and access | How will you access our databases? | NDA, named accounts, least privilege, logged sessions, same-day offboarding | Shared logins or blanket admin rights from day one |
| Proof of recovery | Can you show a timed restore test? | Scheduled restores to a separate server, with results and timings | Only “backup succeeded” messages |
| Cover and response | Who responds at night and at weekends? | Named on-call cover with response targets by severity, in writing | “We are always available” with nothing written |
| Pricing | What is billed, and what costs extra? | Written estimate, hour log, extra charges listed | A fixed price before anyone has looked at your systems |
| Low-risk start | Can we begin small? | Read-only health check, then a prioritised plan | Long lock-in before any work is shown |
Related service
Oracle DBA SupportOracle Database 19c and 23ai administration — RAC, Data Guard, RMAN and AWR-based tuning for business-critical systems.
Frequently asked questions
6 quick answers to what people ask most about this topic.
Can I upgrade Oracle 11g directly to 23ai?
How long does an Oracle upgrade take?
Do I need a new licence to upgrade Oracle?
Can you upgrade Oracle E-Business Suite databases?
Is Oracle 19c still supported?
Do I need to convert to multitenant when upgrading to 19c?
Official references
How Taj Solutions can help
Need help with oracle dba support?
Oracle Database 19c and 23ai administration — RAC, Data Guard, RMAN and AWR-based tuning for business-critical systems.
- RAC and Data Guard
- RMAN backup and recovery
- AWR / ASH performance analysis
- Quarterly release-update patching
- ASM and table-space management
- Upgrades to 19c / 23ai
- Oracle Cloud (OCI) operations
What you gain
Senior help without a full-time hire
Pay for the hours or the cover you need instead of recruiting, training and covering leave for an employee.
A second pair of expert eyes
An independent review finds risks the team living with the system no longer sees, and gives a prioritised plan.
Fewer outages and surprises
Backups proven by restore tests, monitoring that is read, and changes that follow a tested plan.
Faster fixes, written down
Problems are traced to the cause and every change is documented, so the fix stays with your company.
Read more about Oracle DBA Support at Taj Solutions.
Why choose Taj Solutions
Why businesses choose Taj Solutions for their databases
A founder-led remote DBA company in India, built by practising DBAs, with clear pricing, security and proof of recovery.
Led by an 18+ year Oracle DBA
Abdulla Saiyed is an Oracle Certified Professional with 18+ years of DBA experience, including 16+ years as Engineering Manager DBA at Sterlite Technologies. Senior judgement is on your project, not only in the sales call.
24/7 cover in three shifts
Our team works around the clock in three shifts, assigned per project as your demand requires: one shift for routine care, two for a migration window, all three for 24/7 production support.
Transparent pricing
Rates start at US$25–40 per hour, with every hour logged and a written estimate before work starts. Need a named person full time? A dedicated DBA is available on a fixed monthly charge, quoted to your requirement.
Security from day one
NDA, VPN-only named accounts, least-privilege access, logged sessions and a same-day offboarding step are standard, not an upgrade.
Restore tests, not promises
Backups are only real when restored. We schedule restore tests and give you the timed results, so you know your recovery time before you need it.
Every major platform
Oracle, SQL Server, PostgreSQL, MySQL, MariaDB and MongoDB, on your servers or on AWS, Azure, Google Cloud and Oracle Cloud.
In-house team, no subcontractors
The DBAs and engineers who touch your data are Taj Solutions employees, with documentation that stays with you.
Replies in 10 minutes
Send your brief and we reply within 10 minutes in business hours, hold a free discovery call and follow with a written estimate.
How to get started
- 1
Tell us what hurts
Share your platforms, versions and problems by form, email or WhatsApp.
- 2
Free discovery call and NDA
We agree scope and cover window, and sign an NDA before any access.
- 3
Read-only health check
We review your databases without changing anything and report risks and quick wins.
- 4
Written estimate, then we start
You approve a plan with hours or a monthly charge, and work begins with regular, plain-language reports.
Talk to us: info@tajsolutions.in · +91 94261 75704 · WhatsApp
Want a DBA to do this for you?
Our DBAs apply these steps to your databases. We reply within 10 minutes and send an estimate in hours.