X

Database Migration to Oracle Cloud Infrastructure: Configuring the Cloud Backup Module for Existing or Fresh Backups

Rohit Chandok
Cloud Architect at OCI Development

 


This post is part of the “Database Migration to Oracle Cloud Infrastructure blog series", which includes the posts related to database migration. Use these posts as building blocks for various migration approaches.

For more information on Oracle Database and Exadata Cloud Services, review the details at Oracle Cloud Infrastructure - Database


 

Backups are an integral part of any migration, and this is also true when you are planning for your database migration to Oracle Cloud Infrastructure. Use the following guidance to help you with the planning and consumption of your backups for your database migration.

Using Existing Backups for Migration

Unless existing backups are already in an Oracle Cloud Infrastructure Object Storage bucket, transfer the backups from your on-premises environment, Oracle Cloud Infrastructure Classic, or another cloud provider by using the guidance provided in the Planning for Database Backup Transfers to Object Storage blog post.

If the existing backups are located in a supported object store, such as Oracle Cloud Infrastructure Object Storage Classic, then based on your data volume, network bandwidth, and network reliability, you can point the Oracle Database Cloud Backup Module to that object store bucket and complete the migration without needing to transfer these backups to Oracle Cloud Infrastructure first.

Using Fresh Backups for Migration

For fresh backups, we recommend configuring the Oracle Database Cloud Backup Module to point to the backup bucket in Oracle Cloud Infrastructure Object Storage.

Note: Based on your data volume, network bandwidth, and network reliability, if fresh backups take longer than 1 to 2 weeks, consider using the Data Transfer service.

The following steps provide an example of how to configure the Cloud Backup Module to point to the Object Storage backup bucket. For details, including the variables and command shown, see Installing the Oracle Database Cloud Backup Module.

 

  1. Set the required environment variables using appropriate values for your environment.

    sudo su - oracle
    
    mkdir -p /home/oracle/cbm/cbm_lib
    
    export vcbm_opcinstalljar=/opt/oracle/oak/pkgrepos/oss/odbcs/opc_install.jar
    export vcbm_wallet=/home/oracle/cbm/cbm_wallet
    export vcbm_lib=/home/oracle/cbm/cbm_lib
    export vcbm_config=/home/oracle/cbm/cbm_config
    export vcbm_host=https://swiftobjectstorage.us-phoenix-1.oraclecloud.com/v1/<>
    export vcbm_bucket='rohit-backups'
    export vcbm_svcac='<>'
    export vcbm_swiftpw='<>'

    For example (click image for larger view):


     
  2. Run the opc_install command to install and configure the Cloud Backup Module to point to the backup bucket.

    java -jar $vcbm_opcinstalljar -opcId $vcbm_svcac -opcPass $vcbm_swiftpw -container $vcbm_bucket -walletDir $vcbm_wallet -libDir $vcbm_lib -configfile $vcbm_config -host $vcbm_host    

    For example (click image for larger view):