標籤:
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