4 Migrate the Database
The following topics instruct you on running the migration job.
4.1 Evaluate the Database Migration Process
Requirement | Description | Comments |
---|---|---|
Verify prechecks and setup |
To evaluate the database migration process, use the
Have the completed response file available, and have the necessary credentials ready, such as the source database SYS password, Object Store (Bucket) swift authentication token, and, if the source server is accessed through the root user, then root user password. If connectivity to the source database server users root credentials, then the command is
If connectivity to the source database server uses an SSH key, then the command is:
Note that if a source single instance database is
deployed without a Grid Infrastructure home, then in the above
command use Also, if a source database is configured for a The The |
It is highly recommended that for each migration you run
Zero Downtime Migration performs the following pre-checks.
Example For the prompts, specify the source database SYS password. If the backup destination is Object Store (Bucket), then specify the your swift authentication token. If the backup destination is Storage Classic (Container), then specify your tenancy login password. If the source server is accessed using the root user, then specify the root user password. If connectivity to the source database server uses the root credentials then command would be
Then the following message is displayed with the job ID number. Make note of the job ID number for later use.
If connectivity to the source database server uses an SSH key, then command is
Then the following message is displayed with the job ID number. Make note of the job ID number for later use.
See Prechecks Verification for sample command output. |
Parent topic: Migrate the Database
4.2 Query the Migration Job Status
Requirement | Description | Comments |
---|---|---|
Query the migration job status |
You can query the migration job status while the job is running. Query the status of a database migration job using the
You can find the migration job console output in the file
(Result file path:), given in the
|
For example
|
Parent topic: Migrate the Database
4.3 Migrate the Database
Before submitting the database migration job, ensure that the evaluation migration job is successful to determine how the process may fare with your configuration and settings. If the evaluation migration job is not sucessful, then this migration job will not be successful.
Determine if the migration process needs to be paused and resumed before you start the database migration. Once the migration job is started, the job system runs the job as configured. If the migration job needs to pause and resume at a particular point, then see List Migration Job Phases, Pause and Resume a Migration Job, and Rerun a Migration Job for instructions.
Requirement | Description | Comments |
---|---|---|
Migrate the database |
To migrate the database, have the completed response file, and keep the necessary credentials ready, such as the source database SYS password, Object Store (Bucket) swift authentication token, and if the source database server is accessed using the root user, then have the root user password. If connectivity to the source database server uses the root credentials then the command is:
If connectivity to the source database server uses an SSH key, then the command is:
Note that if a source single instance database is
deployed without a Grid Infrastructure home, then in the above
command use Also, if a source database is configured for a The |
Example For the prompts, specify the source database SYS password. If the backup destination is Object Store (Bucket), then specify your swift authentication token. If the backup destination is Storage Classic (Container), then specify your tenancy login password. If source server is accessed using the root user, then specify the root user password. If connectivity to the source database server uses root credentials then command is
Then the following message is displayed with the job ID number. Make note of the job ID number for later use.
If connectivity to the source database server uses an SSH key, then command is
Then the following message is displayed with the job ID number. Make note of the job ID number for later use.
Query the migration job status using the following command.
See Migration Job Output for sample command output. |
Parent topic: Migrate the Database
4.4 List Migration Job Phases
Requirement | Description | Comments |
---|---|---|
List migration job phases |
To list the operation phases involved in the migration
job, add the For example
|
See List Migration Job Phases for sample command output. |
Parent topic: Migrate the Database
4.5 Pause and Resume a Migration Job
Requirement | Description | Comments |
---|---|---|
Pause and resume a migration job |
You can pause a migration job at any point after the
To pause a migration job, specify the
Pausing after the For example, if you specify
A paused job can be resumed any time by running the
To schedule another pause, specify the
The
Note that the |
Note: After the phase For example, to pause at another place when resuming the migration job:
|
Parent topic: Migrate the Database
4.6 Rerun a Migration Job
Requirement | Description | Comments |
---|---|---|
Rerun a migration job |
If there are unexpected errors in the migration workflow, you can correct them and rerun the migration job. The errors are recorded in the job output, which can be
queried using the Rerun the migration job by running the
|
For example:
|
Parent topic: Migrate the Database
4.7 Post-Migration Tasks
Requirement | Description | Comments |
---|---|---|
Run the datapatch utility on the target database |
After you complete the database migration job, if the target database environment is at a higher patch level than the source database, you must run the datapatch utility on the target database. For example, if your source database is at Oct 2018 PSU/BP and the target is at Jan 2019 PSU/BP), you must run the datapatch utility. Before running datapatch on the target, ensure you apply the target patch level to the binaries at the source (standby) database. If you are running a multitenant architecture, open the PDBs.
It is recommended that you run datapatch on all of the PDBs; however, if you only want to open a subset of the PDBs in the CDB, you can use the following command instead. Datapatch only runs on the CDB and opened PDBs.
To run datapatch on a PDB later (previously skipped or
newly plugged in), open the database using the Go to the OPatch directory in
The datapatch utility runs the necessary apply scripts
to load the modified SQL files into the database. An entry is added
to the Check for errors. Error logs are located in the
where |
none |
Register the Exadata Cloud Service database |
This requirement is applicable only for migrations to an Exadata Cloud Service target. Register the Exadata Cloud Service database, and make sure its meets all of the requirements. Run the following commands on the Exadata Cloud Service database server as the root user.
|
For example
|
Apply patches | Make sure that you can apply the patches to migrated database, using either the console or commands and APIs provided by the target platform. | none |
Create backups | Make sure that you can back up the migrated database, using either the console or commands and APIs provided by the target platform. | none |
Parent topic: Migrate the Database