oracle 10g 恢複dmp檔案。

來源:互聯網
上載者:User

標籤:

1. 在winxp下,安裝10g,預設選擇,一路ok。(安裝前自檢出現dhcp警告,可直接忽略)

2.命令列,在xp下,輸入sqlplus,即可啟動,登陸用 sqlplus / as sysdba 用管理員登陸

3.在恢複oracle時,先在 sqlplus裡,先建立資料表空間,建使用者,並給使用者授權,並解鎖。

----建立資料表空間

create tablespace jbpm
    logging
    datafile ‘D:\oracle\product\10.2.0\oradata\jbpm.ora‘ size 100M reuse
    extent management local segment space management auto;

----建立使用者

create user jbpmuser
    identified by "jbpmuser"
    default tablespace jbpm
    temporary tablespace temp
    profile default
    quota unlimited on jbpm;

授權
grant connect to jbpmuser;
grant exp_full_database to jbpmuser;
grant imp_full_database to jbpmuser;
grant connect,resource,dba to jbpmuser;

 

並給使用者解鎖。

 alter user 使用者名稱 account unlock;

 

4.在cmd裡,輸入imp,即可開啟備份匯入系統,用剛才建立的使用者和使用者名稱登陸。imp jbpmuser/jbpmuser ,

  登陸後,介面顯示 EXPDAT.DMP> ,提示符。在後面輸入 D:/jbpm.dmp ,就可匯入。

在提示只列出匯入檔案的內容,選擇no,對象已經存在,忽略建立錯誤,選擇no,其他選擇yes,(包括 許可權,表,整個檔案)

5. 匯入後,用sqlplus  jbpmuser/jbpmuser   登陸,查看錶空間,

select table_name from user_tables;

  出現表的名稱。匯入完畢。

 

oracle 10g 恢複dmp檔案。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.