ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 裸设备安装Oracle

裸设备安装Oracle

原创 Linux操作系统 作者:hjianping 时间:2011-05-05 22:57:10 0 删除 编辑

为裸设备建立映射关系
=============================
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;


 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/17012874/viewspace-694566/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-04-24

  • 博文量
    80
  • 访问量
    73190