Table Space Management   «Prev  Next»

Transportable Tablespaces in Oracle 26ai - Exercise

Objective: Write the SQL and Data Pump parameters needed to create a locally managed tablespace, validate its transport set, and prepare its metadata and datafiles for transport.

Background and Overview

A reporting application needs a copy of a dataset stored in NEWSPACE. First design the source tablespace. Then assume application objects have been loaded into it and prepare a conventional transportable-tablespaces export from the source PDB.

This is a written, unscored exercise. The form displays your answer beside a reference solution; it does not execute SQL, transfer files, or connect to a database. No simulation or screenshot is required.

Scenario and Prerequisites

The file sizes are teaching values. A 20M extent size and a 20M autoextension increment are separate settings even though their numbers match.

Your Tasks

  1. Write the source CREATE TABLESPACE statement using all the specified storage settings.
  2. After the assumed data load, call DBMS_TTS.TRANSPORT_SET_CHECK for NEWSPACE with constraints included and a full check. Query TRANSPORT_SET_VIOLATIONS and explain what to do if rows are returned.
  3. Write the statement that changes NEWSPACE to READ ONLY and a query that verifies its status. State how long you will maintain this source state for the conventional export and copy operation.
  4. Write the contents of newspace_export.par using DP_DIR, dump file newspace_meta.dmp, log file newspace_export.log, NEWSPACE as the transport set, and strict transport checking. Retain the default eligible metadata selection; do not add legacy trigger, constraint, or grant switches.
  5. Write the operating-system command that starts Data Pump Export through srcpdb using that parameter file. Omit the password so the utility prompts for it.
  6. Write a query that inventories NEWSPACE datafiles. In a short handover note, identify what must be transferred and describe the target preparation, import, validation, and final mode selection needed to complete transport.

Hints

Use expdp and TRANSPORT_TABLESPACES. A transport metadata dump does not contain the datafile contents. The parameter file is read by the Data Pump client; DP_DIR identifies a server-side location for the dump and log.

Review Transportable Tablespaces in Oracle 26ai for the workflow. Label SQL, parameter-file contents, and operating-system commands separately in your answer.

Submit Your Answer