Oracle exp/imp 导入导出命令详解

参考自http://blog.csdn.net/lsyuan1989/article/details/50418665

https://blog.csdn.net/z1049186181/article/details/42391987

exp

exp userid=user_name/passwd@orcl owner=user_name  file=C:\user_name.dmp [rows=n]

 

EG:

exp userid=ZLHIS/his@orcl owner=ZLHIS file=C:\ZLHIS.dmp full=y

导出属于ZLHIS用户的所有表数据

exp userid=ZLHIS/his@orcl owner=ZLHIS file=C:\ZLHIS.dmp rows=n log=d:\daochulog.txt

导出表结构

exp zlhis/his@orcl rows=y indexes=y compress=n buffer=65536 feedback=100000 full=y file=d:\daochu.dmp log=d:\daochulog.txt owner=zlhis

导出zlhis用户下的所有表

exp PARFILE=C:/parfile.txt

C:/parfile.txt内容:

userid=ZLHIS/his@orcl
file=C:\ZLHIS.dmp
log=C:\ZLHIS.log
owner=ZLHIS

导出数据,参数从C:/parfile.txt中读取

 

PARFILE   参数文件,里面写导出参数,会自动读取参数文件进行导出

table

imp

imp  test/test@orcl  fromuser=test  touser=test rows=y  indexes=n commit=y  buffer=65536  ignore=n  file=exp.dmp  log=imp.log

解释:

rows      导入数据行,默认Y

indexes    导入索引,默认Y

commit     提交数组插入,默认N

ignore     忽略创建错误,默认N

buffer     数据缓冲区大小


EG:

imp ZLHIS/his@orcl fromuser=ZLHIS touser=ZLHIS rows=y buffer=65536 ignore=n file=C:\ZLHIS.dmp log=imp.log

 

posted @ 2020-05-19 16:03  士官长  阅读(879)  评论(0编辑  收藏  举报