接着上一篇的来说:
一. 先说导入:
注:导入的大体模板:imp 用户名/密码@IP/服务名 file=文件导出路径 full=y ignore=y
imp ORACLEDEMO/ORACLEDEMO@localhost/ORCL file=f:\demo\demo1.dmp full=y ignore=y
二. 再说导出
注:导出的大体模板: exp 用户名/密码@服务名 file=文件导出路径
- 导出服务名(我的为ORCL)下所有数据:
exp system/666666@ORCL file=f:\demo\demo1.dmp full=y
- 导出用户(例如我创建的ORACLEDEMO用户)下所有数据:
exp system/666666@ORCL file=f:\demo\demo2.dmp owner=ORACLEDEMO
// 多个用户
exp system/666666@ORCL file=f:\demo\demo2.dmp owner=(ORACLEDEMO,CESHI)
- 导出数据表下的所有数据:
exp system/666666@ORCL file=f:\demo\demo2.dmp tables=student
// 多个表
exp system/666666@ORCL file=f:\demo\demo2.dmp owner=(student,teacher)