QuestionQ111

VerifiedTransporting Data

You want to transport the UNIVERSITY tablespace from one database to another. The UNIVERSITY tablespace is currently open read/write. The source and destination platforms have the same endian format.

Consider the following list of steps:

  1. Make the UNIVERSITY tablespace read-only on the source system.
  2. Export the UNIVERSITY tablespace metadata using EXPDP.
  3. Create a cross-platform backup set from the UNIVERSITY tablespace on the source system, using an RMAN command that includes the DATAPUMP clause.
  4. Copy the cross-platform backup sets to the destination system.
  5. Copy the Data Pump dump set from the source to the destination system.
  6. Restore the cross-platform backup set on the destination system using an RMAN command that includes the DATAPUMP clause.
  7. Import the UNIVERSITY tablespace metadata using IMPDP.
  8. Make the UNIVERSITY tablespace read/write on the destination system.

What is the minimum number of steps required, in the correct order, to transport the UNIVERSITY tablespace?

Explanation

RMAN's cross-platform transport feature lets a single BACKUP command, when given the FOR TRANSPORT (or TO PLATFORM) clause together with the DATAPUMP clause, simultaneously generate the datafile backup set and the Data Pump dump file containing the tablespace metadata. Because both artifacts are produced together, only one file transfer step is needed, and the corresponding RESTORE command with the DATAPUMP clause on the destination performs both the datafile restore and the Data Pump metadata import in one operation. This eliminates the need for the standalone EXPDP/IMPDP steps and separate dump-file copy step. The tablespace must still be switched to read-only before the backup is taken and back to read/write after the restore completes, since transportable tablespace operations require the tablespace to be read-only during the transport window. Thus the minimal, correctly ordered sequence is: make read-only, create the cross-platform backup set with DATAPUMP clause, copy the backup set to the destination, restore it there with the DATAPUMP clause, and make it read/write again — steps 1, 3, 4, 6, 8.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!