溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

學習數(shù)據(jù)遷移之imp

發(fā)布時間:2020-07-21 01:12:14 來源:網(wǎng)絡(luò) 閱讀:223 作者:biltmore 欄目:關(guān)系型數(shù)據(jù)庫


查詢數(shù)據(jù)庫語言及字符集

select userenv('language') from dual;

select * from nls_database_parameters #服務(wù)器

select * from nls_instance_parameters #客戶端

select * from nls_session_parameters #會話

查看dump文件導出信息

strings bak20190315.dmp |head -10

strings bak20190315.dmp | grep "CREATE TABLE" | awk '{print $3}'| sed 's/"//g'   #表

cat exp.dmp |od -x|head -1|awk '{print $2 $3}'|cut -c 3-6 #查看字符集代碼

select nls_charset_name(to_number('0354','xxxx')) from dual; #代碼轉(zhuǎn)換成名稱


create user note identified by luoluo; #建用戶授權(quán)

grant connect,resource to note;

select name from v$datafile; #查詢數(shù)據(jù)文件路徑

create tablespace note datafile='/u01/app/oracle/oradata/orcl/note01.dbf' size 31G;  #新建表空間

alter tablespace note add datafile='/u01/app/oracle/oradata/orcl/note02.dbf' size 31G;

alter tablespace note add datafile='/u01/app/oracle/oradata/orcl/note03.dbf' size 31G;

alter tablespace note add datafile='/u01/app/oracle/oradata/orcl/note04.dbf' size 31G;

alter user note default tabspace note; #修改用戶默認表空間

imp system/ORACLE12C  file=/mnt/data/bak20190315.dmp FROMUSER=NOTE



參考鏈接

https://www.cnblogs.com/lipera/p/6201434.html

https://www.cnblogs.com/lhrbest/p/6832707.html

https://www.cnblogs.com/rootq/articles/2049324.html

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI