首页 > 数据库 > Oracle > 用impdp同步数据库
将来如需将正式数据库的资料往测试资料去导数据,或同步数据
在目的端:
SYS>CREATE OR REPLACE DIRECTORY
datadump_file AS
'C:oracleproduct10.2.0oradatalocal10dpdump';
SYS>grant READ, WRITE ON DIRECTORY datadump_file to system;
SYSTEM>create database link "DB107_PBR"
connect to PBR
identified by "pbr"
using 'ORCL_107';
在远程端:
SYS>grant exp_full_database to pbr;
在目的端:
C:>impdp system/sys schemas=pbr network_link=db107_pbr directory=datadump_file
remap_schema=pbr:pbr1 remap_tablespace=pbrspace:users table_exists_action=replace
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/271283/viewspace-983168/ ,如需转载,请注明出处,否则将追究法律责任。