If you want to migrate a single-instance database, created with Oracle Database Cloud Service on an Oracle Cloud Infrastructure Compute Classic server, to an Oracle Cloud Infrastructure Virtual Machine Database System, then you can perform the database migration by using Oracle Data Guard.
This procedure can be used as part of an overall migration of your Oracle Cloud environment to Oracle Cloud Infrastructure.
You can migrate Oracle Database releases 126.96.36.199 and 188.8.131.52. Before you migrate your database, you must have an Oracle Database Cloud Service instance that you want to migrate, and an Oracle Cloud Infrastructure Server with Oracle Database installed.
When you use Oracle Data Guard to perform the migration, the source database is the primary database, and the target database is the standby database.
The following diagram shows the migration process:
Description of the illustration architecture.png
To perform the migration, you must follow these general steps:
- Plan the migration.
When you plan the database migration, you begin by inventorying the source environment (the primary database) and then you decide on the best migration strategy. To inventory the source environment, you must perform tasks such as determining the sizes of database files and checking which disaster recovery plans are in place. To decide on the best strategy, you should plan, for example, the best time of day to perform the migration.
- Prepare for the migration.
To prepare to migrate the source database (the primary database) to the target environment (the standby database), you must perform tasks such as ensuring that the database that you want to migrate is running, installing the latest patches for both databases so that they are patched at the same level, and ensuring that the 1521 port is open between the primary database and the standby database.
Oracle recommends using the same database name for both databases so that applications can automatically fall over to the new database.
- Perform the migration.
You can perform the database migration by configuring the primary database (the source database) and the standby database (the target database) for Oracle Data Guard, copying the TDE wallets from the primary database to the standby database, and then completing the standby database configuration.
Required Tools to Perform the Migration
Before you begin the database migration, in addition to knowledge of Oracle Cloud Infrastructure, you must have knowledge in several areas of Oracle Database tools.
The tools with which you must be familiar are as follows:
- Oracle Data Guard
- Familiarity with using the
- Familiarity with editing the
- Familiarity with performing Oracle Data Guard switchover operations
- (Optionally) Familiarity with generating Oracle Automatic Workload Repository and Oracle Automatic Database Diagnostic Monitor reports
- (Optionally) Familiarity with Oracle Automatic Storage Management Cluster File System
About Required Services and Roles
This solution requires Oracle Cloud Infrastructure.
The roles that are described in this topic will be in the target database only if they were in the source database. Oracle Database creates these roles (as well as other roles) during the installation process to better enforce separation of duty.
The following table lists the roles that you will need to complete this Oracle Cloud Infrastructure solution.
|Service Name: Role||Required to...|
||Perform Oracle Data Guard tasks, if you are using Oracle Database 12c release 2 (184.108.40.206) or later.|
||Perform Transparent Data Encryption tasks, if you are using Oracle Database 12c release 2 (220.127.116.11) or later.|