1、首先在系统环境变量中新建环境变量ORACLE_HOME=F:\study\oracle\product\10.1.0\db_1(视自己数据安装路径而定)
2、在path环境变量最后添加%ORACLE_HOME%/BIN
3、在命令行中输入exp
username/password@dbname file=backup file path
username: 导出数据库用户名
password: 导出数据库密码
backup file path: 数据库备份文件存放路径
如:exp
scott/123456@sunhao file=d:\1.dmp
4、在命令行中输入imp
tousername/password@dbname file=backup file path fromuser=fromusername touser=tousername
tousername: 要导入的数据库用户名
password: 要导入的数据库密码
backup file path: 数据库备份文件存放路径
fromusername: 要导入的数据库用户名
tousername: 导入的那个数据库用户名
如:imp
usr_oa_sys/usr_oa_sys@SUNHAO file=d:\oa_show.dmp fromuser=usr_oa_show touser=usr_oa_sys