In part II of migration methods to ADB blog series, we will look into MV2ADB tool details and usage. If you haven't read the Part I, I would encourage you to read it to get basic knowledge on various solutions offered by Oracle and some of the prerequisites for on-premise database migration to ADB.
Move to Autonomous Database (aka MV2ADB) tool new tool introduced by Oracle to easily migrate on-premise Oracle database over Autonomous Database levering Oracle data pump capabilities. The tool automates data loading into Oracle Object storage and migrating the data into ADB by one-click option.
The picture below depicts the flow of data migration process using the MV2ADB tool:
Ensure following conditions are met before you launch the migration operation:
https://github.com/oracle/oci-cli
The MV2ADB tool can be installed on-premise using the RPM shown below:
# rpm -i mv2adb-2.0.1-X.noarch.rpm
Following is the directory structure of the tool:
# tree /opt/mv2adb/
/opt/mv2adb/
├── conf
| └── DBNAME.mv2atp.cfg
├── lib
| ├── MV2ADB_LoggingAndTracing.pm
| ├── MV2ADB_passwd.jar
| ├── MV2ADB_PFile.pm
| ├── MV2ADB_Queries.pm
| └── MV2ADB_Utils.pm
└── mv2adb
└── utils
├── install_adb_advisor.sql
└── premigration.jar
You can also download the tool zip file mv2adb-2.0.1-X.tar.gz from the MOS specified here and using below tar command to untar the file into a specific directory on the server.
tar xvfz mv2adb-2.0.1.X.tar.gz -C <target directory>
Before you use the tool, ensue the path is set correct, as shown below:
$ export MV2ADB_HOME=/home/oracle/mv2adb/mv2adb-2.0.1.x
Using command below, you can de-install the tool:
# rpm -e mv2adb-2.0.1-X.noarch
You can refer the log files for diagnose issues related to the tool:
"/opt/mv2adb/out/log"
MV2ADB supports following operational modes:
Courtesy MOS 2463574.1
Example with configuration file:
# ./mv2adb auto -conf conf/mv2atp.cfg
As mentioned the different operation modes, you can also use to export, copy, or import data using individual operation modes available with the tool. Refer the examples below:
# ./mv2adb expdp \
--dbcs //<host name/ip address>/DB122H1 \
--schemas SCHEMA_1,SCHEMA_2,SCHEMA_3,SCHEMA_4 \
--dumpname expdp.dmp --dumppath /tmp \
--ohome /u01/app/oracle/product/12.2.0.1/dbhome_1 \
--adbname RCATP \
--adbcfile /opt/mv2adb/source/Wallet_RCATP.zip \
# ./mv2adb impdp \
-ociregion us-phoenix \
-ocinamespace NAMESPACE_NAME \
-ocibucket BUCKET_NAME \
-ociid mail@corp.com \
-adbname RCATP \
-cfile /opt/mv2adb/source/Wallet_RCATP.zip \
-ichome /u01/app/oracle/product/instantclient_18_3 \
-dumpfile rcatp_exp_01.dmp,rcatp_exp_02.dmp \
-encryption \
-enctype AES256
For more usage Syntax and examples, refer MOS 2463574.1.
One of the advantages of MV2ADB is that the tool automatically install, configure and execute the Schema Advisor.
The tool can be used with configuration file or command line options.
References:
Move to Autonomous Database (aka MV2ADB) tool new tool introduced by Oracle to easily migrate on-premise Oracle database over Autonomous Database levering Oracle data pump capabilities. The tool automates data loading into Oracle Object storage and migrating the data into ADB by one-click option.
The picture below depicts the flow of data migration process using the MV2ADB tool:
Ensure following conditions are met before you launch the migration operation:
- HTTP connectivity between on-premise and Oracle object storage. Required to move dump files
- Download ADB credentials file
- Download and install latest Oracle client to have new version of expdp/impdp and other essential tools
- Perl >=5.10
- Perl-data-dumper
- Set java in execution path
- Also download and configure OCI CLI from the below link:
https://github.com/oracle/oci-cli
The MV2ADB tool can be installed on-premise using the RPM shown below:
# rpm -i mv2adb-2.0.1-X.noarch.rpm
Following is the directory structure of the tool:
# tree /opt/mv2adb/
/opt/mv2adb/
├── conf
| └── DBNAME.mv2atp.cfg
├── lib
| ├── MV2ADB_LoggingAndTracing.pm
| ├── MV2ADB_passwd.jar
| ├── MV2ADB_PFile.pm
| ├── MV2ADB_Queries.pm
| └── MV2ADB_Utils.pm
└── mv2adb
└── utils
├── install_adb_advisor.sql
└── premigration.jar
tar xvfz mv2adb-2.0.1.X.tar.gz -C <target directory>
Before you use the tool, ensue the path is set correct, as shown below:
$ export MV2ADB_HOME=/home/oracle/mv2adb/mv2adb-2.0.1.x
Using command below, you can de-install the tool:
# rpm -e mv2adb-2.0.1-X.noarch
You can refer the log files for diagnose issues related to the tool:
"/opt/mv2adb/out/log"
MV2ADB supports following operational modes:
- Auto Operations
- ExpDP Operations
- ImpDP Operation
- OCI Object Storage/Bucket Operations
- Database Schema Operations
- Encrypt Password Operations
The Auto operations (aka one command operation) automates the entire migration operation, performing the following individual operation:
- Schema based expdp from source database
- Upload the dump file over OCI object storage
- Loading data with impdp to ADB
Refer the below sytanx for parameters and usage:
Courtesy MOS 2463574.1
Example with configuration file:
# ./mv2adb auto -conf conf/mv2atp.cfg
As mentioned the different operation modes, you can also use to export, copy, or import data using individual operation modes available with the tool. Refer the examples below:
# ./mv2adb expdp \
--dbcs //<host name/ip address>/DB122H1 \
--schemas SCHEMA_1,SCHEMA_2,SCHEMA_3,SCHEMA_4 \
--dumpname expdp.dmp --dumppath /tmp \
--ohome /u01/app/oracle/product/12.2.0.1/dbhome_1 \
--adbname RCATP \
--adbcfile /opt/mv2adb/source/Wallet_RCATP.zip \
# ./mv2adb impdp \
-ociregion us-phoenix \
-ocinamespace NAMESPACE_NAME \
-ocibucket BUCKET_NAME \
-ociid mail@corp.com \
-adbname RCATP \
-cfile /opt/mv2adb/source/Wallet_RCATP.zip \
-ichome /u01/app/oracle/product/instantclient_18_3 \
-dumpfile rcatp_exp_01.dmp,rcatp_exp_02.dmp \
-encryption \
-enctype AES256
For more usage Syntax and examples, refer MOS 2463574.1.
One of the advantages of MV2ADB is that the tool automatically install, configure and execute the Schema Advisor.
The tool can be used with configuration file or command line options.
References:
No comments:
Post a Comment