萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 程式設計 >  >> 資料庫 >> Oracle 教學

Oracle 數據庫匯出與匯入操作全攻略

一、資料匯出

1. 完整資料庫匯出

exp scott/tiger@TEST file=d:testDB.dmp full=y

2. 單表匯出

exp scott/tiger@TEST file=d:testDB.dmp tables=(emp)

二、資料匯入

1. 完整資料庫匯入

imp scott/tiger@TEST file=d:testDB.dmp full=y ignore=y

2. 單表匯入

imp scott/tiger@TEST file=d:testDB.dmp tables=(emp)

附錄:使用者建立與授權

-- 級聯刪除使用者
DROP USER scott CASCADE;

-- 建立使用者
CREATE USER scott IDENTIFIED BY tiger;

-- 授予 DBA 權限
GRANT DBA TO scott;
copyright © 萬盛學電腦網 all rights reserved