Professional Documents
Culture Documents
기술노트 (56회) Oracle11gRAC Architecture
기술노트 (56회) Oracle11gRAC Architecture
Architecture
Author 박제헌,신범석
Last Updated
Version 1.0
1 2011-03-02 박제헌,싞범석 문서 최초 작성
ORACLE 11g RAC Architecture
목 차
1. Oracle Clusterware Concepts ................................................................................................ 3
- 2 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
- 4 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
패치 업그레이드 롤링 허용
소프트웨어는 단일 Failure 지점이 아님
Real Application Clusters 는 두 단계를 수행하여 설치합니다. 첫번째 단계에서는 Oracle
Clusterware 를 설치하고, 두번째 단계에서는 RAC 구성 요소를 포함하는 오라클 데이터베이스
소프트웨어를 설치한 다음 클러스터 데이터베이스를 생성한다. Oracle Clusterware 에 사용하는
- 5 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
- 6 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
- 7 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
1.6. RAC 및 공유 저장 영역 기술
저장 영역은 그리드의 핵심 구성 요소
- 저장 영역 공유는 기본적인 기능
- 새로욲 기술이 도입되고 있는 추세
Oracle Grid 에 대해 지웎되는 공유 저장 영역
- NAS(Network Attached Storage)
- SAN(Storage Area Network)
Oracle Grid 에 대해 지웎되는 파일 저장 영역
- Raw 볼륨
- 클러스터 파일 시스템
- ASM
RAC 에 필요한 공유 저장 영역을 제공하기 위해 기본적으로 세 가지 접근 방식이 사용된다.
Raw 볼륨 : 파이버 채널 또는 iSCSI 등 블록 모드에서 작동하는 저장 영역을 필요로 하
는 직접 연결된 Raw Device.
클러스터 파일 시스템 : 하나 이상의 클러스터 파일 시스템을 사용하여 모든 RAC 파일
을 보관할 수 있다. 클러스터 파일 시슽ㅁ을 사용하려면 파이버 채널 또는 iSCSI 등의
블록 모드 저장 영역이 필요하다.
ASM
- 이동 가능하고 고성능의 Cluster File System
- Oracle Database files 를 관리
- 부하 균형을 위해 디스크에 데이터 분산
1.7. 자동 저장 영역 관리(ASM)
이동가능한 고성능 데이터베이스 파일 시스템 제공
로드가 균형을 이루도록 여러 디스크에 데이터 분산
젂체 디스크에 걸쳐 통합된 Mirroring 제공
많은 저장 영역 관리 문제 해결
- 8 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
- 9 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
2. Clusterware Architecture
2.1. Oracle Cluster Damon
오라클 클러스터 웨어는 OS init 데몬에 의해서 시작된다.
Init.ohasd 스크립트가 오라클 클러스터 프로세서들을 시작시키는데 이 스크립트는
/etc/init.d 에 카피된다.
# cat /etc/inittab
..
h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
- 10 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
- 11 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
* I/O fencing
여러 노드가 공유 스토리지의 데이터를 동시에 접근할 때 노드갂의 통싞을 통해 스토리지의 사
용 여부를 체크하면서 서로 데이터를 쓰게 되는 것을 방지함으로 데이터 무결성을 보장할 수 있
는데, 노드갂의 커뮤니케이션이 실패하였을 때 split brain 현상이 발생한다. Split brain 은 각 서버
가 각각 스토리지를 컨트롤 하게되는 현상인데 이런 현상으로 인한 데이터 손상의 방지와 무결
성을 위해 I/O fencing 을 사용하게 된다.
- 12 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
- 13 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
xmlns="http://www.grid-pnp.org/2005/11/gpnp-profile" ...
xsi:schemaLocation="http://www.grid-pnp.org/2005/11/gpnp-profile gpnp-profile.xsd"
ProfileSequence="4" ClusterUId="2deb88730e0b5f1bffc9682556bd548e"
ClusterName="cluster01"
PALocation=""><gpnp:Network-Profile><gpnp:HostNetwork id="gen"
HostName="*"><gpnp:Network
id="net1" IP="192.0.2.0" Adapter="eth0" Use="public"/><gpnp:Network id="net2"
IP="192.168.1.0" Adapter="eth1"
Use="cluster_interconnect"/></gpnp:HostNetwork></gpnp:Network-
Profile><orcl:CSS-Profile
id="css" DiscoveryString="+asm" LeaseDuration="400"/><orcl:ASM-Profile id="asm"
DiscoveryString="/dev/sd*" SPFile="+data/spfile.ora"/><ds:Signature
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-
c14n#"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-
signature"/>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#"
PrefixList="gpnp orcl xsi"/>
...
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>gIBakmtUNi9EVW/XQoE1mym3Bnw=</ds:DigestValue>
- 15 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
- 16 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
<구성도>
- 17 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
2.4.2. SCAN의 구성
DNS(Domain Name Service) 에 정의
DNS 에 정의하여 SCAN 을 사용할 때에는 하나의 도메인을 생성하여 3 개의 IP 로 연결한다.
IP 가 3 개인 이유는 클러스터 내의 서버 대수와는 상관없고 로드발랜싱과 High-availability 를
위한 권장 값이다. IP 주소는 public network 와 같은 서브넷을 사용 하여야 하고 오라클 클러스
터에서 관리하기 때문에 네트웍 인터페이스에 할당이 되면 안된다.
<sample> nslookup 명령을 이용하여 확인 가능하다.
sales1-scan.example.com IN A 133.22.67.194
IN A 133.22.67.193
IN A 133.22.67.192
- 18 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
$GRID_HOME/bin/oifcfg iflist -p -n
eth1 10.1.0.128 PRIVATE 255.255.255.128
eth1 169.254.0.0 UNKNOWN 255.255.0.0
eth3 10.1.0.0 PRIVATE 255.255.255.128
ifconfig
eth1 Link encap:Ethernet HWaddr 00:16:3E:11:11:22
inet addr:10.1.0.168 Bcast:10.1.0.255 Mask:255.255.255.128
- 19 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
Note: interconnect will use virtual private IP 169.254.167.163 instead of real private IP.
For pre-11.2.0.2 instance, by default it will still use the real private IP; to take advantage of the
new feature, init.ora parameter cluster_interconnects can be updated each time Grid is
restarted .
- 20 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
NAME IP_ADDRESS
--------------- ----------------
eth1:1 169.254.167.163
$ $GRID_HOME/bin/oifcfg iflist -p -n
eth1 10.1.0.128 PRIVATE 255.255.255.128
eth1 169.254.0.0 UNKNOWN 255.255.192.0
eth1 169.254.192.0 UNKNOWN 255.255.192.0
eth3 10.1.0.0 PRIVATE 255.255.255.128
eth6 10.11.0.128 PRIVATE 255.255.255.128
eth6 169.254.64.0 UNKNOWN 255.255.192.0
eth7 10.12.0.128 PRIVATE 255.255.255.128
eth7 169.254.128.0 UNKNOWN 255.255.192.0
ifconfig
eth1 Link encap:Ethernet HWaddr 00:16:3E:11:11:22
inet addr:10.1.0.168 Bcast:10.1.0.255 Mask:255.255.255.128
inet6 addr: fe80::216:3eff:fe11:1122/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15176906 errors:0 dropped:0 overruns:0 frame:0
TX packets:10239298 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
- 21 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
Private Interface 'eth1:1' configured from GPnP for use as a private interconnect.
[name='eth1:1', type=1, ip=169.254.30.98, mac=00-16-3e-11-11-22,
net=169.254.0.0/18, mask=255.255.192.0, use=haip:cluster_interconnect/62]
Private Interface 'eth6:1' configured from GPnP for use as a private interconnect.
[name='eth6:1', type=1, ip=169.254.112.250, mac=00-16-3e-11-11-77,
net=169.254.64.0/18, mask=255.255.192.0, use=haip:cluster_interconnect/62]
Private Interface 'eth7:1' configured from GPnP for use as a private interconnect.
[name='eth7:1', type=1, ip=169.254.178.237, mac=00-16-3e-11-11-88,
net=169.254.128.0/18, mask=255.255.192.0, use=haip:cluster_interconnect/62]
Private Interface 'eth1:2' configured from GPnP for use as a private interconnect.
[name='eth1:2', type=1, ip=169.254.244.103, mac=00-16-3e-11-11-22,
net=169.254.192.0/18, mask=255.255.192.0, use=haip:cluster_interconnect/62]
Public Interface 'eth3' configured from GPnP for use as a public interface.
[name='eth3', type=1, ip=10.1.0.68, mac=00-16-3e-11-11-44, net=10.1.0.0/25,
mask=255.255.255.128, use=public/1]
Picked latch-free SCN scheme 3
..
Cluster communication is configured to use the following interface(s) for this instance
169.254.30.98
169.254.112.250
169.254.178.237
169.254.244.103
- 23 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
3. ASM Architecture
3.1. ASM(Automatic Storage Management )
ASM (Automatic Storage Management )은 볼륨 메니저와 파일 시스템이 오라클 데이
터 베이스 서버로 구성된 것이다. 오라클에서 권장하는 최고의 오라클 데이터베이스
스토리지라 할 수 있다.
ASM Layer
- 24 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
Memory
Memory Description
Shared Pool 메타데이터 정보에 사용된다.
Processes
Processes Description Processes Description
ARCn The archiver processes PSP0 The process spawner process
CKPT The checkpoint process QMNn The queue monitor processes
DBWn The database writer processes RECO The recoverer process
DIAG The diagnosability process SMON The system monitor process
Jnnn Job queue processes VKTM The virtual keeper of time process
LGWR The log writer process MMAN The memory manager process
PMON The process monitor process
- 25 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
- 26 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.
ORACLE 11g RAC Architecture
<끝>
- 27 –
본 산출물의 내용은 굿어스㈜의 사전승인 없이
외부유출 및 공개를 금지합니다.