当前位置:首页 > 数据库 > Oracle

oracle数据库导入导出

***********用工具导入(导出)数据
工具(T)—》导出表(X)
工具(T)—》导出表(X)


所选执行文件位置:
E:oracleproduct10.2.0db_1binimp.exe(exp.exe)




*********命令导入导出

oracle导入dmp文件命令:

(1)dmp文件中的数据导入数据库

1.首先进入cmd命令窗口
2.执行命令:imp userid=用户名/密码@数据库名 file=d:daochu.dmp full=y ignore=y

file:就是你要导入的dmp文件全路径。
full=y 是否全部导入只有当前用户是dba的时候才能用此选项 。
已经存在的表,导入时会报错,对该表就不进行导入,在后面加上 ignore=y 就可以了。

(2)将dmp中的表userTable导入
imp 用户名/密码@数据库名  file=d:daochu.dmp  tables=(userTable)



oracle导出dmp文件命令:

(1)数据全部导出
exp 用户名/密码@数据库名 file=d:daochu.dmp full=y
(2)将表导出
exp 用户名/密码@数据库名 file=d:daochu.dmp tables=(table1,table2)
(3)将table1表中的ID字段以"0000"开头导出
exp 用户名/密码@数据库名 file=d:daochu.dmp tables=(table1) query=/" where ID like ‘0000%‘/"

原文:http://blog.csdn.net/u012406790/article/details/40344245


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐