使用cmd->sqlplus,在dos窗口中导出、导入数据库.dmp文件;

--导出整个数据库、指定用户下的对象、指定表
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 ewsmgnt.dmp tables=(T_USER,T_ROLE)

--导入dmp文件
>imp kang/123456@localhost/ORACLE file="C:daochu.dmp" full=y ignore=y

原文地址:https://www.cnblogs.com/yanch/p/8676307.html