linux下ORACLE之RAW建立

來源:互聯網
上載者:User

標籤:linux下oracle之raw建立

1.磁碟分割,建立13個分區,分別對應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"        //修改屬主,屬組,及存取權限


3.執行產生命令

#start_udev

#raw -qa  //查看建立的RAW


4. 修改許可權(如果第二步中已包含,可以不執行)

#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


本文出自 “知識改變命運!!!” 部落格,請務必保留此出處http://arlen99.blog.51cto.com/10424817/1759325

linux下ORACLE之RAW建立

相關文章

聯繫我們

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