oracle資料庫匯入匯出09192255

來源:互聯網
上載者:User

標籤:

 

1、匯入資料庫(dmp

Linux系統中:

1、 用root帳號登入伺服器,然後切換到oracle帳號(安裝oracle資料庫的時候用的用的帳號)

2、 切換到oralce的安裝目錄下的bin下

3、 輸入: ./sqlplus /nolog

4、 輸入: conn iflytek/iflytek as sysdba

5、 建立資料表空間:

create tablespace MOBILESERVER datafile ‘/opt/oracle/app/oradata/orcl/MOBILESERVER.dbf‘ size 80m autoextend on next 10m maxsize 5000m;

其中資料表空間MOBILESERVER是需要匯入的資料庫需要的,可以在dmp包中查看

6、 建立使用者並授權:

create user xingnengTest identified by iflytek default tablespace MOBILESERVER;

grant dba,connect,resource xingnengTest;

grant connect,resource to xingnengTest;

grant unlimited tablespace to xingnengTest;

grant create database link to xingnengTest;

grant select any sequence,create materialized view to xingnengTest;

注意:如果許可權不夠,匯入的時候會提示,具體需要那些許可權,我沒有一一驗證

7、 匯入dmp

? 輸入:quit,斷開oracle串連

? 輸入:imp

? 輸入帳號:xingnengTest

? 輸入密碼:iflytek

? 輸入命令和輸入dmp地址

? 完成後的提示

8、 plSQL串連資料庫查看

? 配置監聽

? 輸入帳號密碼

? 查看table,是匯入的表和資料

oracle資料庫匯入匯出09192255

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.