将表导入到其他用户的impdp命令
生活随笔
收集整理的這篇文章主要介紹了
将表导入到其他用户的impdp命令
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
今天需要另一個數(shù)據(jù)庫的用戶表導入到當前庫中,但用戶名不相同,以前exp/imp時,可以指定fromuser和touser來解決,在expdp中也提供了類似的解決方法
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
幾個重要參數(shù)的說明一下:
1、remap_user 重新映射用戶,格式:
source_user1:target_user1,source_user2:target_user2
2、remap_tablespace 重新映射表空間
3、 table_exists_action 表已經(jīng)存在的動作 有效關鍵字: (SKIP), APPEND, REPLACE 和 TRUNCATE。
4、exclude=object_grant 跳過對象授權
總結
以上是生活随笔為你收集整理的将表导入到其他用户的impdp命令的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Aix修改系统时间
- 下一篇: exp/expdp中query参数的使用