3 Preparing for Database Migration
The following topics describe how to prepare for database migration.
- Setting Up Zero Downtime Migration Software
- Configuring Connectivity From the Zero Downtime Migration Service Host to the Source and Target Database Servers
- Configuring Connectivity Between the Source and Target Database Servers
- Prepare the Response File Template
- Preparing for Automatic Application Switchover
- Customizing a Migration Job
3.1 Setting Up Zero Downtime Migration Software
Requirement | Description | Comments |
---|---|---|
Set up the Zero Downtime Migration software |
|
Ignore the following messages which are displayed on the
terminal at the end of installation. There is no need to run these
scripts.
"As a root user, execute the following script(s):
|
Parent topic: Preparing for Database Migration
3.2 Configuring Connectivity From the Zero Downtime Migration Service Host to the Source and Target Database Servers
Requirement | Description | Comments |
---|---|---|
Configure connectivity from the Zero Downtime Migration service host to the source and target database servers |
|
Note 1: If you have root access to source database server, then configuring connectivity through SSH keys for the source database server is not required. Note 2: If you configure connectivity through SSH keys, then the Zero Downtime Migration service host should be able to connect to the source and target database servers using a private key file, without prompting for any password. Note 3: If your Zero Downtime Migration service
host needs proxy details to connect to the target server, then along
with SSH keys you also need to configure the
For example
Note 4: The
|
Parent topic: Preparing for Database Migration
3.3 Configuring Connectivity Between the Source and Target Database Servers
Requirement | Description | Comments |
---|---|---|
Configure connectivity between the source and target database servers |
You can configure connectivity between the source and target database servers using one of two options. Option 1 The source database server specified in the
Having connectivity from both sides, you can synchronize
between the source database and target database from either side. If
the source database server SCAN cannot be resolved from the target
database server, then the To test the connectivity for Option 1:
Option 2 If connectivity through SCAN and the SCAN port is not possible between the source and target database servers, set up an SSH tunnel from the source database server to the target database server using the procedure below. Using this option, you will not be able to synchronize between the target database and source database. To set up an SSH tunnel on the source database servers for the root user:
|
Ensure that the source database server is able to connect to target database server without prompting for any password, otherwise Data Guard Sync cannot occur from the source to the target side. |
Parent topic: Preparing for Database Migration
3.4 Prepare the Response File Template
Prepare the response file template according to whether you will perform the migration online or offline.
- Preparing a Response File for Online Migration to an Oracle Cloud Infrastructure Target
- Preparing a Response File for Online Migration to an Exadata Cloud Service Target
- Preparing a Response File for Online Migration to an Exadata Cloud at Customer Target
- Preparing a Response File for Offline Migration (Backup and Recovery)
Parent topic: Preparing for Database Migration
3.4.1 Preparing a Response File for Online Migration to an Oracle Cloud Infrastructure Target
Requirement | Description | Comments |
---|---|---|
Prepare the response file for online migration |
Get the response file template from
|
For example, copy the response file to
$ZDM_HOME/rhp/zdm/template/zdm_template_ZDM12201.rsp
and add values to the settings based on source and target as shown
below.
You can find a sample
response file in
|
Parent topic: Prepare the Response File Template
3.4.2 Preparing a Response File for Online Migration to an Exadata Cloud Service Target
Requirement | Description | Comments |
---|---|---|
Prepare the response file for online migration |
Get the response file template from
|
For example, copy the response file to
$ZDM_HOME/rhp/zdm/template/zdm_template_ZDM12201.rsp
and add values to the settings based on source and target as shown
below.
You can find a sample
response file in
|
Parent topic: Prepare the Response File Template
3.4.3 Preparing a Response File for Online Migration to an Exadata Cloud at Customer Target
Requirement | Description | Comments |
---|---|---|
Prepare the response file for online migration |
Get the response file template from
To prepare the response file for an Exadata Cloud at Customer target with Zero Data Loss Recovery Appliance Backup, set the following parameters.
To prepare the response file for an Exadata Cloud at Customer target with Object Storage Service backup, set the following parameters.
To prepare the response file for an Exadata Cloud at Customer target with NFS Backup, set the following parameters.
|
For example, copy the response file to
$ZDM_HOME/rhp/zdm/template/zdm_template_ZDM12201.rsp
and add values to the settings based on source and target as shown
below.
You can find a sample response file in
|
Parent topic: Prepare the Response File Template
3.4.4 Preparing a Response File for Offline Migration (Backup and Recovery)
Requirement | Description | Comments |
---|---|---|
Prepare the response file for offline migration (using Backup and Recovery) |
Get the response file template from
|
For example, copy the response file template to
You can find a sample response file in
|
Parent topic: Prepare the Response File Template
3.5 Preparing for Automatic Application Switchover
Requirement | Description | Comments |
---|---|---|
Prepare for automatic application switchover | To minimize or eliminate service interruptions on the application after you complete the database migration and switchover, prepare your application to automatically switch over connections from the source database to the target database. |
In the following example connect string, the application connects to the source database, and when it is not available the connection is switched over to the target database.
On the source database, create the service, named
|
Parent topic: Preparing for Database Migration
3.6 Customizing a Migration Job
Requirement | Description | Comments |
---|---|---|
Customize the migration job |
You can customize the Zero Downtime Migration workflow by registering action scripts or plug-ins as pre-actions or post-actions to be performed as part of the operational phases involved in your migration job. The following topics describe how to customize a migration job. Registering Action Plug-ins Custom plug-ins must be registered to the Zero Downtime Migration service host to be plugged in as customizations for a particular operational phase. Determine the operational phase the given plug-in has to
be associated with, and run the What happens at runtime if the user action encounters an
error can be specified with the Use the Zero Downtime Migration software installed user
(for example,
In the above command, the scripts
Creating an Action Template After the user action plug-ins are registered, you create an action template that combines a set of action plug-ins which can be associated with a migration job. An action template is created using the
Create an image type that associates all of the user action plug-ins needed for the migration of the database. Once created, the image type can be reused for all migration operations for which the same set of plug-ins are needed. The base type for the image type created here must be
For example, you can create an image type
Updating Action Plug-ins You can update action plug-ins registered with the Zero Downtime Migration service host. The following example shows you how to modify the user
action
This change is propagated to all of the associated action templates, so you do not need to update the action templates. Associating an Action Template with a Migration Job When you run a migration job you can specify the image type that specifies the plug-ins to be run as part of your migration job. As an example, run the migration command specifying the
action template By default, the action plug-ins are run for the specified
operational phase on all nodes of the cluster. If the access
credential specified in the migration command option
A typical
|
none |
Parent topic: Preparing for Database Migration