用oracle10G导出oracle11G DMP 和导入方法

来源:互联网 发布:天猫淘宝双十一晚会 编辑:程序博客网 时间:2024/06/06 03:20

1、导出前先清理表

清理空表,用如下语句查出需要处理表,之后执行sql
1  select 'alter table '||table_name||' allocate extent;'
from user_tables WHERE SEGMENT_CREATED='NO';

2  删除无效的dblink
导出表
exp userid=ats/123456@10.60.44.23/atstest file=e:\exam.dmp log=e:\exam.log

exp userid=abictest/123456@10.60.44.23/atstest  file=e:\abictest.dmp log=e:\exam.log
导入表
imp userid=ats/ats@127.0.0.1/ats fromuser=ats touser=ats file=e:\exam.dmp log=e:\imexam.log

导出表
exp userid=4icc/123456@10.70.44.33/atstest file=e:\M.dmp log=e:\exam.log tables=M_ACCOUNT
导入表
imp userid=ats/ats@127.0.0.1/ats fromuser=picc touser=ats file=e:\s3.dmp log=e:\imexam.log


如果是从11G导出的dmp,10G是无法导入的


0 0
原创粉丝点击