Previous Next JavaScript must be enabled to correctly display this content

## 6.9 Migrating the Database

After following the pre-requsisites and after creating a response file, follow this sample migration command with the minimum required options and replace it with the values pertaining to your environment:

    $ZDM_HOME/bin/zdmcli migrate database
    -sourcesid source_oracle_sid
        (use this parameter if the source is a single instance DB without Grid
        Infrasctructure)
    otherwise use
    -sourcedb source_db_unique_name_value (use this
        parameter is the source is configured with Grid Infrastructure)
    -sourcenode
        source-db-host-name
    -srcauth zdmauth
    -srcarg1 user:source_database_server_login_user_name
    -srcarg2 identity_file:ZDM_installed_user_private_key_file_location
    -srcarg3 sudo_location:/bin/sudo
    -targetnode target-db-host-name
    -rsp /home/zdmuser/hybrid_online.rsp
    -tgtauth zdmauth
    -tgtarg1 user:target_database_server_login_user_name
    -tgtarg2 identity_file:ZDM_installed_user_private_key_file_location
    -tgtarg3 sudo_location:/usr/bin/sudo