oracle 数据迁移(12c导入11g)

//高版本向低版本导出数据(12c导入11g),要制定oracle版本号
//创建目录
create or replace directory exppump as '/home/pycy/expdp'; 
//导出
expdp USER/PASS@msmpdb171 dumpfile=exppump:test.DMP nologfile=Y version=11.2.0.2.0
//压缩
zip -r test.zip ./test.DMP
//下载
sz test.zip
//将压缩包里的DMP文件解压到下面的目录中
E://expdp
//创建目录
create or replace directory exppump as 'E://expdp'; 
//导入(表空间中存在某张表,那么DMP文件不会将该表导入)
impdp USER/PASS@XE dumpfile=exppump:test.DMP full=y

发布了69 篇原创文章 · 获赞 17 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/qq_27404929/article/details/83651008