在用impdp导入数据时,可以使用remap_schema参数将数据导入到不同于源schema的schema中,其作用类似于老的imp工具中的
fromuser和touser参数,impdp中将fromuser和touser参数合并成了remap_schema参数,通过如下的格式指定:
impdp … remap_schema=old_schema_name:new_schema_name
You want to move all the objects of the APPS user in the test database to the DBJJSER schema of the production
database.Which option of IMPDP would you use to accomplish this task?
A.FULL
B.SCHEMAS
C.REMAP_SCHEMA
D.REMAP_DATAFILES
E.REMAP_TABLESPACE
impdp 还有一个table_exists_action选项, 关于这个选项,有4个参数,分别为 skip、append、truncate、replace
skip 是如果已存在表,则跳过并处理下一个对象;
append是为表增加数据;
truncate是截断表,然后为其增加新数据;
replace是删除已存在表,重新建表并追加数据。