Transporting tablespaces using 11g Data Pump

3,225 views

Published on

Step by Step tutorial to Transport a Tablespace to another database using 11g Data Pump.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
3,225
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
127
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transporting tablespaces using 11g Data Pump

  1. 1. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor TRANSPORTING TABLESPACES USING DATAPUMPConsiderations: Operating System : Windows 7 Oracle Database : 11g Source Database : ORCL Destination Database : CLONE Tablespace : NEW_TBS1) Create and Configure a Directory at Source C:>MKDIR DUMP_DIR C:>SET ORACLE_SID=ORCL C:>SQLPLUS / AS SYSDBA SQL>CREATE DIRECTORY DUMP_DIR AS ‘C:DUMP_DIR’;2) Make Tablespace read only SQL>ALTER TABLESPACE NEW_TBS READ ONLY;3) Export Tablespaces using Datapump C:>EXPDP DIRECTORY=DUMP_DIR TRANSPORT_TABLESPACES=NEW_TBS DUMPFILE=’NEW_TBS.DUMP’ <When prompt for User/Password : sys/oracle as sysdba>4) Copy Data file/s from Source to Destination C:>COPY %ORACLE_BASE%ORADATAORCLNEW_TBS01.DBF %ORACLE_BASE%ORADATACLONENEW_TBS01.DBF <Make sure ORACLE_BASE environment variable is properly set>5) Create and Configure a Directory at Destination C:>SET ORACLE_SID=CLONE C:>SQLPLUS / AS SYSDBA SQL>CREATE DIRECTORY DUMP_DIR AS ‘C:DUMP_DIR’;6) Import Tablespace using Datapump C:>IMPDP DIRECTORY=DUMP_DIR DATAFILES=C:APPAHMERORADAT ACLONENEW_TBS01.DBF DUMPFILE=NEW_TBS.DUMP <When prompt for User/Password : sys/oracle as sysdba> 1|Pa ge
  2. 2. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor7) Make Tablespaces Read Write C:>SET ORACLE_SID=ORCL C:>SQLPLUS / AS SYSDBA SQL> ALTER TABLESPACE NEW_TBS READ WRITE; SQL>EXIT C:>SET ORACLE_SID=CLONE C:>SQLPLUS / AS SYSDBA SQL>ALTER TABLESPACE NEW_TBS READ WRITE; 2|Pa ge

×