Monday, September 28, 2009
DataPump Command EXCLUDE/INCLUDE/REMAP_SCHEMA
Export the schema but leave two of the big tables out.
expdp scott/tiger DIRECTORY=DATA_PUMP dumpfile=scott%u.dmp filesize=5G JOB_NAME=SCOTT_J1 SCHEMAS=SCOTT EXCLUDE=TABLE:\"IN \(\'EMPLOYEE\', \'DEPT\'\)\"
You exported from SCOTT schema and now wanted to import some tables into a different schema (SMITH) and into different tablespaces
impdp SMITH/PASSWORD directory=data_pump dumpfile=scott%u.dmp REMAP_SCHEMA=SCOTT:SMITH REMAP_TABLESPACE=SCOTT_DATA:SMITH_DATA REMAP_TABLESPACE=SCOTT_IDX:SMITH_IDX TABLES=TABLE1, TABLE2, TABLE3
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment