Oracle中dmp檔案的匯入匯出總結

2021-08-31 01:49:48 字數 900 閱讀 4157

資料匯出:

1 將資料庫test完全匯出,使用者名稱system 密碼manager 匯出到d:\daochu.dmp中

exp system/manager@test file=d:\daochu.dmp full=y

2 將資料庫中system使用者與sys使用者的表匯出

exp system/manager@test file=d:\daochu.dmp owner=(system,sys)

3 將資料庫中的表inner_notify、notify_staff_relat匯出

exp aichannel/aichannel@testdb2 file= d:\data\newsmgnt.dmp tables=(inner_notify,notify_staff_relat)

4 將資料庫中的表table1中的字段filed1以"00"打頭的資料匯出

exp system/manager@test file=d:\daochu.dmp tables=(table1) query=\" where filed1 like '00%'\"

資料的匯入:

1 將d:\daochu.dmp 中的資料匯入 test資料庫中。

imp system/manager@test file=d:\daochu.dmp

imp aichannel/aichannel@hust full=y file=file= d:\data\newsmgnt.dmp ignore=y

上面可能有點問題,因為有的表已經存在,然後它就報錯,對該錶就不進行匯入。

在後面加上 ignore=y 就可以了。

2 將d:\daochu.dmp中的表table1 匯入

imp system/manager@test file=d:\daochu.dmp tables=(table1)

oracle 匯入 dmp檔案

建立使用者 第一步,進入dos下,輸入sqlplus nolog,登陸sqlplus 第二步,已本地管理員身份連線oracle,conn as sysdba 第三步,建立表空間 create tablespace project datafile f oracle project.dbf size ...

oracle匯入dmp檔案

昨天做了個簡單的oracle匯入dmp檔案,現將經驗總結如下 第一,客戶端如果不在伺服器所在的機器上就不具備匯入許可權。要匯入必須在伺服器端用pl sql等客戶端工具或者直接在命令列中匯入。eg imp username psw databaseninstance file d tobeimport...

dmp檔案匯入oracle

1.建立表空間供使用者使用 create tablespace crmtbs datafile d oracle oradata orcl crmtbs.dbf size 200m autoextend on next 10m maxsize unlimited 2.建立使用者並賦予許可權 crea...