GGP_DWS专栏

笑古笑今,笑东笑西笑南北,笑来笑去,笑自己原来无知无识;观事观物,观天观地观日月,观前观后,观他人总是有高有低

导航

[导入]Oracle导入导出方法

Posted on 2005-11-18 02:25  GGP_DWS  阅读(2259)  评论(0)    收藏  举报

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

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


文章来源:http://blog.csdn.net/dwsjs/archive/2005/11/17/531766.aspx