You are on page 1of 4

Transportable Tablespace!

1> Create tablespace.


2> Create new user with default tablespace as above tablespace.
3> Create few tables under this user.
4> Execute package DBMS_TTS.TRANSPORT_SET_CHECK ( should be self-contained)
5> Check for violations.
6> Make tablespace READ-ONLY
7> Export tablespace
8> Move dump and datafiles
9> Make tablespace online.
10> Connect to target database and create all users.
11> Import dump in database.

1> Create tablespace Chetan_tbs

2> Create user, with default tablespace Chetan_tbs.

3> Create few tables under schema Chetan.


4> Execute package by sys -
EXEC SYS.DBMS_TTS.TRANSPORT_SET_CHECK(ts_list => 'CHETAN_TBS',
incl_constraints => TRUE);

5> Check for violations. ( Tablespace will give violations if it’s not self contained)
See error screen shot for reference.

Below tablespace has shown violations, as it contains partition table in different


tablespace. ( This is just for reference !!!)

6> Make tablespace READ ONLY.


7> Export tablespace .
expdp \'/ as sysdba \' directory=data_pump_dir transport_tablespaces=chetan_tbs
dumpfile=chetan_tbs.dmp logfile=chetan_tbs.log

8> Move dump and all required datafiles to proper directory and server.

9> Make tablespace online.

10> Connect to Target database where you need to move tablespace and create all users.
11> Import dump in Database.

impdp \'/ as sysdba \' directory=data_pump_dir dumpfile=chetan_tbs.dmp


logfile=chetan_tbs_imp.log transport_datafiles='/u01/app/oracle/oradata/radical1/chetan01.dbf'

Check for all objects and Users in tablespaces!!!

==============================================================================

You might also like