Migrate Oracle Database 11g from Windows to Oracle Database 19c on Linux

Introduction

This tutorial shows how to migrate an Oracle Database 11g database from Windows to Oracle Database 19c on Linux by using Oracle Recovery Manager (RMAN) backup and restore, a physical standby process, database upgrade, and non-CDB to PDB plug-in.

The process reduces application downtime by restoring the database on the target system before cutover, manually shipping archive logs, applying the remaining archive logs during the cutover window, upgrading the database, and plugging it into a container database (CDB).

Environment Details

Environment details

Objectives

Prerequisites

Task 1: Backup the source database (Windows) with ‘NFS’ storage.

RMAN backup script for Windows

Task 2: Start database NOMOUNT in stage DB and start restoring the database in OCI.

Startup nomount database with spfile

Database Start Restore output

Database restore output

Task 3: Once the restore is complete, copy all archive logs from the source database to the NFS location until the cutover.

catalog archive directory path

MRP process applying archive logs to standby database

Task 4: Stop recovery, activate the standby database, and open the database in OPEN UPGRADE mode in the target DB system.

Stop `MRP` process and activate standby database

DB Open Upgrade Mode

Task 5: Upgrade the stage database to the 19c version within the target database system.

Target database Upgrade

image

image

Task 6: Start the database, run the post-upgrade fixup script, and run the UTLRP command to compile invalid objects.

start db target in system

invalid object comparison

postupgrade fixup script

image

Task 7: Upgrade the time zone on the stage database.

Timezone upgrade

image

image

Task 8: Steps for using the PDB Plug-in.

Startup read-only database

compatibility target cdb database

PDB plugin violations

create pluggable database

noncdb to pdb

open pdb save state

datapatch in pdb

datapatch in pdb 1

Task 9: Encryption key for PDB database.

Encryption key in PDB

Task 10: Ensure that the components of the database registry are validated for post-checks.

Database registry components

Conclusion

The significant takeaway from this method is, using cross-platform database RMAN backup and restore, you can easily perform DB migration between Windows to Linux with a multi-tenant DB system. For minimum downtime migration requirements, this method helps like Data Guard set up and upgrade the database and plugin to a container database.

Acknowledgments

Author - Yogesha D K (Senior Cloud Engineer, Customer Success Services)

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.