Migrate Oracle RAC
To perform the migration of a Oracle RAC database from an Oracle Cloud Infrastructure Classic server to an Oracle Cloud Infrastructure Database system, you can use Oracle Data Guard. You must configure the database on Oracle Cloud Infrastructure Classic as the primary database (the source database), which you migrate to a standby database (the target database) on Oracle Cloud Infrastructure on virtual machine systems.
Configure the Primary (Source) Database
To configure the primary database (the source database), you configure Oracle
Data Guard and modify the listener.ora
and tnsnames.ora
files for the standby database (the target database).
Configure the Primary Database for the Standby Database
In this configuration, you configure the primary (source) database to use Oracle Data Guard.
Configure the Standby (Target) Database
To configure the standby (target) database, you must drop the standby database and
then modify the oratab
, listener.ora
, and
tnsnames.ora
files.
Add Entries for the Database Instances
Update the /etc/oratab
file on the Oracle RAC nodes and add an entry for your database instance as follows:
Add Static Services to the Standby Database listener.ora File
After you add static services to the standby database (the source database)
listener.ora
file, you must restart the listener. .
Copy TDE Wallets from the Primary Database to the Standby Database
You can manually copy the TDE wallet files from the primary database (the source database) system to the standby database (the target database) system by using Secure Copy Protocol (SCP).
Compress the TDE Wallet
You must perform this operation in the primary database (the source database).
Configure the Standby Initialization Parameter File and Start the Instance in NOMOUNT Mode
After you configure the standby initialization file, then you can restart the
database in NOMOUNT
mode.
Duplicate the Target Database for the Standby from the Active Database
You can execute a script to duplicate the standby database (the target database). If
the primary database (the source database) is large, then you can allocate
additional channels to improve its performance. For a newly installed database, one
channel typically runs the database duplication in a couple of minutes. Ensure that
no errors occur after you run the Oracle Recovery Manager (Oracle
RMAN
) duplication operation. If errors occur, then restart the database
by using the initialization parameter file (not spfile
), in case it
is generated under the $ORACLE_HOME/dbs
directory as part of the
Oracle RMAN
duplication process.
Post Oracle Recovery Manager Duplication Steps
After you complete the Oracle Recovery Manager (Oracle
RMAN
) duplication operation, you should perform these clean-up
tasks on the standby database (the target database).
Move the spfile File to Oracle Automatic Storage Management
You should move the spfile
file to Oracle Automatic Storage Management.
Change the inittarget_db_name.ora File to Reference the spfile File
You can modify the init<sid>.ora
file to reference the
spfile
file..
Modify and Start the Standby Database in MOUNT Mode
You can use the srvctl
to modify and start the standby database
(the target database).
Validate Oracle Data Guard Broker on the Primary Database and the Standby Database
You can use SQL*Plus to validate Oracle Data Guard Broker on the primary database (the source database) and the standby database (the target database).
Validate Oracle Data Guard Broker on the Primary Database
You can use SQL*Plus to validate Oracle Data Guard Broker on the primary database (the source database).
Perform the Migration
To complete the migration, you must perform a switchover operation from the primary database (the source database) to the standby database (the target database).
Post-Migration Steps
After you complete the migration of an Oracle database from an Oracle Cloud Infrastructure Compute Classic server to an Oracle Cloud Infrastructure server that uses a Virtual Machine Database system, you should validate the migration, and then remove the configuration from the primary database (the source database).
Test the Oracle Data Guard Configuration on the Standby Database
At this stage, the target database is now the primary database. The source database is now the standby database.
You can test the Oracle Data Guard connection on the target database, by performing a switchover operation with the source database. This switchover operation will make the target database take the standby role again. The purpose of this test is to prove that you can return to the original configuration in case the target database is not functional.