未获得良好的阅读体验,请访问原文地址:传送门
导出服务器上oracle数据
sqlplus / as sysdba
create user test; identified by test;
grant connect,resource,dba to test;
exp test/test@XE file=d:\test.dmp full=y;
2 将数据库中system用户与sys用户的表导出
exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)
3 将数据库中的表table1 、table2导出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)
导入 (本地环境cmd)
imp system/manager@TEST file=d:\daochu.dmp ignore=y
imp system/manager@TEST file=d:\daochu.dmp tables=(table1) ignore=y