Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3218676
  • 博文数量: 710
  • 博客积分: 14546
  • 博客等级: 上将
  • 技术积分: 6738
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-30 10:20
文章分类

全部博文(710)

文章存档

2016年(1)

2014年(7)

2013年(22)

2012年(227)

2011年(322)

2009年(119)

2008年(12)

分类: Oracle

2011-12-16 09:12:27

一、准备工作
    1.计算目前数据文件大小
  1. SYS>select sum(BYTES)/1024/1024/1024 || 'G' as GB from v$datafile;

  2. GB
  3. -----------------------------------------
  4. 90.8349609375G
    2.关闭服务器添加6块硬盘
  1. [root@ora01 rules.d]# cat 60-raw.rules
  2. ACTION=="add", KERNEL=="sdb", RUN+="/bin/raw /dev/raw/raw1 %N"
  3. ACTION=="add", KERNEL=="sdc", RUN+="/bin/raw /dev/raw/raw2 %N"
  4. ACTION=="add", KERNEL=="sdd", RUN+="/bin/raw /dev/raw/raw3 %N"
  5. ACTION=="add", KERNEL=="sde", RUN+="/bin/raw /dev/raw/raw4 %N"
  6. ACTION=="add", KERNEL=="sdf", RUN+="/bin/raw /dev/raw/raw5 %N"
  7. ACTION=="add", KERNEL=="sdg", RUN+="/bin/raw /dev/raw/raw6 %N"
  8. KERNEL=="raw[0-9]*",OWNER="oracle",GROUP="oinstall",MODE="640"
    3.install asm rpms
   
  1. [root@ora01 asmrpm]# rpm -Uvh  oracleasm-support-2.1.2-1.el5.i386.rpm
    Preparing...                ########################################### [100%]
       1:oracleasm-support      ########################################### [100%]
    [root@ora01 asmrpm]# rpm -Uvh  oracleasm-2.6.18-128.el5PAE-2.0.5-1.el5.i686.rpm
    warning: oracleasm-2.6.18-128.el5PAE-2.0.5-1.el5.i686.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
    Preparing...                ########################################### [100%]
       1:oracleasm-2.6.18-128.el########################################### [100%]
    [root@ora01 asmrpm]# rpm -Uvh oracleasmlib-2.0.3-1.el5.i386.rpm
    Preparing...                ########################################### [100%]
       1:oracleasmlib           ########################################### [100%]

    4.Configuring the Oracle ASM library driver
  1. [root@ora01 asmrpm]# /etc/init.d/oracleasm configure
  2. Configuring the Oracle ASM library driver.
  3. This will configure the on-boot properties of the Oracle ASM library
  4. driver. The following questions will determine whether the driver is
  5. loaded on boot and what permissions it will have. The current values
  6. will be shown in brackets ('[]'). Hitting <ENTER> without typing an
  7. answer will keep that current value. Ctrl-C will abort.

  8. Default user to own the driver interface [oracle]:
  9. Default group to own the driver interface [oinstall]:
  10. Start Oracle ASM library driver on boot (y/n) [y]:
  11. Scan for Oracle ASM disks on boot (y/n) [y]:
  12. Writing Oracle ASM library driver configuration: done
  13. Initializing the Oracle ASMLib driver: [ OK ]
  14. Scanning the system for Oracle ASMLib disks: [ OK ]

















阅读(2693) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~