Oracle/ASM

DBCA를 이용해 ASM diskgroup 수동구성하기(silent) ; RHEL4환경

에몽이ㅋ 2012. 3. 30. 03:45
http://gyh214.tistory.com/134 의
4-3 ~ 4-6. 하고 난 후
4-7. ASM라이브러리 환경설정

[root@database ~]# /etc/init.d/oracleasm configure
[root@database ~]# /etc/init.d/oracleasm enable
[root@database ~]# /etc/init.d/oracleasm start
4-8. ASM disk를 생성합니다.
root@database ~]# /etc/init.d/oracleasm createdisk asm1 /dev/asm/asm1
[root@database ~]# /etc/init.d/oracleasm createdisk fra1 /dev/asm/fra1

4-9. CSS데몬을 활성화합니다.
[root@database ~]# /home/oracle/product/10g/bin/localconfig add 

한 이후
oracle 유저로 로그인 후

$ dbca -silent -configureASM
$ export ORACLE_SID=+ASM
$ sqlplus / as sysdba
한 후 create diskgroup으로 두 디스크그룹을 생성합니다. 
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Mar 30 03:36:15 2012

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> create diskgroup DATA external redundancy
  2  disk 'ORCL:ASM1';

Diskgroup created.

SQL> create diskgroup FRA external redundancy
  2  disk 'ORCL:FRA1';

Diskgroup created.

위 처럼 두 디스크 그룹을 만들어줍니다.
(redundancy를 적어주지 않으면 normal로 지정되어서, 디스크를 2개 적어줘야합니다.)



참조
http://blog.daum.net/seo9219/45 
http://moluccan.co.uk/Joomla/index.php/crib-sheet/oui-and-dbca/235-dbca-asm-response-file