如果你有一个苹果,我有一个苹果,我们交换以后还是一人一个苹果,但如果你有一种思想,我有一种思想,我们交换以后,每个人便拥有了两种思想。

Oracle导入导出方法

上一篇 / 下一篇  2008-04-29 13:39:08 / 个人分类:测试技术

导出表:
exp
scott/tiger@mycontables=(dept,emp) file=tab1.dmp
导出用户:
exp
system/manager@myconōwner=scott file=usr1.dmp
导出数据库:
1.完全导出
exp
system/manager@myconfull=y inctype=complete    file=full1.dmp
2.增量导出
exp
system/manager@myconfull=y inctype=incremental file=inc1.dmp
3.累积导出
exp
system/manager@myconfull=y inctype=cumulative file=cum1.dmp

imp example:
导入表:
imp
system/manager@myconfile=c:\tab1.dmp tables=(dept,emp) touser=scott
导入用户:
imp
system/manager@myconfile=usr1.dmp fromuser=scott touser=scott
导入数据库:
1.全库导入
imp
system/manager@myconfile=full1.dmp full=y
2.增量导入
1)导入数据库最新信息
imp
system/manager@myconinctype=system full=y file=inc7.dmp
2)导入最近完全导出文件
imp
system/manager@myconinctype=restore full=y file=full1.dmp
3)导入所有累积导出文件
imp
system/manager@myconinctype=restore full=y file=cum1.dmp
4)导入最近一次增量导出的文件
imp
system/manager@myconinctype=restore full=y file=inc1.dmp


TAG: 测试技术

 

评分:0

我来说两句

Open Toolbar