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 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:
From the Options dropdown of a metric chart, select
Create an Alarm on this Query.
On the Create Alarm page, under Define
Alarm, add the trigger.
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.
Confirm the values for Metric dimensions. Optionally,
click + Additional dimension to add another dimension to
the alarm.
For Trigger rule, complete the
Operator, Value, and
Trigger delay minutes fields. The graph displays the
boundaries for which the alarm triggers a notification.
For Notifications, complete the fields as needed:
For Destination service, select
Notifications Service.
For Compartment, select the compartment to store
the topic used for this notification.
For Topic, click Create
topic to set up a topic and subscription protocol in the
designated compartment using the designated Destination service.
(Optional) Click + Additional destination service
to add another destination service.
(Optional) Enable Repeat Notification and select
Notification Interval if you want the alarm
to resend notifications at the specified intervals when the alarm is in
the firing state.
(Optional) Enable Suppress Notifications to
specify a window of time to suspend evaluations and notifications. This
is useful for maintenance periods.
The Database Migration Jobs Details page
provides detailed error information and access to logs for troubleshooting
performance.
Database Migration Service Job Log
Database Migration Service generates a log during every migration
job.
On the Migration Details page, click
Jobs, and then click
Download Log to download the log.
Data Pump Logs
On the Migration Details page, click Jobs, and
then click Phases under the Resources
section.
Should a problem arise during the Data Pump Export or Data Pump Import
phases of a migration job, the phase name is displayed as a
clickable hyperlink.
There are two ways to access the log:
Click the action menu (three dots) and click
Download Datapump Log
Click the phase name, which opens the
View Details panel, on
which you can find the Download Datapump
Log button.
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.
Work Request Details 🔗
The Database Migration Jobs Details and Migration Details pages provide a
resource work request list.
The Work Requests list allows you to monitor long-running operations such as
resource creation, update, validation, cloning, or deletion. Click the work
request in the list to go to the Work Request Details page and view more
detailed information.
For more information about OCI work requests, see Work Requests
Troubleshooting Connection Creation Failures 🔗
In Oracle Cloud Infrastructure Database Migration, if you have a Connection (odms-connection) resource in failed state use the following steps to gather more details about the failure.
Get the connection OCID.
Using the OCI Web Console:
Go to the OCI Console, and open Database Migration Service/Database Connections (for example, https://console.us-phoenix-1.oraclecloud.com/odms/registrations).
Locate the failed Connection in the list, and select Copy
OCID from the Actions (three dots) menu.
Using Oracle Database Migration Service (database-migration)
OCI Command line interface:
The compartment OCID where the failed connection was created is required.
List all connection resources and find the failure:
oci database-migration connection list -c `compartmentOCID`
If you know the connection display name, you can use it to filter
results:
oci database-migration connection list -c `compartmentOCID` --display-name `connectionDisplayName`
Get the Work Request OCID associated with the connection creation request.
Using Oracle Database Migration Service (database-migration)
OCI Command line interface:
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:
oci database-migration work-request list --resource-id odms-connection-OCID --compartment-id odms-connection-compartment-OCID
Use the compartment OCID to list the work requests
of the compartment:
oci database-migration work-request list --compartment-id odms-connection-compartment-OCID
Use the sort-by option to sort the
results by displayName or
timeCreated:
oci database-migration work-request list --compartment-id odms-connection-compartment-OCID --sort-by displayName
Use the sort-order option with
asc or desc:
oci database-migration work-request list --compartment-id odms-connection-compartment-OCID --sort-oder ASC
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:
In Oracle Cloud Infrastructure Database Migration, if you have a Migration
(odms-migration) resource in failed state use the following steps to gather more details
about the failure:
Get the migration OCID.
Using the OCI Web Console:
Go to the OCI Console, and open Database Migration
Service/Migrations (for example,
https://console.us-phoenix-1.oraclecloud.com/odms/migrations).
Locate the failed Migration in the list, and select Copy
OCID from the Actions (three dots) menu.
Using Oracle Database Migration Service (database-migration)
OCI Command line interface:
The compartment OCID where the failed migration was created
is required.
List all migration resources and find the
failure:
oci database-migration migration list -c `compartmentOCID`