1. Node1 설정
# ifconfig 로 ip확인
# netstat -nr 로 gateway 주소 확인
# neat 로 ip 설정
eth0 , eth1 edit버튼으로 ip변경
DNS주소는 168.126.63.1
# /etc/init.d/network restart 로 네트워크 재시작
# ping 168.126.63.1 연결 잘 되어있는지 확인
vi /etc/hosts
불필요한 서비스 종료
# chkconfig --level 123456 xinetd off
# chkconfig --level 123456 sendmail off
# chkconfig --level 123456 cups off
# chkconfig --level 123456 cups-config-daemon off
# chkconfig --level 123456 smartd off
# chkconfig --level 123456 isdn off
# chkconfig --level 123456 pcmcia off
# chkconfig --level 123456 iptables off
# vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
# sysctl -p 적용
# vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
# vi /etc/pam.d/login
session required pam_limits.so
# vi /etc/modprobe.conf
options hangcheck-timer hangcheck_tick=30 hangcheck_margin=180
# modprobe -v hangcheck-timer
# vi /etc/rc.local
/sbin/modprobe hangcheck-timer
rdate -s 203.248.240.140
# groupadd -g 5000 dba
# useradd -g dba oracle
# passwd oracle
# chown -R oracle.dba /home/oracle
# vi .bash_profile
PATH=$PATH:$HOME/bin:/home/oracle/product/10g/crs/bin
# su - oracle
$ vi .bash_profile
export EDITOR=vi
export LD_ASSUME_KERNEL=2.4.19
export ORACLE_BASE=/home/oracle
export ORA_CRS_HOME=$ORACLE_BASE/product/10g/crs
export ORACLE_HOME=$ORACLE_BASE/product/10g/db
export ORA_ASM_HOME=$ORACLE_BASE/product/10g/asm
export ORACLE_SID=rac1
export LANG=ko_KR.eucKR
export ORACLE_TERM=xterm
export NLS_LANG=AMERICAN_AMERICA.KO16KSC5601
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
export PATH=$PATH:$ORACLE_HOME/bin:/$ORA_CRS_HOME/bin
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
# fdisk /dev/sdb
# fdisk /dev/sdc
# fdisk /dev/sdd
# fdisk /dev/sde
# fdisk /dev/sdf
# fdisk /dev/sdg
# fdisk /dev/sdh
# fdisk /dev/sdi
아래와 같은 방식으로 파티션 설정
# vi /etc/sysconfig/rawdevices
/dev/raw/raw1 /dev/sdb1
/dev/raw/raw2 /dev/sdc1
/dev/raw/raw3 /dev/sdd1
/dev/raw/raw4 /dev/sde1
/dev/raw/raw5 /dev/sdf1
/dev/raw/raw6 /dev/sdg1
/dev/raw/raw7 /dev/sdh1
/dev/raw/raw8 /dev/sdi1
# /etc/init.d/rawdevices restart
# vi /etc/udev/permissions.d/50-udev.permissions
112 - ram*:root:disk:0660
113 - #raw/*:root:disk:0660
추가 - raw/*:oracle:dba:0660
# /etc/init.d/rawdevices restart
# ls –l /dev/raw
Node 1 설정 끝 init 0 종료
2. Node2 설정
rac1 디렉토리에 있는 rac1.vmdk 파일과 rac1.vmx 파일을 rac2 디렉토리로 복사
rac1.vmx 파일을 아래와 같이 편집
vmware로 rac2디렉토리에 있는 rac1.vmx파일 열어서 실행
I copied it 선택
Space
Remove Configuration 두번 반복
Configure 선택 (2번 반복)
Use dynamic IP configuration 선택
터미널창 열어서 neat로 IP설정
# vi /home/oracle/.bash_profile
export ORACLE_SID = rac1 -> export ORACLE_SID = rac2 로 바꿔주기
Node2 설정 끝 reboot
3. equivalence 설정
Node1,Node2 둘다 실행 (oracle 계정)
$ mkdir .ssh
$ ssh-keygen –t rsa
$ ssh-keygen –t dsa
Node1 만 실행
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
$ ssh rac2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
$ ssh rac2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
$ scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
Node1, Node2 모두 실행
$ ssh rac1 date
$ ssh rac1-priv date
$ ssh rac2 date
$ ssh rac2-priv date
'RAC 설치 > RHEL4+10g+RAC_ASM' 카테고리의 다른 글
RHEL4+Oracle10g+Rac_ASM (ASM설치+패치+DB생성) (0) | 2014.09.26 |
---|---|
RHEL4+Oracle10g+Rac_ASM (oracle엔진 설치+ 패치+리스너구성) (0) | 2014.09.26 |
RHEL4+Oracle10g+Rac_ASM (Clusterware 설치+vipca설정+Clusterware패치) (0) | 2014.09.26 |
RHEL4+Oracle10g+Rac_ASM (VMware설정+Linux설치) (0) | 2014.09.26 |