Using Oracle Cloud Infrastructure Database Migration Service
Using Oracle Cloud Infrastructure Database Migration Service
F40519-19
October 2023
Oracle Cloud Using Oracle Cloud Infrastructure Database Migration Service,
F40519-19
Contributors: Alex Kotopoulis, Jean-Francois Verrier, Prakash Jashnani, Gaurav Taneja, Jorge Martinez,
Sergey Demyanenko, Luis Chapa, Shariful Haque, Costa Siourbas , Abigail Martinez , Tom O'Shaughnessy,
Christian Gomez
This software and related documentation are provided under a license agreement containing restrictions on
use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your
license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license,
transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse
engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is
prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If
you find any errors, please report them to us in writing.
If this is software, software documentation, data (as defined in the Federal Acquisition Regulation), or related
documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S.
Government, then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software,
any programs embedded, installed, or activated on delivered hardware, and modifications of such programs)
and Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government end
users are "commercial computer software," "commercial computer software documentation," or "limited rights
data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental
regulations. As such, the use, reproduction, duplication, release, display, disclosure, modification, preparation
of derivative works, and/or adaptation of i) Oracle programs (including any operating system, integrated
software, any programs embedded, installed, or activated on delivered hardware, and modifications of such
programs), ii) Oracle computer documentation and/or iii) other Oracle data, is subject to the rights and
limitations specified in the license contained in the applicable contract. The terms governing the U.S.
Government's use of Oracle cloud services are defined by the applicable contract for such services. No other
rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications.
It is not developed or intended for use in any inherently dangerous applications, including applications that
may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you
shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its
safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this
software or hardware in dangerous applications.
Oracle®, Java, and MySQL are registered trademarks of Oracle and/or its affiliates. Other names may be
trademarks of their respective owners.
Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are
used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc,
and the AMD logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered
trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content, products,
and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly
disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise
set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be
responsible for any loss, costs, or damages incurred due to your access to or use of third-party content,
products, or services, except as set forth in an applicable agreement between you and Oracle.
Contents
Preface
Audience vii
Documentation Accessibility vii
Related Resources vii
Conventions vii
iii
Giving Permissions to Database Migration Users 2-2
Configuring SUDO Access 2-4
Accessing the Database Migration Service 2-4
4 Managing Connections
Creating Connections 4-1
Testing Connectivity of a Database Connection 4-4
Viewing Connection Details 4-5
Editing a Connection 4-7
Moving a Connection 4-8
Deleting a Connection 4-8
Managing Tags for Connections 4-9
Using the Connection API 4-9
5 Managing Migrations
Creating Migrations 5-1
Selecting Objects for Migration 5-6
Configuring Optional Initial Load Advanced Options 5-9
Configuring Validation Options 5-11
Configuring Optional Replication Advanced Options 5-11
Viewing Migration Details 5-13
Editing a Migration 5-14
Cloning a Migration 5-16
Moving a Migration 5-16
Deleting a Migration 5-16
Managing Tags for Migrations 5-17
Using the Migration API 5-17
iv
Checking the Interactive Validation Premigration Advisor Report 6-1
Running a Migration Job 6-3
Pausing and Resuming a Job 6-3
Viewing Job Details 6-4
Monitoring Job Status 6-5
Preparing for Application Switchover 6-6
Terminating a Job 6-6
Deleting a Job 6-6
Managing Tags for Jobs 6-7
Using the Job API 6-7
7 Managing Agents
About the Database Migration Agent 7-1
Prepare a Host for Database Migration Agent Installation 7-1
Create a Stream 7-2
Create an API Key 7-3
Installing a Database Migration Agent 7-3
Managing Database Migration Agents 7-6
Starting and Stopping the Database Migration Agent 7-6
Getting Database Migration Agent Status 7-7
Listing Database Migration Agents 7-7
Moving a Database Migration Agent 7-7
Deleting a Database Migration Agent 7-7
Managing Tags for Database Migration Agents 7-8
Using the Agent API 7-8
v
Database Migration Resource-Types 9-1
Supported Variables 9-1
Details for Verbs + Resource-Type Combinations 9-2
odms-connection 9-2
odms-agent 9-2
odms-migration 9-3
odms-job 9-3
Permissions Required for Database Migration API Operations 9-4
Required Database Migration Policies 9-5
Creating a Policy 9-6
11 Reference
Set Up Source and Target Configurations for Online Migrations for Your GoldenGate
Instance 11-1
Database Migration Data Pump Defaults 11-3
Database Migration Job Phases 11-5
Database Migration Events 11-11
Database Migration Port Requirements 11-12
Migrating Databases from Amazon Web Services RDS to Oracle Autonomous Database 11-19
vi
Preface
Topics
Audience
Oracle Cloud Infrastructure Database Migration is intended for database administrators
responsible for identifying migration strategies and timelines, setting up connections to
source and target data sources, configuring and executing migrations, and validating and
generating audit and compliance reports.
Documentation Accessibility
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility
Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc.
Related Resources
See these Oracle resources:
• Get Started with Oracle Cloud
• Oracle Public Cloud
https://cloud.oracle.com
Conventions
The following text conventions are used in this document:
Convention Meaning
boldface Boldface type indicates graphical user interface elements associated with an
action, or terms defined in text or the glossary.
italic Italic type indicates book titles, emphasis, or placeholder variables for which
you supply particular values.
monospace Monospace type indicates commands within a paragraph, URLs, code in
examples, text that appears on the screen, or text that you enter.
vii
1
Overview of Oracle Cloud Infrastructure
Database Migration
Learn about the Oracle Cloud Infrastructure Database Migration service.
The following topics explain what Oracle Cloud Infrastructure Database Migration can do and
describe the concepts you need to know about the service.
To learn more about the service, see OCI Database Migration.
1-1
Chapter 1
What's New in Database Migration
Migration
Represents a single migration operation and contains the specifications by which the
migration should run. Migration specifications include whether or not to perform bulk
data copy, and/or capture ongoing changes, and the source and target database
selections.
Migration Job
Represents an active or past migration execution. A migration job is created implicitly
when you start a migration. A migration job is a snapshot with runtime information
about the migration. You use this information to audit logs and investigate failures.
Validation Job
Validates the prerequisites and connectivity for source and target databases, Oracle
GoldenGate instances, and Oracle Data Pump. A validation job is created when you
evaluate the migration.
Database connection
Represents a database instance, containing the database metadata and connection
details. A data asset can have one or many connections to include all schemas within
a database that need to be migrated.
Agent
Contains the necessary details to establish a connection from Oracle Cloud
Infrastructure to a source database that is not directly accessible on OCI, for example,
a database in a different region or tenancy in OCI, an on-premises database, or a
manually installed cloud database.
Private Endpoint
Gives hosts within your virtual cloud network (VCN) and your on-premises network
access to a single resource within the Oracle service of interest (for example, one
Autonomous Database with shared Exadata infrastructure). Connection to either a
source or target database in the migration is currently supported by the service. Make
sure security rules or network security groups allow traffic required for database
migration jobs. Learn more at Database Migration Port Requirements.
Schema
Organizational concepts of databases to hold database objects such as tables, views,
stored procedures, and so on.
1-2
Chapter 1
Offline Migration
Offline Migration
When using the online migration method, you must stop updates to the source database
before you start a migration.
Using the offline migration method, Database Migration service transports the data from the
source database using the preferred transfer medium, and then imports the data from the
selected transfer medium to the target database on the Cloud using Oracle Data Pump.
Online Migration
An online migration enables you to perform database migration without any downtime of your
source database.
• Online migrations consist of the following steps;
1. Initial load
2. Real-time replication
• When using the online migration method, you do not need to stop updates to the source
database before you start a migration.
• Online migrations are facilitated by Oracle GoldenGate's replication technology to allow
zero downtime of your source database.
To take advantage of parallelism and achieve the best data transfer performance, Oracle
recommends that you transfer data using Object Store for databases over 50GB in size. The
database link transfer medium can be convenient for smaller databases, but this choice may
involve uncertainty in performance because of its dependence on network bandwidth for the
duration of the transfer.
As part of a migration job, Database Migration uses GoldenGate's replication technology to
facilitate database replication between the source and target databases.
When the application switches over to the target database, Database Migration tears down
the replication so that the target database in the Cloud can then be used as the production
database. Note that bi-directional synchronization is not currently supported. Synchronization
is always from the source database to the target database.
1-3
Chapter 1
Data Replication
Data Replication
During the Oracle Cloud Infrastructure Database Migration service migration job work
flow replication phase, all data and metadata operations in transactions committed
after the initial load are replicated until you resume the migration job after the Monitor
Replication Lag phase.
During the migration job it is recommended that your database avoid Data Definition
Language (DDL) operations to provide the most optimal environment for fast database
replication. When DDL is replicated, Oracle GoldenGate Replicat serializes data to
ensure that there are no locking issues between DML and DDL on the same objects.
By default, Database Migration excludes all DDL from GoldenGate replication.
The following objects are not supported:
• Changes to external tables
• Oracle GoldenGate Unsupported Types (see Understanding What’s Supported)
Resource Identifiers
Database Migration resources have a unique, Oracle-assigned identifier called an
Oracle Cloud ID (OCID).
Database Migration resources are OdmsAgent, OdmsConnection, OdmsMigration, and
OdmsJob.
For information about the OCID format and other ways to identify your resources, see
Resource Identifiers.
Service Limits
Oracle Cloud Infrastructure Database Migration service limits you to 10 Connections, 5
migrations, and 5 agents.
Your tenancy has limits on the maximum number of resources that you are allowed to
use. To view your tenancy's limits for Oracle Cloud Infrastructure Database Migration
service, see Limits by Service. If you are an administrator in an eligible account, you
1-4
Chapter 1
Compartment Quotas
can request to increase the service limits in the OCI Console, see Requesting a Service Limit
Increase.
Compartment Quotas
In Oracle Cloud Infrastructure Database Migration service, creating a quota lets you limit the
number of migration resources in a compartment.
For example:
1-5
Chapter 1
Target Database Requirements
Note:
Amazon Web Services RDS Oracle Database Multitenant architecture
(CDB) is currently not supported for online migrations.
Note:
A target co-managed database can be either a pluggable database (PDB) in
a multitenant container database (CDB), or a traditional non-CDB Oracle
database.
For Bare Metal and Virtual Machine Database Systems, the user is
responsible for securing, patching, and hardening the environment. To learn
more about this, see Bare Metal and Virtual Machine DB Systems.
1-6
Chapter 1
Oracle Database Edition Support
Integrated Services
The Database Migration service is integrated with various Oracle Cloud Infrastructure
services and features.
IAM
Database Migration integrates with the Identity and Access Management (IAM) service for
authentication and authorization for the Console, SDK, CLI, and REST API.
To learn more about IAM, see IAM Overview.
Work Requests
The Database Migration service uses its own API for Work Requests. See WorkRequest.
Monitoring
Oracle Cloud Infrastructure Monitoring lets you actively and passively monitor your Oracle
Cloud Infrastructure Database Migration resources and alarms.
Database Migration Metrics capture CPU utilization, OCPU consumption, memory utilization,
deployment health, and inbound and outbound lag. You can view these metrics using the
Monitoring service.
See Troubleshooting Database Migration Service for topics about monitoring resource status
and accessing logs.
1-7
2
Getting Started with Oracle Cloud
Infrastructure Database Migration
Before you can start using Oracle Cloud Infrastructure Database Migration service and before
migrating your databases, you must perform the following preparatory tasks:
1. Create Database Migration policies in your tenancy.
2. Create any dependent objects needed for the migration.
3. Configure the source and target databases as required.
Creating Resources
Use the following instructions to create the resources that Oracle Cloud Infrastructure
Database Migration operations depend on.
Create a Compartment
If you don't already have a compartment, create a compartment in your tenancy.
For more information, see Working with Compartments.
Note:
If you don't see your subnet listed, go back and check that it was created as a
regional subnet. By default, the VCN wizard creates non-regional subnets.
2-1
Chapter 2
Giving Permissions to Database Migration Users
Take note of the group name. You will create policies for the group in Creating
Resource Policies. For more information, see Managing Groups.
Remember that only resources within the same compartment can access each other,
unless the proper permissions are granted. Ensure that you have the proper
permissions to view and select the appropriate VCN and subnet when creating
Connections.
Allowing Database Migration resource management
The following statements give a group of users permission to manage connections
(database registrations), migrations, agents, and jobs in Database Migration:
2-2
Chapter 2
Giving Permissions to Database Migration Users
The manage permission lets users create and delete Database Migration resources, such as
migrations and database registrations.
Limiting users to only "use" capability
If you want a group of users that only have the ability to use the Database Migration
resources, but not create and delete them, then create a separate group for users and
replace manage with use.
Only users with a manage permission for the odms-migration resources can create and delete
migrations. Users with the use permission can perform migrations and edit resources, but
cannot create or delete the resources.
Allowing network resource management
To let users of dmsGroup manage the network resources for Database Migration resources:
This way, you can view the list of existing VCNs, view and work with subnets, and have all of
the permissions on VNIC. These policies are required when you create a database
registration.
Allowing tag-namespaces and tag management
To let users of dmsGroup manage tag-namespaces and tags, add the policy:
Note:
To apply a defined tag, you must at least have permission to use the tag
namespace. To learn more about tagging, see Resource Tags.
2-3
Chapter 2
Configuring SUDO Access
If the source database server is accessed through SSH, then configure sudo
operations to run without prompting for a password for the database installed user and
the root user.
For example, if database installed user is oracle, then run sudo su - oracle.
Note that the opc user is a standard Oracle cloud user that is used to access database
servers, but you can use any privileged user that has sudo privileges.
Also, note that because the target database server is on the cloud only any sudo
operations are configured already.
2-4
3
Preparing Your Databases for Migration
Before you can begin the migration of your data with Oracle Cloud Infrastructure Database
Migration Service, you must configure your source and target databases as described here.
Prepare your databases using either of the following methods:
• Prepare your database by running scripts generated by the database preparation utility
(Recommended option).
• Manually configure your databases by following the documentation and running the SQL
commands.
Preparing your databases using the database preparation utility:
To prepare your databases for migration:
1. Refer to this MOS note.
2. Download the database preparation utility which is a shell script file.
3. Follow the instructions to proceed.
4. Run the script locally.
The database preparation utility:
1. Accepts the inputs that are specific to your migration and generates a SQL script that you
can run for your source and target databases.
2. Analyzes your databases for any missing required configurations or privileges.
3. Checks the current status of the database and provides information on the operations
that will be performed on your databases.
4. Generates a final script that performs the required operations on your databases to
prepare them for the migration.
Note:
• You must review and make necessary corrections to the scripts generated
by the database preparation utility before you run them for your database.
• You must run the utility script twice, once for the source database and then
for the target database.
Consequently, the configuration SQL script prepares the database for migration.
Manually configuring your databases for migration:
To prepare your source and target database manually using the SQL commands, see the
following topics:
• Preparing the Source Database for Migration
3-1
Chapter 3
Preparing the Source Database for Migration
-- Global Names
ALTER SYSTEM SET GLOBAL_NAMES=FALSE;
-- Force Logging
ALTER DATABASE FORCE LOGGING;
-- Supplemental Logging
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;
• To configure a multi-tenant (CDB) as a source for migration, run the following SQL
commands:
-- Global Names
ALTER SYSTEM SET GLOBAL_NAMES=FALSE;
-- Force Logging
ALTER DATABASE FORCE LOGGING;
-- Supplemental Logging
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;
3-2
Chapter 3
Preparing the Source Database for Migration
• To configure Amazon RDS (non-CDB) as a source for migration, run the following SQL
commands:
-- Force Logging
EXEC RDSADMIN.RDSADMIN_UTIL.FORCE_LOGGING(P_ENABLE => TRUE);
-- Supplemental Logging
EXEC RDSADMIN.RDSADMIN_UTIL.ALTER_SUPPLEMENTAL_LOGGING('ADD');
-- Global Names
ALTER SYSTEM SET GLOBAL_NAMES=FALSE;
-- Force Logging
ALTER DATABASE FORCE LOGGING;
-- Enable GoldenGate
ALTER SYSTEM SET ENABLE_GOLDENGATE_REPLICATION=TRUE;
-- Supplemental Logging
3-3
Chapter 3
Preparing the Source Database for Migration
3-4
Chapter 3
Preparing the Source Database for Migration
• To configure a multi-tenant (CDB) as a source for online migration, run the following SQL
commands:
-- Global Names
ALTER SYSTEM SET GLOBAL_NAMES=FALSE;
-- Force Logging
ALTER DATABASE FORCE LOGGING;
-- Enable GoldenGate
ALTER SYSTEM SET ENABLE_GOLDENGATE_REPLICATION=TRUE SCOPE=BOTH;
-- Supplemental Logging
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;
-- PDB User
ALTER SESSION SET CONTAINER = v_pdb_name;
CREATE TABLESPACE GG_ADMIN DATAFILE '+DATA/ggadmin_data.dbf' SIZE 100m
AUTOEXTEND ON NEXT 100m;
CREATE USER GGADMIN IDENTIFIED BY ggadmin_pwd CONTAINER=CURRENT DEFAULT
3-5
Chapter 3
Preparing the Source Database for Migration
• To configure Amazon RDS (non-CDB) as a source for online migration, run the
following SQL commands:
3-6
Chapter 3
Preparing the Source Database for Migration
docs.aws.amazon.com/AmazonRDS/latest/UserGuide/parameter-groups-
overview.html
-- Force Logging
EXEC RDSADMIN.RDSADMIN_UTIL.FORCE_LOGGING(P_ENABLE => TRUE);
-- Supplemental Logging
EXEC RDSADMIN.RDSADMIN_UTIL.ALTER_SUPPLEMENTAL_LOGGING('ADD');
The steps differ slightly if you're using a PDB as your source database, so make sure you
follow the recommendations if your database is in a multitenant environment.
1. Configure the streams pool with the initialization parameter STREAMS_POOL_SIZE.
• For offline logical migrations, for optimal Data Pump performance, it is required that
you set STREAMS_POOL_SIZE to a minimum of 256MB-350MB, to have an initial pool
allocated, otherwise you might see a significant delay during start up.
3-7
Chapter 3
Preparing the Source Database for Migration
4. Enable logging:
a. Check if logging is enabled:
3-8
Chapter 3
Preparing the Source Database for Migration
b. Enable logging:
5. Create a database administrator user that has full Oracle Data Pump privileges for initial
load to be performed. A user that has the DATAPUMP_EXP_FULL_DATABASE role is required
for the export operation at the source database. This user is selected as database
administrator when you create Database connections with the source databases.
See Oracle Data Pump in the Oracle Database Utilities guide for more information.
6. In the PDB being exported, if there is any dependency created on local objects in the C##
user's schema, then they would fail to be imported in the target Autonomous Database.
Exclude the problematic schema from the migration job.
7. If you are using Object Storage as a data transfer medium, ensure that an export
Directory Object exists and is usable by Data Pump to store generated dump files.
• The directory object is a file path on the source database server file system. The
name needs to comply with Oracle Database directory object rules. See CREATE
DIRECTORY in Oracle Database SQL Language Reference for details.
• The export Directory Object must be owned by same OS user who owns the
database Oracle home.
• This step is not required if you are using a database link transfer medium.
8. If you plan to transfer data using a database link, then you must set up SSL encryption on
the source database. Using Data Pump with a database link to an Autonomous Database
target requires that the source database have SSL encryption enabled. Creating a
database link from an Autonomous Database Shared Infrastructure target to a source
database with a private IP requires assistance from Oracle Support.
See Configuring Transport Layer Security Authentication in Oracle Database Security
Guide for more information.
9. For online logical migrations, if you plan to run migrations with replication, enable
GoldenGate Replication:
a. In a multitenant environment, if you are migrating a PDB, enable GoldenGate
Replication on the CDB.
b. Apply the mandatory RDBMS patches on the source database, based on your source
database version:
• Oracle Database 11.2:
My Oracle Support note Oracle GoldenGate -- Oracle RDBMS Server
Recommended Patches (Doc ID 1557031.1) recommends the following updates:
Database PSU 11.2.0.4.210720 includes a fix for Oracle GoldenGate
performance bug 28849751 - IE PERFORMANCE DEGRADES WHEN
3-9
Chapter 3
Preparing the Target Database for Migration
-- Global Names
ALTER SYSTEM SET GLOBAL_NAMES=FALSE;
-- Global Names
ALTER SYSTEM SET GLOBAL_NAMES=FALSE;
-- Global Names
ALTER SYSTEM SET GLOBAL_NAMES=FALSE;
3-10
Chapter 3
Preparing the Target Database for Migration
-- Global Names
ALTER SYSTEM SET GLOBAL_NAMES=FALSE;
-- Or unlock it if exists
ALTER USER GGADMIN IDENTIFIED BY ggadmin_pwd ACCOUNT UNLOCK;
-- Global Names
ALTER SYSTEM SET GLOBAL_NAMES=FALSE;
3-11
Chapter 3
Preparing the Target Database for Migration
-- Global Names
ALTER SYSTEM SET GLOBAL_NAMES=FALSE;
3-12
Chapter 3
Preparing the Target Database for Migration
3-13
Chapter 3
Preparing the Target Database for Migration
3. Create a database administrator user that has full Oracle Data Pump privileges for
initial load to be performed. A user that has the DATAPUMP_IMP_FULL_DATABASE role
is required for the export operation at the target database. This user is selected as
database administrator when you create Database connections with the target
databases.
See Oracle Data Pump in the Oracle Database Utilities guide for more information.
3-14
4
Managing Connections
To perform migration, create connections to your source and target databases by creating
database connection resources. Database Connection resources enable network connectivity
to the source and target databases.
Creating Connections
Oracle Cloud Infrastructure Database Migration database connection resources contain the
connectivity details of the migration source and target databases. Create connection
database resources in the Database Migration Databases Connections page.
Note:
Oracle Cloud Infrastructure Database Migration service runs network connectivity
tests followed by database login tests (to validate credentials) using the information
that you provided while creating database connections. See Testing Connectivity of
a Database Connection.
Note:
If the source database is a multitenant container database (CDB), and you are
performing an online migration, you must create two connection entries for the
source database: one for the PDB and one for the CDB. For offline migrations only
the PDB connection is required.
You will create only one database connection resource for the target database.
4-1
Chapter 4
Creating Connections
Database Migration uses the OCI Vault to store user secrets such as passwords,
wallets, and keys, and encrypts them with the user-supplied encryption key.
You can select a vault in a different compartment by clicking Change
Compartment.
7. In Encryption Key in Compartment select the keystore that you configured in the
vault.
Only AES algorithm type keys are supported.
8. Select and enter the appropriate information for one of the following options.
• Select Database: You can use this option to select a database configured in
the same region on OCI.
Note that for this option the following fields are pre-filled with values for the
CDB, so if you are registering a PDB you will need to correct the values.
– Database Type: Select Database (Bare Metal, VM, Exadata) or
VM Cluster Database for this option. Note that Autonomous Database
is not supported as a source database.
– Database System in Compartment: Select an OCI database.
– Database Home: The database home (not applicable to Autonomous
Database or VM Cluster)
– Database: The database (not applicable to Autonomous Database)
– Connect String: This is the full connect string with host, port, and service
name. The default connect string is for the CDB of the given database
system. When creating connection for a PDB, update the service name in
the connect string. (not applicable to Autonomous Database)
• Manually Configure Database: Use this option to select a source database
that is not directly accessible on OCI.
Use this choice if the source database is not in the same region or tenancy in
OCI, an on premises database, or a manually installed cloud database.
Note:
Databases configured manually cannot be used as target databases
in migrations.
4-2
Chapter 4
Creating Connections
Connect String: This is the full connect string with host, port, and service
name, for example:
host:port/db-service-name
If a private endpoint is specified in the connection, the host entry should be a
valid IP address.
Note:
Amazon RDS is only supported as a source database. For more
information about the Amazon RDS source database use case, see
Migrating Databases from Amazon Web Services RDS to Oracle
Autonomous Database
9. Create private endpoint to access this database indicates whether the database is
publicly accessible or if you want to create a private endpoint.
Check this box if you plan to connect your database over a private IP address. Do not
check it if the database has a public IP address.
Note that if you are creating connection for an Autonomous Database, the Subnet in
Compartment field is populated automatically with the connection string.
10. In Subnet in Compartment, select the subnet to which a private endpoint is created
from the Oracle Cloud Infrastructure Database Migration service tenancy. This creates a
network route for the Oracle Cloud Infrastructure Database Migration deployment to
connect to the database within your customer tenancy. Select the subnet containing the
appropriate Virtual Cloud Network (VCN), then click Next.Click Change Compartment to
select a subnet in a different compartment.
If the source database is a PDB, you only need to fill this out in the database connection
resource for the PDB, not the CDB.
11. The Advanced Options section allows you to optionally create tags.
12. On the Connection Details step, the fields displayed are dependent on which database
type you selected in the previous step.
• Database administrator credentials:
Enter the database administrator credentials in Initial load database username and
Initial load database password.
For source and target database connections, the user entered must have the
required initial load privileges. See Preparing Your Databases for Migrationfor further
details.
SYS is not accepted.
• Select Use different credentials for replication to enter the credentials for
replication. Select this option if you want to use a separate database user for
performing replication for your online migrations. The following options are available:
– Replication database username
– Replication database password
• In Show optional SSH settings, provide the SSH information for your database
hosts if you wish to provide SSH access to the service to perform the migrations.
Provide the SSH related information as follows:
SSH settings:
4-3
Chapter 4
Testing Connectivity of a Database Connection
Note:
Ensure that the private SSH key file is an RSA key in PEM format.
See Required Keys and OCIDs for more information.
Note:
Enter a valid SSH username that will be used by the service to
create a ssh session to the database host. This user should have the
sudo privilege to perform the necessary operations.
In SSH Private Key, select the private key file used to access the database
server host.
In SSH Username enter an OS user name for the database host. This user
must be a privileged user allowed to run sudo.
Note that the opc user is a standard Oracle cloud user that is used to access
database servers, but you can use any privileged user that has sudo
privileges.
In SSH Sudo Location enter the sudo binary location on the database host.
13. Click Create.
After you click Create, the database connection name appears in the Connection list
while the creating connection operation runs. The creating connection operation can
take a few minutes.
You can monitor the operation status in the State column. When the state is Active,
the database connection creation is complete and successful.
When the resource creation is complete and successful, check the Security Vault
service to verify that the SSH private key file was uploaded and enabled in the vault
you configured.
Note:
Remember to run through this procedure twice if your source database is a
PDB, to create two source database connection resources: one for the PDB
and one for the CDB.
4-4
Chapter 4
Viewing Connection Details
You can test the connectivity of a database connection before you start or create a migration.
You can get information about the connection and fix any configuration issues before running
the migration.
You can diagnose issues with a database connection such as:
• Incorrect IP address and/or port.
• Incorrectly declaring a connection public or private.
• Incorrect, expired, or locked database credentials.
• Missing entries in security lists or NSGs to allow communication with database IP or port.
• Connection failures through FastConnect, VPN, or any other network connectivity issues
for your on-premises database.
Oracle Cloud Infrastructure Database Migration service runs a network connectivity
check followed by JDBC Connection or Socket Connectivity using the Database
Connection data that you provide.
To test the connectivity of a database connection use either of the following methods:
• From the action menu (three dots), select Test connection.
• Select the database connection, which opens the Database connection details page and
click the Test connection button.
The Test connection dialog is displayed.
The Test connection dialog displays the following details:
• Result of the connection test. Following results are available:
– Diagnostic tests passed, connection to your database was successful.
– Connection diagnostics test failed
• Error codes and the accompanying error messages.
• Cause: The issue causing the connection failure.
• Action: The action you can perform to resolve the error.
4-5
Chapter 4
Viewing Connection Details
– Failed: There are problems with the Connection resource. You can review the
Connection resource work requests to investigate the issue.
• Created date and time
Note:
• You can associate NSGs available in your VCN to the connection. The
NSGs that are listed for a subnet are only applicable to your current
VCN.
• You can add network security groups in Database Migration Service to
control traffic, if you have connected over private endpoints while
registering databases. The advantage of network security groups
(NSGs) is that rules can be limited to individual resources within a
subnet, whereas Security Lists apply to all resources within a subnet.
• Associating NSGs to database connections provides you fine grained
control over the access to your database connection resources that are
involved in the migration process (Source and Target). See Network
Security Groups for more information.
1. Click Add network security groups to open the Add network security groups
panel.
4-6
Chapter 4
Editing a Connection
2. Select a network security group from the compartment and click Add network security
groups.
3. You can add up-to five unique network security groups by clicking on Another network
security group.
You can view the following details associated with the Network security groups Resource:
• Name : The name of the added network security group.
• State: The state of the network security group.
• Compartment : The compartment where the network security group resides.
• Created : The date and time when the network security group was created.
Select single or multiple network security groups to remove them by clicking Remove in the
Remove network security groups confirmation dialog.
Select View details from the actions menu (three dots) for a specific NSG to view information
related to VCN.
Work Requests
On the Database connection details page, under the Connection information box you can find
the Work Requests list. Work Requests lists any work requests sent to OCI to facilitate the
creation, update, or deletion of this resource. Click the work request to go to the Work
Request Details page for more information about the work request.
Editing a Connection
To edit a connection:
1. In the list of databases on the Databases connection details page, select the Name of the
Connection you want to edit.
2. In the Database connection details page, select Rename to change the name of the
Connection.
3. Select Edit next to any of the following fields to update the settings:
• Encryption Key: You can change the selected vault, encryption key, and
compartment in which to create a secret. Only AEP algorithm type keys are
supported.
• Subnet: You can update the subnet and private endpoint compartment network
connectivity settings.
• Database: you can update the database administrator user name and password
used to connect to the database. When editing a non-Autonomous database
connection, you can also edit connect string, SSH details, and TLS details. The
following options are available:
– Connect string
– Initial load database username
– Initial load database password
– If you select Use different credentials for replication , enter the following
details:
* Replication database username
4-7
Chapter 4
Moving a Connection
Moving a Connection
You can move a Connection from one compartment to another.
To move a Connection:
1. In the list of databases on the Database connection details page, select Move
Resource from the Actions (three dots) menu for the database you want to move.
You can also select Move Resource on the Database connection details page.
2. In the Move Resource to a Different Compartment dialog, select the
compartment to move the Connection to from the dropdown.
3. Click Move Resource.
After you move the Connection to the new compartment, inherent policies apply
immediately and may affect access to the Connection through the Console. For more
information, see Managing Compartments.
Deleting a Connection
Before you delete a Connection, ensure that you carefully review any resources that
reference the Connection. It is not possible to delete a Connection if it is references by
a migration. You must delete the migration before deleting the associated
Connections.
Deleting a Connection also deletes the private connection and database credentials,
so it will no longer be accessible to migrations. After you delete a Connection, it cannot
be restored.
Note:
Connections also capture and synchronize database credentials to Database
Migration. Any change made to the credential, such as updating or deleting,
synchronizes to Database Migration. You will encounter issues when the
Replicat or Extract attempts to reconnect to a deleted Connection.
To delete a Connection:
1. In the list of databases on the Database connection details page, select Delete
from the Actions (three dots) menu of the database you want to delete.
4-8
Chapter 4
Managing Tags for Connections
4-9
5
Managing Migrations
When you create a migration with Oracle Cloud Infrastructure Database Migration, you
specify how the migration should run, select the source and target databases, and then
configure the data transport settings. Optionally, you can configure advanced GoldenGate
and Data Pump settings in the migration using the Database Migration console.
Creating Migrations
A migration contains the parameter settings for running a migration job with Oracle Cloud
Infrastructure Database Migration.
The following procedure explains how to create migrations, which contain the settings for
running migration jobs with Database Migration. You can create multiple migration resources
with different parameter settings to test different scenarios.
Creating a Migration
1. Log in to the Console as a user with permissions to access Database Migration.
2. Open the navigation menu. Under Database Migrations click Migrations. A list of the
migration resources in the currently selected compartment is displayed.
3. Click Create migration.
This opens the Create migration wizard.
4. In the Add details step, configure the following settings, then click Next.
• Name: Enter a unique name for the migration.
On completion of the Create Migration wizard, the name you enter here is displayed
in the list of migrations on the Migrations page.
• Compartment: Select the compartment in which the Database Migration service is
hosted.
• Choose the source database connection type.
Direct connection to source database: Leave this option selected if the source
database is directly accessible from the cloud. You can do online and offline
migrations with this option.
No direct connection to source database: Lets you select a Database Migration
agent to use as a bridge to the source database.
You must install and register an agent before configuring a migration with no direct
connection to the source database. The link to download the agent is located on the
Migrations page above the list.
See Managing Agents for details.
5-1
Chapter 5
Creating Migrations
Note:
This option only allows offline migrations. With no direct connection
to the source database you won't be able to configure GoldenGate
replication.
5-2
Chapter 5
Creating Migrations
Note:
If your source database is Oracle Database Standard Edition 2, select the
Datapump via database link: option as the transfer medium. Encryption
for the exported Datapump dumps is not available for the object storage
transfer mediums.
Data Pump via object storage: This option lets Data Pump temporarily store the
exported database in an Object Storage bucket. If this option is enabled, also
configure the following settings.
– Amazon S3 bucket: Enter the details for the Amazon S3 bucket. This option is
only shown if the source database connection is of type Amazon RDS.
The bucket Name must be between 3 and 63 characters, and can consist only of
lower case letters, numbers, dots (.), and hyphens (-). It must begin and end with
a letter or number.
The Region must be in the same region as the RDS Oracle database. For
example us-east-1
For more information about the Amazon RDS source database use case, see
Migrating Databases from Amazon Web Services RDS to Oracle Autonomous
Database.
– Export directory object: Enter the file Name and Path to the directory object
that will be used by Data Pump export on the source database server file system.
Database Migration handles the directory object creation for you.
The name must comply with Oracle Database directory object rules. See
CREATE DIRECTORY in Oracle Database SQL Language Reference.
• Object storage bucket in Compartment: Select the object storage bucket. This
bucket is used for any Cloud Premigration Advisor Tool reports, Database Migration,
and Data Pump log storage, and Data Pump dump files.
If the bucket is in a different compartment, click Change Compartment to look in
another compartment.
7. If the source or the target database is non-ADB, then the following fields are shown when
the initial Data Pump load is performed via object storage:
• Export directory object name:
• Export directory object path:
• Database file system SSL Wallet Path
Note:
This field is displayed only when the SSH details are not provided during
source database connection.
5-3
Chapter 5
Creating Migrations
Note:
This field is displayed only when the SSH details are not provided
during target database connection.
If your source or target is non-ADB and you do not provide the SSH details during
the database connection, to achieve HTTPS connectivity, you must perform the
following steps in the source and target database host:
• Create SSL Wallet with Certificates
• Set up Network ACL
You can either download a pre-created wallet or manually create a wallet.
To download a wallet:
a. Download the wallet file.
b. Unzip the certificate files to a directory on the file system of your database
host.
c. Enter this location in SSL Wallet Path when creating the migration.
To create a wallet:
a. Download the necessary certificates.
b. Extract the files: $tar xvf dbc_certs.tar
c. Create the wallet directory by running the following command:
e. Import SSL certificates to a new auto-login wallet created under this new
directory:
5-4
Chapter 5
Creating Migrations
Security consideration: Do not allow a complete network access from the database.
Restrict the host access to the required OCI object storage region. For example,
https://objectstorage.us-ashburn-1.oraclecloud.com and ACL can be time
restricted with relevant start_date and end_date arguments in
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL. For example:
@$ORACLE_HOME/rdbms/admin/sqlsessstart.sql
define clouduser=<user performing export at src or import at target e.g.,
SYSTEM>
define sslwalletdir=< OCI wallet path e.g., /opt/oracle/dcs/commonstore/
import_dmp/nossh_wallet>
begin
dbms_network_acl_admin.append_host_ace(
host =>'*',
lower_port => 443,
upper_port => 443,
ace => xs$ace_type(
privilege_list => xs$name_list('http', 'http_proxy'),
principal_name => upper('&clouduser'),
principal_type => xs_acl.ptype_db));
dbms_network_acl_admin.append_wallet_ace(
wallet_path => 'file:&sslwalletdir',
ace => xs$ace_type(privilege_list =>
xs$name_list('use_client_certificates', 'use_passwords'),
principal_name => upper('&clouduser'),
principal_type => xs_acl.ptype_db));
end;
/
@$ORACLE_HOME/rdbms/admin/sqlsessend.sql
Once the connect privilege is granted, connect as the relevant user such as, SYSTEM and
verify if the privilege is granted using the following query:
Note:
Oracle recommends using the default Use online replication option to perform
an online replication.
5-5
Chapter 5
Selecting Objects for Migration
Note:
Skip this step for offline (Data Pump only) migrations.
The migration is loaded, and a new Migration Details page opens showing the
information, metrics, and operations for the migration.
The status of the creation operation is shown under the DM icon. When the status
is Active, you can run migration jobs with the migration.
schema_name1,object_name1,TABLE,EXCLUDE
schema_name2,object_name2,TABLE,EXCLUDE
schema_name3,object_name3,TABLE,EXCLUDE
Add all the objects to include or exclude by listing the Object Owner, Object Name,
Object Type , and Action (Include or Exclude), as shown in the above format
(comma separated).
To exclude a table from replication, enter information in the following comma
separated format:
schema_name1,object_name1,TABLE,EXCLUDE,EXCLUDEFROMREPLICATION
5-6
Chapter 5
Selecting Objects for Migration
Note:
In the advanced editor:
• Use a comma separator character (,) to separate each item for every inclusion/
exclusion definition.
• Use the escape character (\) if your schema or object name has a comma (,)
character as part of its name.
• You can add multibyte character (Unicode) names for schema or object names.
For example, ƹ ƿschema,DŽobject,TABLE,EXCLUDE.
• The maximum input size is 500 KB.
Alternatively, you can choose either Include or Exclude from the Action list to specify if a
rule should include or exclude the specified database objects in the migration. You can either
include or exclude objects in a migration, but you cannot do both.
If no rule is defined, all schemas and objects of the source database will be migrated, with
exceptions explained in Objects and Schemas Excluded by Default below.
If you specify Include rules, the migration will only move the specified objects and their
dependent objects; all other objects are automatically excluded.
When specifying Exclude rules, the migration will exclude the specified objects and their
dependent objects; all other objects are included in the migration.
To create a rule, enter values for each of the following fields:
• Object Owner specifies the owner of the selected database objects. When using Include
rules, all rules must be for the same owner, and wild characters are not allowed.
• Object Name specifies the name of selected database objects
• Object Type specifies the type of selected database objects. You can select ALL to
select objects of all types.
• Replication only: You can select this toggle when you want to exclude the tables from
replication. This option is enabled when the action is Exclude and the Object Type is
TABLE. This ensures that object types such as ROWID columns, unsupported by Oracle
GoldenGate, are not replicated during online migration.
You can filter Object Owner and Object Name fields using any valid pattern in Java class
Pattern. For example, you can enter .* in the Object Name field to select objects of any
name.
The objects included in a migration are also influenced by the Job Mode of the initial load, as
explained in Configuring Optional Initial Load Advanced Options.
Please note the following restrictions:
• When excluding an object in a specified schema, and an object of the same name exists
in a different schema that is also part of the migration, the objects will not be excluded
(that is, the rule is ignored). The exclusion can be accomplished by migrating the
schemas in separate migrations.
• When creating Include rules in Full job mode, only schema-level rules (Object Name is .*
and Object Type is ALL) are allowed.
5-7
Chapter 5
Selecting Objects for Migration
• If an Include rule has .* in Object Name, no other rule for the same Object Type is
allowed. If the rule has ALL as Object Type, no other rule for any type is allowed.
• The Object type ALL is only allowed for schema-level rules (Object Name is .*).
• If you define a rule with an Object owner pattern other than .* and the Object
Name is .* then the Object type TABLE is not allowed.
• Object-level rules (Object Name is any pattern other than .*) can only be used for
the following object types: DIRECTORY, FUNCTION, JOB, MATERIALIZED_VIEW,
PACKAGE, PROCEDURE, TRIGGER, SEQUENCE, TABLE. All other object types must be
either included or excluded using the .* pattern in Object Name, and in addition for
exclude, the owner should be .*
Examples
Example 1: Include all objects of schema MySchema
Action = Include
Example 2: Include all tables starting with PROD and procedure MYPROC of schema
MySchema, including all dependent objects.
Action = Include
Note that MySchema.OldTable will not be excluded if a table called OldTable is present
in a different schema that is also migrated.
Action = Exclude
5-8
Chapter 5
Configuring Optional Initial Load Advanced Options
5-9
Chapter 5
Configuring Optional Initial Load Advanced Options
• Export parallelism degree sets the Data Pump export SET_PARALLEL degree
parameter. This setting determines the maximum number of worker processes that
can be used for the migration job. You use this parameter to adjust the amount of
resources used for a job.
By default, Database Migration sets source database export parallelism to (Sum of
(2 x (no. of physical CPU) per node ) ) with Max 32 cap.
See SET_PARALLEL Procedure in Oracle Database PL/SQL Packages and Types
Reference for more details.
• Import parallelism degree, similar to Export Parallelism Degree, sets the Data
Pump import SET_PARALLEL degree parameter.
By default, Database Migration sets import parallelism for Autonomous Database
to the number of OCPUs.
• Auto-create tablespaces: For ADB-Dedicated (ADB-D) and co-managed/non-
ADB database targets, automatic tablespace creation is enabled by default.
Database Migration validates whether automatic tablespace creation is supported
on the specified target database. Oracle Autonomous Database Serverless targets
are not supported.
Database Migration automatically discovers the source database tablespaces
associated with user schemas that are being migrated, and automatically creates
them in the target database before the Data Pump import phase. Database
Migration generates the DDL required to pre-create the tablespaces, creates the
tablespaces on the target, and runs the generated DDL.
With automatic tablespace creation enabled, Database Migration skips automatic
creation for any tablespaces that are specified in the Metadata remaps section, or
that already exist in the target database.
Use big file: Autonomous Database systems support only BIGFILE tablespaces,
so Database Migration enforces BIGFILE tablespace by default on Autonomous
Database targets, and reports an error if SMALLFILE tablespaces are found. You
can explicitly remap any SMALLFILE tablespaces instead.
Extend size: enables tablespaces to AUTOEXTEND to avoid extend errors, with a
default extend size of 500MB.
• Remap target: When migrating to an Oracle Autonomous Database Serverless
target, all tablespaces are automatically mapped to DATA. You can override this by
explicitly mapping tablespaces to a different target in Metadata remaps.
• Block size of target database: Optionally, when creating or updating a migration
for ADB-Dedicated (ADB-D) and co-managed/non-ADB database targets, you can
select the database block size for the tablespace as automatic tablespace creation
is enabled by default.
Currently, there are two possible values to select the target database block size:
8K or 16K.
• Metadata remaps lets you rename database objects during a migration job.
Select the object to rename under Type, then enter the Old Value and New Value.
Supported objects are Datafile, Schema, Table, and Tablespace.
When migrating to an Oracle Autonomous Database Serverless target, all
tablespaces are automatically mapped to DATA. You can override this by explicitly
mapping tablespaces to a different target.
5-10
Chapter 5
Configuring Validation Options
Quota grants for individual users to tablespaces are not remapped, so you must manually
create these grants for tablespace DATA.
To rename multiple objects, click + Another Metadata Remap.
• Acceptable lag (in seconds) specifies the amount of lag. The lag is the time taken to
extract or apply the data from the time it was created on the source database. This
parameter specifies the amount of lag, in seconds, that triggers Oracle GoldenGate end-
to-end latency monitoring. Monitoring continues until the lag time is lower than the
specified value. The maximum value is 30 seconds, and the minimum is 2 seconds. The
default value is 30 seconds.
• Extraction settings
– Performance profile Sets the Oracle GoldenGate PERFORMANCEPROFILE parameter.
Valid for GoldenGate Extract in Integrated Capture mode.
5-11
Chapter 5
Configuring Optional Replication Advanced Options
Note:
Oracle recommends using the Use online replication default option.
Select the Use Marketplace GoldenGate instance option only when
you want to use your own Marketplace GoldenGate compute instance.
Note:
You must use Marketplace as the default name for your GoldenGate
deployment.
5-12
Chapter 5
Viewing Migration Details
5-13
Chapter 5
Editing a Migration
• Target Database: The link takes you to the Database Details page. You can select
Test connection to test the connectivity of the database connection.
• Migration Type: Online or Offline
• Replication: Enabled or Disabled
• Validation: CPAT Enabled or CPAT Disabled
Below the migration details, you can view information about resources associated with
the migration, such as Jobs (see Managing Migration Jobs), Excluded Objects (see
below), Work Requests (see below), and Metrics (see Database Migration Metrics).
Excluded Objects
The Excluded objects list displays objects that are excluded from migration.
Oracle Maintained: objects owned by Oracle-maintained users
(ORACLE_MAINTAINED = Y) are excluded from migration
Unsupported: objects not supported for migration by Oracle GoldenGate, such as
those owned by the ggadmin and c##ggadmin users, are excluded from migration
User Excluded: objects explicitly excluded by rules configured in your migration
Selected Objects.
See Selecting Objects for Migration for details about objects excluded by default and
explicitly selecting objects for migration.
Work Requests
On the Migration Details page, under the migration information box you can find the
Work Requests list. Work Requests lists any work requests sent to OCI to facilitate the
creation, update, validation, cloning, or deletion of this resource. Click the work
request to go to the Work Request Details page for more information about the work
request.
Editing a Migration
You can modify some of the settings in a migration resource configuration in Oracle
Cloud Infrastructure Database Migration.
In the list of migrations on the Migrations page, select the Name of the migration you
want to edit.
Select Edit next to any of the following modifiable settings:
Source Database
In the Edit Source Database dialog, you can choose a different source database.
Valid selection of source databases is the same as for when you create a new
migration resource; Non-autonomous non-CDBs or PDB/CDB combinations are
supported for the source.
Target Database
In the Edit Target Database dialog, you can choose a different target database.
5-14
Chapter 5
Editing a Migration
Valid selection of target databases is the same as for when you create a new migration
resource; Autonomous Databases are supported for the target.
Migration Type
The Migration Type (Offline or Online) cannot be changed, but you can change the settings
that are valid for the migration type originally configured.
In the Edit Initial Load Settings dialog, you can choose to change the following settings.
• Initial Load: You can change the data transfer method to use Object Storage bucket or
database link.
• Object Storage Bucket: When your initial load data transfer method is Object Storage,
you can change the bucket in which to store the Data Pump dumps.
• Export Directory Object: When your initial load data transfer method is Object Storage,
you can change the export directory object by specifying a new name and path.
• Advanced Options: You can change the initial load advanced options. See Configuring
Optional Initial Load Advanced Options for information about these settings.
Replication
In the Edit replication settings dialog, you can enable or disable online replication, and you
can change the following GoldenGate settings.
• Use online replication: Select this option if you want to enable the replication of all data
and metadata transactions from the source to the target database committed after the
initial load.
• Acceptable lag (in seconds)
• Extraction settings
• Replication settings
• GoldenGate instance:
– (Optional). Use Marketplace GoldenGate instance: If you select this option, then
enter the following details:
– GoldenGate instance OCID: The instance ID of the compute that is hosting the
Marketplace GoldenGate.
– GoldenGate hub URL
– GoldenGate administrator username
– GoldenGate administrator password
• See Configuring Optional Replication Advanced Options for information about these
settings.
Encryption Key
In the Edit Encryption Key dialog, you can choose a different Vault, Encryption Key, and the
compartment in which to create a Secret.
Validation
In the Edit Validation Settings dialog, you can enable or disable the use of Cloud Pre-
Migration Advisor Tool (CPAT) during migration validation, and you can change whether
CPAT validation continues on error.
5-15
Chapter 5
Cloning a Migration
Selected Objects
You can add or remove Include or Exclude database object rules in the Resources
section, under Selected Objects, which is located below the Migration Information
box.
To remove a rule, select the rule's checkbox and click Remove, or select the Remove
action from the actions list.
To add or edit rules, click Add Objects. See Selecting Objects for Migration for
information about configuring selected objects.
Cloning a Migration
To clone a migration:
1. In the list of migrations on the Migrations page, select Clone from the Actions
(three dots) menu of the migration you want to clone.
You can also click Clone on the Migration Details page.
2. In the Clone Migration dialog, enter a unique Name, then click Next to update any
of the source or target database details for the clone, and click Clone on the final
page of the dialog.
Moving a Migration
You can move a migration resource from one compartment to another.
To move a migration:
1. In the list of migrations on the Migrations page, select Move Resource from the
Actions (three dots) menu for the migration you want to move.
You can also select Move Resource on the Migration Details page.
2. In the Move Resource to a Different Compartment dialog, select the
compartment to move the migration to from the dropdown.
3. Click Move Resource.
After you move the migration to the new compartment, inherent policies apply
immediately and may affect access to the migration through the Console. For more
information, see Managing Compartments.
Deleting a Migration
Before you delete a migration, ensure that you carefully review any resources that
reference the migration. If not, you could encounter errors.
To delete a migration:
1. In the list of migrations on the Migrations page, select Delete from the Actions
(three dots) menu of the database you want to delete.
You can also click Delete from the More Actions menu on the Migration Details
page.
2. In the Delete dialog, click Delete.
5-16
Chapter 5
Managing Tags for Migrations
5-17
6
Managing Migration Jobs
In Oracle Cloud Infrastructure Database Migration, a migration job is the process of moving
data from a source database to a target database. Run a validation pre-check on the
migration before you run a job to ensure that it is configured properly. You can manage the
jobs with several operations.
Validating a Migration
Before you can run a job with a migration resource in Oracle Cloud Infrastructure Database
Migration, the migration resource must be validated.
1. In the list of migrations on the Migrations page, select Validate from the Actions (three
dots) menu for the migration you want to validate.
You can also select Validate on the Migration Details page.
2. In the Validate Migration dialog, click Validate.
3. Click Jobs on the left side of the page to monitor the status of a validation job.
In the Jobs table the validation job is listed with type Evaluation.
If you enabled the Cloud Pre-migration Advisor Tool (CPAT) to run during the validation job,
the CPAT report and details about any failed checks are found in the Job Details page. See
Configuring Validation Options and Checking the Interactive Validation Premigration Advisor
Report for more information.
6-1
Chapter 6
Checking the Interactive Validation Premigration Advisor Report
From this page you can download the CPAT report, view the report statistics, and
drill down in the Checks list.
Checks List Operations
Filters: You can filter the checks listed using the Filters checkboxes on the left side.
Drill down on individual checks: Click a check name in the list to display details
about that check from the CPAT report.
Check Details
The View check details panel shows you
• Information about the check, including the issue that caused the result shown, its
potential impact on the migration, any action you can take to mitigate the issue,
and if applicable, the location of a fixup script you can run on the source database.
• A Reviewed indicator, which lets you mark a check as "reviewed" so that you can
see in the Validate premigration advisor list of checks whether you have
completed whatever tasks you wanted to do with the check.
Click the link in the check details to change it to a No or Yes value. The indicator
does not have any impact on how the checks are processed; it is available for your
convenience.
• A list of Objects that were flagged by the check as problematic.
Some checks will show a read-only list of objects and some checks let you
interactively update the objects listed.
Running Fixup Scripts
The location of the fixup script is shown on the View check details panel for an
individual check.
The Fixup script location specifies where the script is located on the source
database.
Running the fixup script against the source database requires sys admin privileges.
In multitenant architecture, fixup scripts should be run on the CDB. Running them on
the PDB will produce an error.
Excluding Problematic Objects
After a validation run, every object listed in the View check details pane shows a No
in the Is excluded column.
To exclude objects from the next validation run, you can check the boxes next to
objects in the list and click Exclude selected, or you can choose Exclude all to
exclude all objects that were listed in the check.
Any objects you choose to exclude will show a Yes in the Is excluded column. Objects
marked Yes are ignored by CPAT in the next validation run, and they will not appear in
the Objects list the next time you run the validation.
The migration's Selected Objects configuration is also updated to reflect this change.
You will see a new row with the exclusion rule in the Selected Objects on the Migration
details page. If you want to include this object again you must remove the rule in the
Selected Objects list.
6-2
Chapter 6
Running a Migration Job
Note that Exclude all will exclude all of the objects on the page displayed, plus any objects
from pages not displayed. However, if you check the first box in the checkbox column and
click Exclude all, only the objects listed on the current page are excluded.
Note:
Excluding tables does not exclude them from CPAT analysis. Schemas can be
excluded from CPAT if the entire schema was excluded. The presence of an Oracle
Cloud unsupported table can lead to Blocker status in the CPAT report.
See Selecting Objects for Migration for information about explicitly including and excluding
objects.
6-3
Chapter 6
Viewing Job Details
6-4
Chapter 6
Monitoring Job Status
6-5
Chapter 6
Preparing for Application Switchover
Terminating a Job
You can terminate a migration job while it is running or paused.
1. In the list of jobs on the Migration Details page, select Abort from the Actions
(three dots) menu of the job you want to delete.
You can also click Abort on the Job Details page.
2. In the Abort Job dialog, click Abort.
Deleting a Job
1. In the list of Jobs on the Migration Details page, select Delete from the Actions
(three dots) menu of the job you want to delete.
6-6
Chapter 6
Managing Tags for Jobs
6-7
7
Managing Agents
Oracle Cloud Infrastructure Database Migration uses agents to connect with source
databases that are that are not directly accessible from the cloud.
When you configure a migration resource with no direct connection to the source database,
you must first download and install an agent to use as a bridge to the source database.
Note:
This option only allows offline migrations.
7-1
Chapter 7
Create a Stream
• The agent requires a standalone Linux host running Oracle Linux 7 or later
release.
• The agent host should be a dedicated system, but it can be shared for other
purposes; however, the agent host should not have Oracle Grid Infrastructure
running on it.
• The agent host must be able to connect to both the source and the target
database servers.
• Ensure that the Linux host has 100 GB of free storage space.
• You may use an existing user, or, as root user on the agent host create a dms
group and add dmsuser user to the group.
For example,
Create a Stream
The Oracle Cloud Infrastructure Database Migration agent requires a stream, created
in Oracle Streaming, to communicate asynchronously with the service.
1. In the Oracle Cloud Interface Console menu, go to Analytics > Streaming.
2. Select Create Stream.
3. Enter the following values, otherwise leave defaults:
• Stream Name: Enter a name, for example, DMSStream
– Press Create
4. Wait until the stream becomes active, then open the stream from list
5. Copy the OCID of the stream. You will need it later to configure the Database
Migration agent installer.
See Creating and Managing Streams for additional information about streams.
7-2
Chapter 7
Create an API Key
7-3
Chapter 7
Installing a Database Migration Agent
The examples used in these steps assume that you will install the agent in an on-
premises host, but you can use any host that conforms to the agent host requirements,
including an Oracle Cloud Infrastructure instance.
All commands are run as dmsuser.
dmsuser> cd agent_download_directory
dmsuser> unzip -q -d ~/agent/install dmsagentkip_21_210303.zip
6. Run the following commands using the information listed in the table at the
beginning of this task.
dmsuser> cd ~/agent/install
dmsuser> ./dmsagent_install.sh \
agentName=agentname \
home=agent_home_subdirectory_you_created_above \
base=agent_base_subdirectory_you_created_above \
ziploc=ziploc \
region=region \
compartmentId=compartmentId \
7-4
Chapter 7
Installing a Database Migration Agent
streamId=streamId \
tenancyId=tenancyId \
userId=userId \
userFingerprint=userFingerprint \
userPrivateKey=userPrivateKey
7. Observe the output of the script. Output for a successful installation looks like the
following example.
7-5
Chapter 7
Managing Database Migration Agents
After the install script has successfully completed, the agent is registered with OCI
and is running. No further commands are necessary on the agent instance.
If the installation outcome is different from the above example, review the log file
at ~/install/zdminstall.trc for error messages.
7-6
Chapter 7
Getting Database Migration Agent Status
7-7
Chapter 7
Managing Tags for Database Migration Agents
1. In the list of agents on the Agents page, select Delete from the Actions (three
dots) menu for the agent you want to move.
2. In the Delete dialog, click Delete.
Go to the Database Migration > Agents page and select a compartment where
agents are registered. The agents in the given compartment are listed in the table.
Using the API
To delete agents the in a given compartment, use the DeleteAgent API.
7-8
8
Troubleshooting Database Migration
Depending on the type of issue you may encounter while using Oracle Cloud Infrastructure
Database Migration, you can use the Metrics graphs in the OCI Console, the log and trail files
found in the manual backup, or logs from the Migrations page to help determine the root
cause and update your migration configuration.
Metrics
Metrics are collected every five minutes for each deployment. The data produced can help
you troubleshoot issues that you may encounter.
For more information, see Database Migration Metrics.
Alarms
For each metric on the Details page, you can create an alert to inform you when a condition
is met. For example, you can create an alarm to notify you when OCPU consumption is less
than 50%.
To create an alarm:
1. From the Options dropdown of a metric chart, select Create an Alarm on this Query.
2. On the Create Alarm page, under Define Alarm, add the trigger.
3. For Alarm Settings, complete the following fields as needed:
• Alarm Name: Enter the name that serves as the title for notifications related to this
alarm. Avoid entering confidential information.
• Alarm Severity: Select the perceived type of response required when the alarm is in
the firing state.
• Alarm Body: Enter the content of the notification to deliver.
• Tags (optional): Select or enter free-form tags to apply to this resource.
• Metric description: The metric to evaluate for the alarm condition.
– Compartment: Select the compartment that contains the resources that emit the
metrics evaluated by the alarm. The selected compartment is also where the
alarm is stored.
– Metric Namespace: Enter the service or application emitting metrics for the
resources that you want to monitor.
– Resource Group (optional): Select the group that the metric belongs to.
– Metric Name: Enter the name of the metric. Only one metric can be specified.
– Interval: Select the aggregation window, or the frequency at which data points
are aggregated.
– Statistic: Select the aggregate function.
8-1
Chapter 8
Logs
Logs
The Database Migration Jobs Details page provides detailed error information and
access to logs for troubleshooting performance.
8-2
Chapter 8
Error Messages
Error Messages
Error message are reported in the Jobs output log in Oracle Cloud Infrastructure Database
Migration.
If you see errors reported in Job output log, such as ORA and PR*, to understand the cause
and action for these errors you can look up the error by code in Oracle Database Error
Messages reference at Database Error Messages.
– If you know the connection display name, you can use it to filter results:
2. Get the Work Request OCID associated with the connection creation request.
• Using Oracle Database Migration Service (database-migration) OCI Command line
interface:
8-3
Chapter 8
Troubleshooting Connection Creation Failures
The compartment OCID where the failed connection was created is required.
You can find it using database-migration >> work-request >> list as shown in
the following example.
– Use the connection OCID to list the work requests:
– Use the compartment OCID to list the work requests of the compartment:
Only one sort order can be specified. Default order for --sort-by
timeCreated is descending.
• Using the Database Migration REST API:
– Use the connection OCID to list the work requests:
See ListWorkRequests
GET /20210929/workRequests?resourceId=odms-connection-
OCID&compartmentId=odms-connection-compartment-OCID
– Use the compartment OCID to list the work requests of the compartment:
GET /20210929/workRequests?compartmentId=compartment-OCID-of-
resource
GET /20210929/workRequests?compartmentId=compartment-OCID-of-
resource&sortBy=displayName
GET /20210929/workRequests?compartmentId=compartment-OCID-of-
resource&sortOrder=ASC
Only one sort order can be specified. Default order for --sort-by
timeCreated is descending.
8-4
Chapter 8
Troubleshooting Connection Creation Failures
3. Use the work request OCID to get details, logs, and errors related to the failure:
• Using Oracle Database Migration Service (database-migration) OCI Command line
interface:
– Use the work request identifier to get details:
GET /20210929/workRequests/{workRequestId}
See GetWorkRequest
– Use the work request identifier to get the errors:
GET /20210929/workRequests/{workRequestId}/errors
See ListWorkRequestErrors
– Use the work request identifier to get the logs:
GET /20210929/workRequests/{workRequestId}/logs
See ListWorkRequestLogs
4. Inspect the logs and errors in the work request and resolve the issues reported.
For more information about using the API and signing requests, see REST APIs and Security
Credentials. For information about SDKs, see Software Development Kits and Command
Line Interface.
8-5
Chapter 8
Troubleshooting Network Connectivity Issues for Database Connections
2. Get the Work Request OCID associated with the migration creation request.
• Using Oracle Database Migration Service (database-migration) OCI Command
line interface:
The compartment OCID where the failed migration was created is required.
– Use the migration OCID to list the work requests:
8-6
Chapter 8
Troubleshooting Migration Creation Failures
– Use the compartment OCID to list the work requests of the compartment:
Only one sort order can be specified. Default order for --sort-by timeCreated is
descending.
• Using the Database Migration REST API:
– Use the migration OCID to list the work requests:
GET /20210929/workRequests?resourceId=odms-migration-
OCID&compartmentId=odms-migration-compartment-OCID
See ListWorkRequests
– Use the compartment OCID to list the work requests of the compartment:
GET /20210929/workRequests?compartmentId=compartment-OCID-of-
resource
GET /20210929/workRequests?compartmentId=compartment-OCID-of-
resource&sortBy=displayName
GET /20210929/workRequests?compartmentId=compartment-OCID-of-
resource&sortOrder=ASC
Only one sort order can be specified. Default order for --sort-by timeCreated is
descending.
3. Use the work request OCID to get details, logs, and errors related to the failure:
• Using Oracle Database Migration Service (database-migration) OCI Command line
interface:
– Use the work request identifier to get details:
8-7
Chapter 8
Troubleshooting Migration Creation Failures
GET /20210929/workRequests/{workRequestId}
See GetWorkRequest
– Use the work request identifier to get the errors:
GET /20210929/workRequests/{workRequestId}/errors
See ListWorkRequestErrors
– Use the work request identifier to get the logs:
GET /20210929/workRequests/{workRequestId}/logs
See ListWorkRequestLogs
4. Inspect the logs and errors in the work request and resolve the issues reported.
For more information about using the API and signing requests, see REST APIs and
Security CredentialsSecurity Credentials. For information about SDKs, see Software
Development Kits and Command Line Interface.
8-8
9
Database Migration Policies
To control access to Oracle Cloud Infrastructure Database Migration and the type of access
each user group has, you must create policies.
The following topics explain how to create policies for Database Migration.
Policy language uses simple verbs like inspect, read, use, and manage.
Resource-Type Description
odms-agent Software that allows migrations from sources
databases not accessible from Oracle Cloud
odms-connection Connection settings
odms-job Migration job operations
odms-migration Migration parameter settings
Supported Variables
When you add conditions to your policies, you can use either Oracle Cloud Infrastructure
general or service specific variables.
9-1
Chapter 9
Details for Verbs + Resource-Type Combinations
Database Migration supports all general variables. For more information, see general
variables for all requests.
odms-connection
Permission APIs Fully Covered
INSPECT
ODMS_CONNECTION_INSPECT ListConnection
READ
INSPECT + INSPECT+
ODMS_CONNECTION_READ GetConnection
USE
READ + READ +
ODMS_CONNECTION_USE N/A
MANAGE
USE + USE +
ODMS_CONNECTION_CREATE CreateConnection
ODMS_CONNECTION_UPDATE UpdateConnection
ODMS_CONNECTION_DELETE DeleteConnection
ODMS_CONNECTION_MOVE ChangeConnectionCompartment
odms-agent
Permission APIs Fully Covered
INSPECT
ODMS_AGENT_INSPECT ListAgents
READ
INSPECT + INSPECT+
ODMS_AGENT_READ GetAgent
USE
READ + READ +
N/A N/A
MANAGE
USE + USE +
ODMS_AGENT_UPDATE UpdateAgent
ODMS_AGENT_DELETE DeleteAgent
ODMS_AGENT_MOVE ChangeAgentCompartment
9-2
Chapter 9
Details for Verbs + Resource-Type Combinations
odms-migration
Permission APIs Fully Covered
INSPECT
ODMS_MIGRATION_INSPECT ListAgentImages
ODMS_MIGRATION_INSPECT ListMigrations
READ
INSPECT + INSPECT+
ODMS_MIGRATION_READ GetMigration
ODMS_MIGRATION_READ RetrieveSupportedPhases
USE
READ + READ +
ODMS_MIGRATION_USE StartMigration
ODMS_MIGRATION_VALIDATE EvaluateMigration
MANAGE
USE + USE +
ODMS_MIGRATION_CREATE + CreateMigration
ODMS_CONNECTION_USE
ODMS_MIGRATION_CLONE + CloneMigration
ODMS_CONNECTION_USE
ODMS_MIGRATION_UPDATE + UpdateMigration
ODMS_CONNECTION_USE
ODMS_MIGRATION_DELETE DeleteMigration
ODMS_MIGRATION_MOVE ChangeMigrationCompartment
odms-job
Permission APIs Fully Covered
INSPECT
ODMS_JOB_INSPECT ListJobs
READ
INSPECT + INSPECT+
ODMS_JOB_READ GetJob
USE
READ + READ +
ODMS_JOB_USE ListJobOutputs
ODMS_JOB_USE GetJobOutputContent
ODMS_JOB_ABORT AbortJob
ODMS_JOB_RESUME ResumeJob
MANAGE
USE + USE +
ODMS_JOB_UPDATE UpdateJob
ODMS_JOB_DELETE DeleteJob
9-3
Chapter 9
Permissions Required for Database Migration API Operations
9-4
Chapter 9
Required Database Migration Policies
9-5
Chapter 9
Creating a Policy
permission to inspect network resources in the compartment and select them when
creating Database Migration resources:
To add a defined tag, you must have permission to use the tag namespace.
Related Topics
Learn more about:
• Policies
• policy syntax
• Resource Tags
• Permissions
Creating a Policy
To create a policy:
1. In the Console navigation menu, under Governance and Administration, go to
Identity, and then click Policies.
2. Click Create Policy.
3. Enter a name and description for the policy.
4. In the Statement field, enter a policy rule in the following format:
9-6
10
Database Migration Metrics
Monitor the health, capacity, and overall performance of your Oracle Cloud Infrastructure
Database Migration database registrations, migrations, agents, and jobs using metrics,
alarms, and notifications.
Resources: odms-agent, odms-connection, odms-job, odms-migration
Overview
Oracle Cloud Infrastructure Database Migration metrics help you measure the amount of data
replicated between source and target databases.
Note:
Capacity of target databases can be monitored through the target database service
and used to trigger alerts. For more information, see Use Autonomous Database
Metrics to Monitor Databases and Use Enterprise Manager to Manage and Monitor
Databases.
Terminology
The following terms are helpful for understanding metrics:
• Namespace: A container for Database Migration metrics. The namespace for Database
Migration is oci_database_migration_service.
• Metrics: The fundamental concept in telemetry and monitoring. Metrics define a time-
series set of datapoints. Each metric is uniquely defined by namespace, metric name,
compartment identifier, a set of one or more dimensions, and a unit of measure. Each
datapoint has a timestamp, a value, and a count associated with it.
• Dimensions: A key-value pair that defines the characteristics associated with the metric.
For example, resourceId, which is the Database Migration deployment OCID.
• Statistics: Metric data aggregations over specified periods of time. Aggregations are
done using the namespace, metric name, dimensions, and the datapoint unit of measure
within the time period specified.
• Alarms: Used to automate operations monitoring and performance. An alarm keeps track
of changes that occur over a specific period of time. It also performs one or more defined
actions, based on the rules defined for the metric.
Prerequisites
• IAM policies: To monitor resources, you must be given the required type of access in a
policy written by an administrator, whether you're using the Console or the REST API with
an SDK, CLI, or other tool. The policy must give you access to the monitoring services as
well as the resources being monitored. If you try to perform an action and get a message
10-1
Chapter 10
Available Metrics
that you don’t have permission or are unauthorized, confirm with your
administrator the type of access you've been granted and which compartment you
should work in. For more information on user authorizations for monitoring, see
Monitoring or Notifications.
• The metrics listed on this page are automatically available for any Database
Migration resource you create. You do not need to enable monitoring on the
resource to get these metrics.
Available Metrics
Oracle Cloud Infrastructure Database Migration metrics may include the following
dimensions:
• resourceId: For all metrics, the resourceId is the Migration, Agent, or Job
resource OCID.
• resourceName: Name of the Migration, Agent, or Job resource.
10-2
Chapter 10
Using the Console
10-3
11
Reference
This section contains reference materials.
Note:
You can have a single user for database connection, if you have the required
privileges. For the source database, the user for CDB and PDBs has all the
privileges for GoldenGate and Data Pump.
If the source database is multitenant, create the user in the PDB, and also create a different
user in the CDB root, for example c##ggadmin.
To create ggadmin, connect to the PDB and run the following commands:
11-1
Chapter 11
Set Up Source and Target Configurations for Online Migrations for Your GoldenGate Instance
To create c##ggadmin, connect to the CDB and run the following commands:
11-2
Chapter 11
Database Migration Data Pump Defaults
will require more privileges. See Establishing Oracle GoldenGate Credentials for information
about privileges required for a "Replicat all modes" user.
On Autonomous targets:
Autonomous Database has a pre-created ggadmin user that you must unlock. These
commands need to be run on the GoldenGate Target instance.
1. Connect to the target database as admin.
export TNS_ADMIN=/u02/deployments/Target/etc
export ORACLE_HOME=/u01/app/client/oracle19
$ $ORACLE_HOME/bin/sqlplus admin/ADW_password@ADW_name
export TNS_ADMIN=/u02/deployments/Target/etc
export ORACLE_HOME=/u01/app/client/oracle19
$ORACLE_HOME/bin/sqlplus ggadmin/ADW_password@ADW_name
Note:
Oracle Cloud Infrastructure Database Migration Service supports only those
scenarios where the Target database and Oracle GoldenGate, both run on private
IP addresses.
11-3
Chapter 11
Database Migration Data Pump Defaults
11-4
Chapter 11
Database Migration Job Phases
Oracle Data Pump errors that are ignored by default are as follows:
• ORA-31684: XXXX already exists
• ORA-39111: Dependent object type XXXX skipped, base object type
• ORA-39082: Object type ALTER_PROCEDURE: XXXX created with compilation
warnings
This is not configurable.
11-5
Chapter 11
Database Migration Job Phases
Note that Database Migration harnesses the Zero Downtime Migration tool to run the
migration job work flow, so in the logs the migration phase names will have a "ZDM_"
prefix. Also note that one Database Migration phase corresponds to one or more Zero
Downtime Migration phases, which will give you a more granular look at the work flow.
11-6
Chapter 11
Database Migration Job Phases
11-7
Chapter 11
Database Migration Job Phases
11-8
Chapter 11
Database Migration Job Phases
Monitor GoldenGate Polls the GoldenGate Monitor GoldenGate Polls the GoldenGate
Lag checkpoint and Lag checkpoint and
(ODMS_MONITOR_RE heartbeat data to (ZDM_MONITOR_GG_LA heartbeat data to
PLICATION_LAG) measure end-to-end G) measure end-to-end
apply lag until lag apply lag until lag
decreases below decreases below
desired threshold. desired threshold.
Switchover App If the source database Switchover App If the source database
(ODMS_SWITCHOVER) is idle, stops (ZDM_SWITCHOVER_AP is idle, stops
GoldenGate Extract, P) GoldenGate Extract,
waits for GoldenGate waits for GoldenGate
Replicat to complete Replicat to complete
apply, and stops apply, and stops
GoldenGate Replicat. GoldenGate Replicat.
11-9
Chapter 11
Database Migration Job Phases
11-10
Chapter 11
Database Migration Events
11-11
Chapter 11
Database Migration Port Requirements
For information about the migration job phases, see Database Migration Job Phases.
11-12
Chapter 11
Database Migration Port Requirements
11-13
Chapter 11
Database Migration Port Requirements
N
o
t
e
:
R
e
q
u
i
r
e
d
o
n
l
y
f
o
r
S
S
H
c
o
n
n
e
c
t
11-14
Chapter 11
Database Migration Port Requirements
i
o
n
.
Note:
If you are using a non-default port number (that is, something other than port 1521)
for the local listener address, then the non-default port should allow connections.
11-15
Chapter 11
Database Migration Port Requirements
Not
e:
Req
uire
d
only
for
SS
H
con
nect
ion.
2. The following INGRESS security rules must be configured for the subnets
hosting your databases or Oracle GoldenGate compute instances:
Subnet Hosting Co-managed System
11-16
Chapter 11
Database Migration Port Requirements
Not
e:
Req
uire
d
only
for
SS
H
con
nect
ion.
11-17
Chapter 11
Database Migration Port Requirements
3. Additionally, if you have configured Network Security Groups (NSGs) for ADB-S
or Oracle GoldenGate compute instances, then the following INGRESS rules
must be set for the Network Security Groups:
NSG Associated With ADB-S
11-18
Chapter 11
Migrating Databases from Amazon Web Services RDS to Oracle Autonomous Database
Network security groups (NSGs) are associated with individual virtual network interface cards
(VNIC), ADBs, compute instances, and so on. You can configure INGRESS and EGRESS
NSG rules.
Security lists apply to entire subnet.
You can use both security lists and NSGs. In this case, a union of security list rules and NSG
rules is applied.
For more details, see Comparison of Security Lists and Network Security Groups and If You
Use Both Security Lists and Network Security Groups
11-19
Chapter 11
Migrating Databases from Amazon Web Services RDS to Oracle Autonomous Database
11-20
Chapter 11
Migrating Databases from Amazon Web Services RDS to Oracle Autonomous Database
The bucket Name must be between 3 and 63 characters, and can consist only of lower
case letters, numbers, dots (.), and hyphens (-). It must begin and end with a letter or
number.
The Region must be in the same region as the RDS Oracle database. For example us-
east-1
Note that you must also configure the OCI Object Storage bucket so that Database
Migration can store Cloud Pre-migration Advisor Tool reports, Database Migration logs,
and Data Pump logs there.
11-21