oracle 如何使用 REMAP_TABLE 重命名多个表名
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/41918818/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 03:22:33 来源:igfitidea点击:
How to rename multiple table names with REMAP_TABLE
提问by Meisam
I have a dump file which contains several tables (A, B, C).
我有一个包含多个表(A、B、C)的转储文件。
How can I rename these tables (A -> x, B -> y, C -> z) during data import?
如何在数据导入期间重命名这些表 (A -> x, B -> y, C -> z)?
回答by Meisam
Remapping multiple table names is possible with comma separated table names as following example:
可以使用逗号分隔的表名重新映射多个表名,如下例所示:
impdp user/pass directory=my_dp_dir remap_schema=src_schema:dest_schema
REMAP_TABLESPACE=src_ts:dest_ts
REMAP_TABLE=src_schema.A:x,src_schema.B:y,src_schema.C:z
dumpfile=dump_file.dmp logfile=impdp.log