Prepare Oracle RAC
To prepare for the migration of a Oracle Real Application Cluster (Oracle RAC) database to an Oracle Cloud Infrastructure server, you must perform multiple preparatory tasks before migration can start.
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:
Ensure That the Database to be Migrated Is Running
Before you begin the migration process, you must check that the source database (the primary database) to be migrated is running.
Ensure That All Database Components on the Source Database Are Installed on the Target Database
You can find the components that are installed on the source database (the primary database) by querying the DBA_REGISTRY
data dictionary view.
Create a Standby Database for the Oracle Cloud Infrastructure System
You must create a standby database (the target database) on the Oracle Cloud Infrastructure, in addition to the database that is currently on this system. The creation process for creating this database creates a starter database during provisioning. Create the database system with the host name, shape, and CPU count that your site requires.
Generate SSH Key Pair
oracle
or the user
opc
. To access the standby Virtual Machine Database system, using
SSH, you have to use SSH key pair instead of a password to authenticate a remote user. A
key pair consists of a private key and public key. You keep the private key on your
computer and provide the public key every time you launch an instance. To create key
pairs, you can use a third-party tool such as OpenSSH on UNIX-style systems (including
Linux, Solaris, BSD, and OS X) or PuTTY Key Generator on Windows.
Create Virtual Cloud Network
When you work with Oracle Cloud Infrastructure, one of the first steps is to set up a virtual cloud network (VCN) for your cloud resources. Ensure that you have set up a VCN before creating a standby database. You can refer to Oracle Cloud Infrastructure documentation for more information on how to create a VCN.
Verify the Virtual Machine Database Shapes Supported by your Tenancy
When you sign up for Oracle Cloud Infrastructure, a set of service limits are configured for your tenancy. The service limit is the quota or allowance set on a resource. For example, your tenancy is allowed a maximum number of compute instances per availability domain. These limits are generally established with your Oracle account representative when you purchase Oracle Cloud Infrastructure.
When you create a standby Virtual Machine Database system, you have to ensure that the Virtual Machine database shape that you select, should closely map to the primary(source) instance. You also MUST ensure that the selected shape is supported by your tenancy.
Verify your tenancy limits and usage (by region):
Note:
If a given resource type has limits per availability domain, the limit and usage for each availability domain is displayed.- Open the Oracle Cloud Services Dashboard. Open the User menu and click Tenancy: <your_tenancy_name>.
- Click Service Limits on the left side of the page.
Your resource limits and usage for the specific region are displayed, broken out by service.
- Click on Database, and verify the Virtual Machine database shapes supported by your tenancy.
Your selection of the standby database shape should be a combination of shape that closely maps to primary(source) instance shape along with supported database shapes in your tenancy. Virtual Machine Database system is available in fixed data sizing shapes. Ensure that the shape chosen for creating database should be able to accommodate the source database plus any future sizing requirements. A thumb rule is to use a shape similar or higher in size than source database.
Create Standby Virtual Machine Database System
Note:
Ensure the database is created with the same parameters, such as character set, as the primary database (the source database).- Login to your Oracle Cloud Services Dashboard
- Open the navigation menu. Under Services, click Database (NOT Database Classic).
- Under Database, click Bare Metal, VM, and Exadata.
- Select the compartment in which you want to work.
- Click Launch DB System.
- In the Launch DB System wizard, enter the following:
- Click Launch DB System. The DB system appears in the list with a status of Provisioning. The DB system's icon changes from yellow to green (or red to indicate errors).
- Wait for the DB system's icon to turn green, with a status of Available, and then click the highlighted DB system name. Details about the DB system are displayed.
- Note the IP addresses; you'll need the private or public IP address, depending on network configuration, to connect to the DB system.
- Check the
SYS
password on the primary (source) database. If it does not meet the Oracle Cloud Infrastructure password requirements, then change it to match the password that you created for the standby database (the target database).
Ensure That Port 1522 and 1521 Is Open Between the Primary Database and the Standby Database
You must ensure that port 1522 is open on the primary database (the source database) and port 1521 on the standby database (the target database) to allow the databases to connect.
Enable Communication from the Oracle Cloud Infrastructure System to the Oracle Cloud Infrastructure Classic System
On the Oracle Cloud Infrastructure Classic system, you must open port 22 and 1522 for ingress traffic from the Oracle Cloud Infrastructure virtual machine system.
Enable Communication from the Oracle Cloud Infrastructure Classic System to the Oracle Cloud Infrastructure System
On the Oracle Cloud Infrastructure Database system, you must open ports 22 and 1521 for ingress traffic from the Oracle Cloud Infrastructure Classic system.
Ensure That Bundle Patches Have Been Applied and Are in Sync
Ensure that the patch level on the primary database (the source database) Oracle Cloud Infrastructure Classic system is earlier or the same as the patch level on the standby database (the target database) Oracle Cloud Infrastructure system.