1. 程式人生 > >如何將dmp檔案匯入到oracle資料庫中

如何將dmp檔案匯入到oracle資料庫中


1.建立使用者表空間
create tablespace tbs_bidm (表空間的名字)
datafile 'D:\app\oracle\bidm\tbs_bidm_01.dbf'
 size 800M (初始大小)
autoextend on(自動擴充套件) next 512m maxsize unlimited;

 

2.建立一個自己的使用者
create user bidm (使用者名稱)
  identified by bidm(密碼)
  default tablespace tbs_bidm(上面建立的表空間)
  temporary tablespace temp(臨時的表空間)  profile DEFAULT

3.需要給自己的使用者賦予許可權管理自己表空間
grant create any view to bidm;

grant create session to bidm;

grant debug connect session to bidm;
grant select any table to ntmeta;

grant dba to BIDM;-----dba為最高階許可權,可以建立資料庫,表等

4 開啟cmd,執行下面語句:

imp usename/[email protected]/orcl(表示SID)  file= E:\Oracle_11g\app\Administrator

\product\11.2.0\dbhome_1\database\xxxx.dmp  full=y

即可