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