使用cmd->sqlplus,在dos窗口中导出、导入数据库.dmp文件; - yanch1
使用cmd->sqlplus,在dos窗口中导出、导入数据库.dmp文件;
2018-03-30 15:07
yanch1
阅读(7159)
评论(0)
编辑
收藏
举报
–导出整个数据库、指定用户下的对象、指定表
1,将数据库ORACLE完全导出,sqlplus用户名system密码manager 导出到c:\daochu.dmp中
>exp system/manager@ORACLE file=c:\daochu.dmp full=y
2,将数据库中RFD用户与,JYZGCX用户的表导出
>exp system/manager@ORACLE file=d:\daochu.dmp owner=(RFD,JYZGCX)
3,将数据库中的表T_USER、T_ROLE导出
>exp JYZGCX/JYZGCX@ORACLE file=d:\data\newsmgnt.dmp tables=(T_USER,T_ROLE)
–导入dmp文件
>imp kang/123456@localhost/ORACLE file=”C:\daochu.dmp” full=y ignore=y