今天需要另一个数据库的用户表导入到当前库中,但用户名不相同,以前exp/imp时,可以指定fromuser和touser来解决,在expdp中也提供了类似的解决方法
[@more@]impdp system/zlsoft dumpfile=expdp:EXPDP_ZLHIS.DMP nologfile=y tables=zlhis.dept remap_schema=zlhis:scott remap_tablespace=ZL9BASEITEM:users,zl9indexhis
:users,zl9indexmtl:users table_exists_action=truncate exclude=object_grant
几个重要参数的说明一下:
1、remap_user 重新映射用户,格式:
source_user1:target_user1,source_user2:target_user2
2、remap_tablespace 重新映射表空间
3、 table_exists_action 表已经存在的动作 有效关键字: (SKIP), APPEND, REPLACE 和 TRUNCATE。
4、exclude=object_grant 跳过对象授权
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7839206/viewspace-1008693/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7839206/viewspace-1008693/
本文介绍如何使用Oracle的expdp工具将一个数据库中的用户表迁移到另一个数据库中,并通过指定参数实现用户、表空间的映射及表存在时的处理方式。
1374

被折叠的 条评论
为什么被折叠?



