溫馨提示×

溫馨提示×

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

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

linux下ORACLE之RAW創(chuàng)建

發(fā)布時間:2020-07-29 05:58:09 來源:網(wǎng)絡(luò) 閱讀:1757 作者:arlen99 欄目:關(guān)系型數(shù)據(jù)庫

1.磁盤分區(qū),建立13個分區(qū),分別對應(yīng)ORACLE13個文件

fdisk /dev/sdc


2. 編輯60.raw,rules文件

#vi /etc/udev/rules.d/60-raw.rules

ACTION=="add", KERNEL=="sdc1", RUN+="/bin/raw /dev/raw/raw1 %N"

ACTION=="add", KERNEL=="sdc2", RUN+="/bin/raw /dev/raw/raw2 %N"

ACTION=="add", KERNEL=="sdc3", RUN+="/bin/raw /dev/raw/raw3 %N"

ACTION=="add", KERNEL=="sdc5", RUN+="/bin/raw /dev/raw/raw5 %N"

ACTION=="add", KERNEL=="sdc6", RUN+="/bin/raw /dev/raw/raw6 %N"

ACTION=="add", KERNEL=="sdc7", RUN+="/bin/raw /dev/raw/raw7 %N"

ACTION=="add", KERNEL=="sdc8", RUN+="/bin/raw /dev/raw/raw8 %N"

ACTION=="add", KERNEL=="sdc9", RUN+="/bin/raw /dev/raw/raw9 %N"

ACTION=="add", KERNEL=="sdc10", RUN+="/bin/raw /dev/raw/raw10 %N"

ACTION=="add", KERNEL=="sdc11", RUN+="/bin/raw /dev/raw/raw11 %N"

ACTION=="add", KERNEL=="sdc12", RUN+="/bin/raw /dev/raw/raw12 %N"

ACTION=="add", KERNEL=="sdc13", RUN+="/bin/raw /dev/raw/raw13 %N"

KERNEL=="raw*" , OWNER=="oracle" ,GROUP=="oinstall" ,MODE=="660"        //修改屬主,屬組,及訪問權(quán)限


3.執(zhí)行生成命令

#start_udev

#raw -qa  //查看創(chuàng)建的RAW


4. 修改權(quán)限(如果第二步中已包含,可以不執(zhí)行)

#chmod 660 /dev/raw/raw*

#chown oracle:dba /dev/raw/raw*


5.編寫ORACLE映射RAW文件,以便建庫時直接指定

#vi mapping.txt

system=/dev/raw/raw1

sysaux=/dev/raw/raw2

undotbs1=/dev/raw/raw3

temp=/dev/raw/raw5

users=/dev/raw/raw6

redo1_1=/dev/raw/raw7

redo1_2=/dev/raw/raw8

redo1_3=/dev/raw/raw9

control1=/dev/raw/raw10

control2=/dev/raw/raw11

control3=/dev/raw/raw12

spfile=/dev/raw/raw13


向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