get_sample_migration_xml

Generates a sample XML migration file at the specified directory location that demonstrates source and destination mappings, based on the chosen migration method.

Format

emcli get_sample_migration_xml
      -migration_type=<migration type>
      [-file_name=<file name>]
      [-directory=<directory path>]

[ ]  indicates that the parameter is optional.

Options

  • migration_type

    Specifies the migration method, as follows:

    • ONLINE_DATAGUARD: Data Guard Physical Standby (minimal downtime)

    • RMAN_CLONE: RMAN Clone

    • OFFLINE_DATAPUMP: Data Pump (full or schema) Export and Import (cross-platform)

    • ONLINE_TTS: Full Transportable Export and Import (minimal downtime, cross-platform)

  • file_name

    Name of the sample migration file. Defaults to xml if no extension is specified. Defaults to SampleMigrationXML.xml if no file name is specified.

  • directory

    Where to save the sample file. Defaults to the current directory if no directory is specified.

Exit Codes

0 if successful. A non-zero value indicates that verb processing was unsuccessful.

Examples

Example 1

The following example generates a sample XML migration file named SampleMigrationXML.xml in the current directory. The sample migration uses the Data Guard migration method.

emcli get_sample_migration_xml 
      -migration_type="ONLINE_DATAGUARD" 

Example 2

The following example generates a sample XML migration file named RMANMapping.xml in the /scratch/migrations directory. The sample migration uses the RMAN Clone migration method.

emcli get_sample_migration_xml
      -migration_type="RMAN_CLONE"
      -file_name="RMANMapping"
      -directory="/scratch/migrations"