Troubleshooting the Oracle NoSQL Database Migrator
Learn about the general challenges that you may face while using the , and how to resolve them.
Migration has failed. How can I resolve this?
A failure of the data migration can be because of multiple underlying reasons. The important causes are listed below:
Table 1-5 Migration Failure Causes
Error Message | Meaning | Resolution |
---|---|---|
Failed to connect to Oracle NoSQL Database |
The migrator could not establish a connection with the NoSQL Database. |
|
Failed to connect to Oracle NoSQL Database Cloud Service |
The migrator could not establish a connection with the Oracle NoSQL Database Cloud Service. |
|
Table not found |
The table identified for the migration could not be located by the NoSQL Database Migrator. |
For the Source:
For the Sink:
|
DDL Execution failed |
The DDL commands provided in the input schema definition file is invalid. |
|
failed to write record to the sink table
with java.lang.IllegalArgumentException |
The input record is not matching with the table schema of the sink. |
|
Request timeout |
The source or sink's operation did not complete within the expected time. |
|
What should I consider before restarting a failed migration?
When a data migration task fails, the sink will be at an intermediate state containing the imported data until the point of failure. You can identify the error and failure details from the logs and restart the migration after diagnosing and correcting the error. A restarted migration starts over, processing all data from the beginning. There is no way to checkpoint and restart the migration from the point of failure. Therefore, NoSQL Database Migrator overwrites any record that was migrated to the sink already.
Migration is too slow. How can I speed it up?
The time taken for the data migration depends on multiple factors such as volume of data being migrated, network speed, current load on the database. In case of a cloud service, the speed of migration also depends on the read throughput and the write throughput provisioned. So, to improve the migration speed, you can:- Try to reduce the current workload on your Oracle NoSQL Database while migrating the data.
- Ensure that the machine that is running the migration, source, and sink all are located in the same data center and the network latencies are minimal.
- In case of Oracle NoSQL Database Cloud Service, provision high read/write
throughput and verify if the storage allocated for table is sufficient or not.
If the NoSQL Database Migrator is not creating the table, you can increase
the write throughput. If the migrator is creating the table, consider specifying
a higher value for the
schemaInfo.writeUnits
parameter in the sink configuration. Once the data migration completes, you can lower this value. Be aware of daily limits on throughput changes. see Cloud Limits and Sink Configuration Templates.
I have a long running migration involving huge datasets. How can I track the progress of the migration?
You can enable additional logging to track the progress of a
long-running migration. To control the logging behavior of Oracle NoSQL Database Migrator, you must set the desired level of logging in the
logging.properties
file. This file is provided with the NoSQL Database Migrator package and available in the directory where the Oracle NoSQL Database Migrator was unpacked. The different levels of logging are
OFF, SEVERE, WARNING, INFO, FINE,
and ALL
in
the order of increasing verbosity. Setting the log level to OFF
turns off all the logging information, whereas setting the log level to
ALL
provides the full log information. The default log level is
WARNING
. All the logging output is configured to go to the
console by default. You can see comments in the logging.properties
file to know about each log level.