oracle裸設備,裸设备安装Oracle

为裸设备建立映射关系

=============================

raw /dev/raw/raw1 /dev/sdb1

raw /dev/raw/raw2 /dev/sdb2

raw /dev/raw/raw3 /dev/sdb3

raw /dev/raw/raw4 /dev/sdc1

raw /dev/raw/raw5 /dev/sdc2

raw /dev/raw/raw6 /dev/sdd1

raw /dev/raw/raw7 /dev/sdd2

raw /dev/raw/raw8 /dev/sdd3

raw /dev/raw/raw9 /dev/sdd5

raw /dev/raw/raw10 /dev/sdd6

raw /dev/raw/raw11 /dev/sdd7

raw /dev/raw/raw12 /dev/sde1

raw /dev/raw/raw13 /dev/sde2

raw /dev/raw/raw14 /dev/sde3

=============================

# vi /etc/sysconfig/rawdevices

==================================

/dev/raw/raw1 /dev/sdb1

/dev/raw/raw2 /dev/sdb2

/dev/raw/raw3 /dev/sdb3

/dev/raw/raw4 /dev/sdc1

/dev/raw/raw5 /dev/sdc2

/dev/raw/raw6 /dev/sdd1

/dev/raw/raw7 /dev/sdd2

/dev/raw/raw8 /dev/sdd3

/dev/raw/raw9 /dev/sdd5

/dev/raw/raw10 /dev/sdd6

/dev/raw/raw11 /dev/sdd7

/dev/raw/raw12 /dev/sde1

/dev/raw/raw13 /dev/sde2

/dev/raw/raw14 /dev/sde3

==================================

# chown -R oracle:dba /dev/raw/

# /etc/init.d/rawdevices restart

$ mkdir -p /u01/oradata/ora10

建立链接关系(oracle)

==============================================================

ln -s /dev/raw/raw1 /u01/oradata/ora10/undotbs101.dbf

ln -s /dev/raw/raw2 /u01/oradata/ora10/temp01.dbf

ln -s /dev/raw/raw3 /u01/oradata/ora10/users01.dbf

ln -s /dev/raw/raw4 /u01/oradata/ora10/system01.dbf

ln -s /dev/raw/raw5 /u01/oradata/ora10/sysaux01.dbf

ln -s /dev/raw/raw6 /u01/oradata/ora10/control01.ctl

ln -s /dev/raw/raw7 /u01/oradata/ora10/control02.ctl

ln -s /dev/raw/raw8 /u01/oradata/ora10/redo01.log

ln -s /dev/raw/raw9 /u01/oradata/ora10/redo02.log

ln -s /dev/raw/raw10 /u01/oradata/ora10/redo03.log

ln -s /dev/raw/raw11 /u01/oradata/ora10/spfileora10.ora

==============================================================

创建oracle裸设备配置文件

# vi /u01/oracle/dbca.conf

=============================================

spfile = /u01/oradata/ora10/spfileora10.ora

control1 = /u01/oradata/ora10/control01.ctl

control2 = /u01/oradata/ora10/control02.ctl

redo1_1 = /u01/oradata/ora10/redo01.log

redo1_2 = /u01/oradata/ora10/redo02.log

redo1_3 = /u01/oradata/ora10/redo03.log

system = /u01/oradata/ora10/system01.dbf

sysaux = /u01/oradata/ora10/sysaux01.dbf

users = /u01/oradata/ora10/users01.dbf

undotbs1 = /u01/oradata/ora10/undotbs101.dbf

temp = /u01/oradata/ora10/temp01.dbf

=============================================

创建数据库

$dbca

在选择存储设备的时候,我们选择第三项Raw Devices,然后选中“specify Raw Devices Mapping File”复选框,点击“Browse”按钮,选择上一步我们创建好的裸设备文件/u01/oracle/dbca.conf,然后点击“next”,配置相应的参数,在配置enable archiving的时候,选择归档日志的存放目录为/oracle/arch。

创建表空间

create tablespace hjp datafile '/dev/raw/raw12' size 2048M;

drop tablespace hjp including contents and datafiles;

ln -s /dev/raw/raw12 /u01/oradata/ora10/hjp.dbf

create tablespace hjp datafile '/u01/oradata/ora10/hjp.dbf' size 2048M;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值