oracle database 11gr2 rac install step by step on vsphere
TRANSCRIPT
Version ๋ณ๊ฒฝ์ผ์ ๋ณ๊ฒฝ์(์์ฑ์) ์ฃผ์๋ด์ฉ
1
2
Author ๋ฐ์ฒ ํ
Creation Date 2011.7.6
Last Updated
Version 0.1 Copyright(C) 2004 Goodus Inc.
All Rights Reserved
Oracle Database 11gR2 RAC
Install Step by Step on VSphere
- 2 -
Contents
1. ๊ฐ์ ............................................................................................................. 3
2. vSphere server install .............................................................................. 3
3. vSphere client install ............................................................................. 12
4. vSphere Client Start ๋ฐ VSphere Configuration .............................. 18
5. ๊ฐ์๋จธ์ ์์ฑ ๋ฐ OS ์ค์น .................................................................... 23
1. ๊ฐ์๋จธ์ ์์ฑ .......................................................................................... 23
6. vSphere CLI ์ค์น ๋ฐ Virtual Storage Configuration ....................... 45
7. Oracle Pre-Installation Steps ............................................................... 54
7.1. Preparing the system .................................................................................................. 54
7.1.1. Host file Configuration ....................................................................................................................................54
7.1.2. Kernel Sysctl Configuration ...........................................................................................................................55
7.1.3. User resource limit ์ค์ .................................................................................................................................55
7.1.4. NTP ์ค์ ................................................................................................................................................................56
7.1.5. User Shell Configuration .................................................................................................................................56
7.1.6. SSH ์ค์ ................................................................................................................................................................58
7.2. Preparing Oracle ASM ................................................................................................ 58
7.2.1. ASM LIBRARY .......................................................................................................................................................58
7.2.2. ASM Configuration ............................................................................................................................................59
7.2.3. Create ASM VOLUME. ......................................................................................................................................59
7.3. Install requirement ํ์ธ ............................................................................................ 64
7.3.1. cluster verify utility ............................................................................................................................................64
8. Oracle RAC Installation step ................................................................ 77
8.1. Grid Infrastracture Install ........................................................................................... 77
8.2. Database Software Install .......................................................................................... 89
8.3. ACFS ๊ตฌ์ฑ ...................................................................................................................... 96
8.4. Database ์์ฑ ............................................................................................................ 101
- 3 -
1. ๊ฐ์
Oracle 11.2.0.2 ๋ถํฐ๋ Vmware์ ๊ฐ์ํ ์์คํ ๊ณต์์ ์ผ๋ก Certified ๊ฐ ๋์์ต๋๋ค.
์์ฆ ๋ณด์ ๋ฟ๋ง ์๋๋ผ ๊ฐ์ํ ๊ตฌ์ถ์ด ํฐ ์ด์๊ฐ ๋๊ณ ์๋๋ฐ Oracle์์ ๊ฐ์ํ์์
์ ์ง์์ ๊ณต์์ ์ผ๋ก ์ง์ํจ์ ๋ฐ๋ผ ๊ฐ์ํ ์์คํ ์์ Oracle ์ด ์ผ๋ง๋ ์ ์ค์น๊ฐ
๋๊ณ ๋์ํ๋์ง ์์๋ณด๊ธฐ ์ํ์ฌ ๊ฐ์ํ ์์คํ ๋ถํฐ OS, Oracle RAC ์ค์น๊น์ง ๊ตฌ์ถ
ํ ์ ์๋๋ก Step by Step ํ์์ผ๋ก ์์ฑํด ๋ณด์์ต๋๋ค.
2. vSphere server install
์ค์น ๋ชจ๋ ์ค์์ GUI ํํ์ ์ค์น ํ๋ก๊ทธ๋จ์ ์ด์ฉํ์ฌ ์ค์นํ๋ ๋ฐฉ๋ฒ์ธ Install ESX in
graphical mode ๋ฉ๋ด๋ฅผ ์ ํํฉ๋๋ค.
- 4 -
NEXT ๋ฒํบ์ ๋๋ฅด๋ฉด ๋ผ์ด์ผ์ค ๋์ ์ฐฝ์ผ๋ก ์ด๋๋ฉ๋๋ค.
์์ ๊ฐ์ด End User License ์ ๋์ ํํ NEXT ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
- 5 -
ํค๋ณด๋ ๋ ์ด์์์ ์ ํํ๋ ํ๋ฉด์ด ๋์ค๋ฉด U.S. English ํ์ ์ ์ ํํฉ๋๋ค.
์ค์น์ ํ์ํ ํ๋์จ์ด ์ฅ์น ๋๋ผ์ด๋ฒ ์ ๋ณด๋ฅผ ์ถ๊ฐ๋ก ๋ก๋ฉ ํ ๊ฒ์ธ์ง ํ์ธ ํฉ๋๋ค.
NO ๋ฅผ ์ ํ ํ ๊ฒฝ์ฐ ์ค์น ํ์ผ์ ์ด๋ฏธ ํ๋์จ์ด ์ฅ์น ๋๋ผ์ด๋ฒ๊ฐ ๋ชจ๋ ํฌํจ๋์ด ์์ด ๋ณ๋๋ก
๋ก๋ฉ ์์ผ์ผ ํ ๋๋ผ์ด๋ฒ๊ฐ ์๋ค๋ ๊ฒ์ ๋ํ๋ ๋๋ค. NO ๋ฅผ ์ ํ ํ ๊ณ์ ์งํํ๋๋ก ํ๊ฒ ์ต๋
๋ค.
์ค์นํ์ผ์ ํฌํจ๋ ์ฅ์น ๋๋ผ์ด๋ฒ๋ฅผ ๋ก๋ฉ ํ ๊ฒ์ธ์ง ๋ฌป๋ ํ๋ฉด์ผ๋ก YES ์ ํ ํ ์๋ ๊ทธ๋ฆผ๊ณผ
๊ฐ์ด 100% complete ๋ฉ์์ง๊ฐ ๋์ค๋ฉด NEXT ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
- 6 -
๋๋ผ์ด๋ฒ ๋ก๋ฉ์ด ๋๋๋ฉด ๋ผ์ด์ ์ค ํค ๊ฐ์ ๋ฑ๋ก ํ๋ ํ๋ฉด์ด ๋ํ๋ฉ๋๋ค. ๋ผ์ด์ผ์ค ๊ฐ์ ๋ฑ๋ก
ํ๊ฑฐ๋ Enter a serial number later ์ต์ ์ ์ ํํ ํ NEXT ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
- 7 -
์๋ฒ๋ฅผ ์ค์ ๋ก ๊ด๋ฆฌํ๊ฒ ๋๋ ๊ด๋ฆฌ ๋คํธ์ํฌ ํฌํธ, ์ฆ ์ด์์ฒด์ ์ ์๋น์ค ์ฝ์์ฉ ๋คํธ์ํฌ
ํฌํธ๋ฅผ ์ง์ ํ๋ ํ๋ฉด์ผ๋ก ์ ์ผ ๋จผ์ ์ธ์๋ ์ฒซ ๋ฒ์งธ NIC ์ด๋ํฐ๋ฅผ ๊ธฐ๋ณธ๊ฐ์ผ๋ก ์ ํ ํ ์
์์ต๋๋ค. ๋ง์ผ VLAN ํ๊ทธ๋ฅผ ์ฌ์ฉํ๋ ํ๊ฒฝ์ด๋ผ๋ฉด VLAN ID ๋ฅผ ์ ๋ ฅ ํ ์๋ ์์ต๋๋ค. ์ ์ ํ
๋คํธ์ํฌ ์ด๋ํฐ๋ฅผ ์ ํํ ๋ค์ NEXT ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
์๋น์ค ์ฝ์์ฉ ๊ด๋ฆฌ ๋คํธ์ํฌ์ IP ์ฃผ์๋ฅผ ํ ๋นํ๋ ํ๋ฉด์ผ๋ก ํด๋น ํญ๋ชฉ์ ๋ง๋๋ก IP ์ฃผ์,
์๋ธ๋ท ๋ง์คํฌ ๊ฐ, ๊ฒ์ดํธ์จ์ด ์ฃผ์ ๊ทธ๋ฆฌ๊ณ DNS ์๋ฒ ์ฃผ์์ ํธ์คํธ๋ช ์ ์ ๋ ฅํฉ๋๋ค.
- 8 -
.
ESX ์๋ฒ ํํฐ์ ์ค์ ์ ๋ํ ๋ถ๋ถ์ผ๋ก Standard setup ์ VMware๊ฐ ๊ถ์ฅํ๋ ๊ธฐ๋ณธ๊ฐ์ผ๋ก
์ฒซ ๋ฒ์งธ LUN์ ํํฐ์ ๋ํ์ฌ ์ค์น๋ฅผ ์งํ ํ๋ ๋ฐฉ๋ฒ์ด๊ณ Advanced setu์ ์ฌ์ฉ์๊ฐ ํํฐ์
์ ๋ณด๋ฅผ ์์ ํ์ฌ ์ค์นํ๋ ๋ฐฉ๋ฒ์ ๋๋ค.
์ค์น ํ์ผ์ด ์ ์ฅ๋ ๋์๋์คํฌ๋ฅผ ์ ํํ๋ ํ๋ฉด์ ๋๋ค. ์ค์น ๋์ ๋์คํฌ๋ฅผ ์ ํํ๊ณ Next
๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
ํด๋น ๋์คํฌ์ ๋ฐ์ดํฐ๊ฐ ์กฒ์ฌํ ๊ฒฝ์ฐ ๋ชจ๋ ์ฌ๋ผ์ง๋ค๋ ๊ฒฝ๊ณ ๋ฉ์์ง๊ฐ ์ถ๋ ฅ ๋ฉ๋๋ค. Ok ๋ฒํบ์
ํด๋ฆญํฉ๋๋ค.
- 9 -
๊ฐ์ ๋จธ์์ ๋ด์๋๊ธฐ ์ํ ์ ์ฅ์, ์ฆ ๋ฐ์ดํฐ์คํ ์ด์ ์ด๋ฆ์ ์ง์ ํ๋ ํ๋ฉด์ ๋๋ค.
์ ์ ํ ์ด๋ฆ์ ์ ๋ ฅ ํ Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
ํํฐ์ ํ์ธ ๋ฐ ์ฌ ์ค์ ์ ํฉ๋๋ค.
- 10 -
Time Zone ์ค์ ํ๋ฉด์ผ๋ก ์์คํ ์ด ์ด์๋ ์์น๋ฅผ ์ ํ ํ Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
Date and Time ์ค์ ํ๋ฉด์ผ๋ก ์๊ฐ์ ์ค์ ํฉ๋๋ค.
- 11 -
Root ๊ณ์ ์ ์ํธ ๋ฐ ์ฌ์ฉ์๋ฅผ ์ถ๊ฐ ํ ์ ์์ต๋๋ค. Roo password ๋ฅผ ๋ฑ๋กํ๊ณ
Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
์ค์น ์งํ ์ ์ต์ข ์ ์ผ๋ก ์ ๋ ฅ ์ ๋ณด๋ฅผ ํ์ธ ํ๋ ํ๋ฉด ์ ๋๋ค. ๊ฒํ ํ Next ๋ฒํบ์ ํด๋ฆญํ๋ฉด
์ค์น๊ฐ ์งํ ๋ฉ๋๋ค.
- 12 -
์ค์น ์๋ฃ ํ๋ฉด์ ๋๋ค. Finish ๋ฒํบ์ ํด๋ฆญํ๋ฉด ์์คํ ์ด ์ฌ์์ ๋ฉ๋๋ค.
์์คํ ์ด ์ ์์ ์ผ๋ก ์ฌ ์์๋๋ค๋ฉด ์ต์ข ์ ์ผ๋ก ์์ ๊ฐ์ ์ฝ์ ํ๋ฉด์ด ์ถ๋ ฅ๋ฉ๋๋ค
3. vSphere client install
ESX ์๋ฒ๋ฅผ ๊ด๋ฆฌํ๋ ๋ฐฉ๋ฒ์๋ ์ฌ๋ฌ๊ฐ์ง๊ฐ ์์ง๋ง ๋ฐ๋์ ์ฌ์ฉํด์ผ ํ๋ ๋๊ตฌ๊ฐ
vSphere client ์ ๋๋ค. vSphere client ๋ ์๋์ฐ ๊ธฐ๋ฐ์ GUI ์ดํ๋ฆฌ์ผ์ด์ ์ผ๋ก์จ
vSphere ์๋ฒ๋ฅผ ์ฝ๊ฒ ๊ด๋ฆฌํ ์ ์๋๋ก ํด์ค๋๋ค.
1. Web ์ ์ด์ฉํ์ฌ vSphere client ๋ด๋ ค ๋ฐ๊ธฐ
Web ์ ์ด์ฉํ์ฌ ESX ์๋ฒ IP (192.168.0.100) ์ฃผ์๋ก ์ ์ ํด์ ํ์ด์ง์ ์๋ Download
- 13 -
vSphere Client ๋งํฌ๋ฅผ ํด๋ฆญํ๋ค.
2. VSphere client ์ค์น
ํน๋ณํ ๋ถ๋ถ์ด ์์ผ๋ ๋ค์ ์ค์น ํ๋ฉด์ ๋ฐ๋ผ ์ค์นํด๋ด ๋๋ค.
- 14 -
- 15 -
- 16 -
- 17 -
- 18 -
4. vSphere Client Start ๋ฐ VSphere Configuration
VSphere Server IP ๋๋ Hostname , Username, password ๋ฅผ ์ ๋ ฅํ๊ณ Login ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
- 19 -
์ผ์ชฝ์ฐฝ์ IP ๋๋ Hostname ์ ์ ํํ๊ณ ์ค๋ฅธ์ชฝ ์ฐฝ ์๋จ์ Configuration tab์ ์ ํํ๋ฉด
์๋์ ๊ฐ์ด VSphere ์ค์ ํ๋ฉด์ด ๋์ต๋๋ค. ๊ทธ ์ค Networking ์ ์ ํํฉ๋๋ค.
๊ฐ๊ฐ์ RAC Node ๋ ์ต์ํ 2๊ฐ์ Network (Public, Cluster InterConnect) ์ด ํ์ํฉ๋๋ค.
๋ณ๋์ InterConnect ์ฉ Network ์ ๊ตฌ์ฑํ๊ธฐ ์ํด Virtual Switch ๋ฅผ ๊ตฌ์ฑํ๋๋ก ํฉ๋๋ค.
Networking ๊ตฌ์ฑ ํ๋ฉด ์๋ถ๋ถ (์ค๋ฅธ์ชฝ ์๋จ) ์ Add Networking ์ ํด๋ฆญํฉ๋๋ค.
- 20 -
Connection Type ์ผ๋ก์จ Virtual Machine ๋ฅผ ์ ํํ๊ณ Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
Create a virtual switch ์ ์ ํํ๊ณ Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
- 21 -
Virtual Switch ์ ๋ํ Network Lable ์ํ๋ ์ด๋ฆ์ผ๋ก ์ง์ ํ๊ณ Next ๋ฒํบ์ ํด๋ฆฝํฉ๋๋ค.
Summary ํ๋ฉด์ ๋๋ค. ์ํ๋ ๊ตฌ์ฑ์ด ๋ง๋์ง ํ์ธํ๊ณ ๋ง๋ค๋ฉด Finish ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค..
- 22 -
Virtual Switch ๊ตฌ์ฑ์ด ์๋ฃ๋ ๊ตฌ์ฑ ํ๋ฉด์ ๋๋ค.
์ฌ๊ธฐ์๋ Oracle 11.2.0.2 RAC New Feature ์ค์ ํ๋์ธ HAIP์ ๋ํด ์์๋ณด๊ธฐ ์ํด
Cluster Interconnect ์ฉ VSwitch๋ฅผ ํ๋ ๋ ์์ฑํ์์ต๋๋ค.
- 23 -
5. ๊ฐ์๋จธ์ ์์ฑ ๋ฐ OS ์ค์น
1. ๊ฐ์๋จธ์ ์์ฑ
๊ฐ์๋จธ์์ ์ค๋ฅธ์ชฝ ์ฐฝ์ VSphere Host ๋ฐ IP ๋ฅผ ์ ํํ์๊ณ ๋ง์ฐ์ค ์ค๋ฅธ์ชฝ ๋ฒํบ์ ํด๋ฆญํ ํ
New Virtual Machine ์ ํด๋ฆญํ์ฌ ์์ฑํ ์ ์์ต๋๋ค.
- 24 -
๊ฐ์๋จธ์์ ์์์ ์ ๋ง์ ๋ง๊ฒ ํ์ํ ๋ด์ฉ์ ๊ตฌ์ฑํ๊ธฐ ์ํ์ฌ Custom ์ ์ ํํ ํ Next ๋ฒ
ํบ์ ํด๋ฆฝํฉ๋๋ค.
์ํ๋ ๊ฐ์๋จธ์์ ์ด๋ฆ์ ์ง์ ํฉ๋๋ค.
- 25 -
๊ฐ์๋จธ์์ด ์ ์ฅ๋ Datastore ์ ์์น๋ฅผ ์ ํํฉ๋๋ค. ์ฌ๊ธฐ์๋ VSphere ์๋ฒ๋ฅผ ์ค์น ํ ๋ ๋ฏธ
๋ฆฌ ์ค์ ํด ๋์ VMFS DataStore ๋ฐ์ ์์ผ๋ฏ๋ก Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค
๊ฐ์๋จธ์ ๋ฒ์ ์ ์ ํํ๊ณ Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
- 26 -
์ด๋ ํ Guest OS ๋ฅผ ์ค์นํ ๊ฒ์ธ์ง ์ ํํฉ๋๋ค ์ฌ๊ธฐ์๋ Oracle Linux 5.6 ๋ฅผ ์ค์นํ ๊ฒ์ด๊ธฐ ๋
๋ฌธ์ Oracle Linux 5 ๋ฅผ ์ ํํ ํ Next ๋ฒํบ์ ํด๋ฆฝํฉ๋๋ค.
๊ฐ์ CPU ๊ฐ์๋ฅผ ์ ํํฉ๋๋ค.
- 27 -
๊ฐ์ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ์ค์ ํ ํ Next ๋ฅผ ์ ํํฉ๋๋ค. 11g RAC ๋ ์ต์ 1.5GB ์ด์์ ๋ฉ๋ชจ๋ฆฌ๋ฅผ
์๊ตฌํฉ๋๋ค.
Network ์ค์ ํ๋ฉด์ ๋๋ค. ์์ ๊ฐ์ด ์ ํํ์ ํ Next ๋ฒํบ์ ํด๋ฆฝํฉ๋๋ค.
- 28 -
๊ฐ์ SCSI ์ปจํธ๋กค๋ฌ ์ ํํ๋ฉด์ ๋๋ค. ๋ฒ์ฉ์ ์ผ๋ก ์ฐ์ด๋ LSI logic Parallel ์ ์ ํํ๊ณ Next ๋ฒ
ํบ์ ํด๋ฆฝํฉ๋๋ค.
Create a new virtual disk ๋ฅผ ์ ํํ ํ Next ๋ฒํบ์ ํด๋ฆฝํฉ๋๋ค.
- 29 -
๊ฐ์๋จธ์์๊ฒ ํ ๋นํ Disk ํฌ๊ธฐ๋ฅผ ์ง์ ํฉ๋๋ค.
๊ฐ์๋จธ์์ SCSI ID ์ ํํ๋ฉด์ ๋๋ค Default๋ก ์ ํํ๊ณ Next ๋ฒํบ์ ํด๋ฆฝ๋๋ค.
- 30 -
์ต์ข Review ํ๋ฉด์ ๋๋ค.
2. OS ์ค์น
OS ์ค์น๋ ์๋ ์ค์น ๊ณผ์ ์ ๋ฐ๋ผ ์ค์นํด๋ณด์๊ธธ ๋ฐ๋๋๋ค.
OS ๋ฅผ Oracle Linux ๋ก ์ ํํ ์ด์ ๋ Oracle ์ ์ค์น ํ๊ธฐ ์ํ ํ์ํ ์กฐ๊ฑด๋ค์ด ๊ฑฐ์ ์ค
์น ๋ฐ ์ ํ ๋์ด ์์ด์ ๋ณ๋์ ์์ ์ด ํ์ํ์ง ์๊ธฐ ๋๋ฌธ์ ๋๋ค.
- 31 -
- 32 -
- 33 -
- 34 -
ํํฐ์ ์ค์ ์ ๋๋ค.
- 35 -
๋คํธ์ ์ค์ ์ ๋๋ค.
- 36 -
- 37 -
ํจํค์ง ์ค์น ์ ๋๋ค.
- 38 -
- 39 -
- 40 -
- 41 -
- 42 -
- 43 -
- 44 -
RAC๋ฅผ ๊ตฌ์ฑํ๊ธฐ ์ํ 2๋ฒ์งธ ๊ฐ์ ๋จธ์ ์์ฑ๋ ์ด์ ๊ฐ์ ๋ฐฉ๋ฒ์ผ๋ก ๋ฐ๋ณตํฉ๋๋ค.
- 45 -
6. vSphere CLI ์ค์น ๋ฐ Virtual Storage Configuration
vSphere CLI ๋ Linux ๋๋ Windows ์ ์ค์น๋ฅผ ํ์ฌ ์๊ฒฉ์ผ๋ก CLI ๋ช ๋ น์ ์คํ ํ ์ ์๋
ํ๋ก๊ทธ๋จ์ ๋๋ค.
RAC ๋ฅผ ๊ตฌ์ฑํ๊ธฐ ์ํด์๋ ์์ชฝ ๋ ธ๋๊ฐ์ Datfile์ด ๋ฐ๋ฏ์ด ๊ณต์ ๋์ด์ผ ํฉ๋๋ค
์ฌ๊ธฐ์๋ ๊ฐ์๋จธ์๊ฐ์ ๊ณต์ ๋์คํฌ (VMFS)๋ฅผ ์ค์ ํ๊ธฐ ์ํ์ฌ vSphere CLI ๋ฅผ ์ฌ์ฉํ๋๋ก ํฉ๋๋ค.
1. vSphere CLI ์ค์น
vSphere CLI๋ vmware ํํ์ด์ง์์ ๋ฌด๋ฃ๋ก ๋ค์ด ๋ฐ์ ์ ์์ผ๋ฏ๋ก ๋ค์ด ๋ฐ์ ํ ์ค์นํฉ๋๋ค.
- 46 -
- 47 -
- 48 -
- 49 -
2. Virtual Machine Storage ๊ตฌ์ฑ
์์ ๊ฐ์ด ์๋์ฐ ์์๋ฉ๋ด์์ CLI Command Prompt ๋ฅผ ์คํํฉ๋๋ค.
RAC ๋ฅผ ๊ตฌ์ฑํ๊ธฐ ์ํด์๋ OCR, VOTE, DATA File ์ด ์์ชฝ ๋ ธ๋๊ฐ์ ๊ณต์ ๋ ์ ์์ด์ผ ํฉ๋๋ค.
๋ค์๊ณผ ๊ฐ์ Vmfkstools.pl ๋ช ๋ น์ด๋ก OCR, VOTE ๋ฅผ ์ ์ฅํ ์ ์๋ CRS์ Oracle Datafile๋ค์
์ ์ฅํ ์ ์๋ DATA ASM์ฉ ๋์คํฌ๋ฅผ ์์ฑํด๋ณด๋๋ก ํฉ๋๋ค.
Vmfkstools.pl โserver 192.168.0.100 โc 5g โd eagerzeroedthick โa lsilogic
/vmfs/volumes/datastore1/ordata/crs.vmdk
Vmfkstools.pl โserver 192.168.0.100 โc 20g โd eagerzeroedthick โa lsilogic
/vmfs/volumes/datastore1/ordata/data.vmdk
- 50 -
๊ฐ์๋จธ์์ ๋์คํฌ๋ฅผ ์ถ๊ฐ ํ๊ธฐ ์ํ์ฌ ๊ฐ์๋จธ์์ shutdown ํ ํ vSphere Client ์์
์ค๋ฅธ์ชฝ ํ๋ฉด์ ๊ฐ์๋จธ์์ ์ ํํ ํ ๋ง์ฐ์ค ์ค๋ฅธ์ชฝ ๋ฒํบ์ ํด๋ฆญํ์ฌ Edit Settin์ ํด๋ฆญํฉ๋๋ค.
๊ทธ๋ฌ๋ฉด ์๋์ ๊ฐ์ Virtual Machine Properties ํ๋ฉด์ด ๋์ต๋๋ค.
Virtual Machine Properties ์ Add ๋ฒํบ์ ํด๋ฆฝํฉ๋๋ค.
- 51 -
Hard Disk ๋ฅผ ์ ํํ๊ณ Next ๋ฒํบ์ ํด๋ฆฝํฉ๋๋ค.
Use an existing virtual disk ๋ฅผ ์ ํํ ํ Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
- 52 -
vSphere CLI ์์ ์์ฑํ crs.vmdk ์ฐพ์์ ์ ํํฉ๋๋ค.
๊ฐ์๋จธ์์ SCSI ID ๋ฅผ ์ ํํฉ๋๋ค. System ์์ญ๊ณผ ๋ถ๋ฆฌํ๊ธฐ ์ํ์ฌ SCSI 1:0 ์ ์ ํํฉ๋๋ค.
- 53 -
Disk ์์ฑ์ด ์๋ฃ๋์์ผ๋ฉด New SCSI Controller ์ ์ ํํ ํ Physical ๋ก ๋ณ๊ฒฝํด์ค๋๋ค.
- 54 -
๋๋จธ์ง DATA Disk ๋ ๋ฐ๋ณตํด์ ์ถ๊ฐ ํฉ๋๋ค.
7. Oracle Pre-Installation Steps
7.1. Preparing the system
7.1.1. Host file Configuration
/etc/hosts ํ์ผ์ ๊ฐ ๋ ธ๋์ Pulic IP ์ฃผ์ ๋ฐ VIP, Interconnect ์ฃผ์๋ฅผ ๋ฑ๋กํจ
(root ์ฌ์ฉ์๋ก ์์ชฝ ๋ ธ๋ ๋ชจ๋ ์ํํจ.)
[root@rac1]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.110 rac1.pchyun.com rac1
192.168.0.120 rac2.pchyun.com rac2
# Private LAN For Oracle RAC Interconnection
10.1.1.10 rac1-priv1.pchyun.com rac1-priv1
10.1.1.11 rac1-priv2.pchyun.com rac1-priv2
10.1.1.20 rac2-priv1.pchyun.com rac2-priv1
10.1.1.21 rac2-priv2.pchyun.com rac2-priv2
- 55 -
# Public Oracle Virtual IP -(VIP)
192.168.0.111 rac1-vip.pchyun.com rac1-vip
192.168.0.121 rac2-vip.pchyun.com rac2-vip
# Public Oracle Scan IP
# 192.168.0.160 rac-scan.pchyun.com rac-scan
โ Oracle Grid infrastructure ๋ฅผ ์ํด์๋ DNS ์ 3๊ฐ์ scan IP ๊ฐ ํ์์ง๋ง DNS ์์ด hosts file
์ ์ด์ฉํ scan IP 1๊ฐ๋ก ๊ตฌ์ฑํ์ฌ ์ฌ์ฉํ ์๋ ์๋ค ์ฌ๊ธฐ์๋ DNS ์๋ฒ์
โ192.168.0.151, 192.168.0.152. 192.168.0.153โ 3๊ฐ์ IP๋ฅผ rac-scan.pchyun.com ์ผ๋ก ๋ฑ๋กํ์์ต
๋๋ค.
scan ์์ด ์ด์ ๋ฒ์ ๋ฐฉ์์ผ๋ก ์ฌ์ฉํ ์ ์์ง๋ง EM(Enterprise Manager)๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํด์๋
๋ฐ๋ฏ์ด SCAN ์ค์ ์ด ํ์ํจ.
7.1.2. Kernel Sysctl Configuration
/etc/sysctl.conf ํ์ผ์ Orcle์ ๊ธฐ์ข ํ๊ธฐ ์ํ OS Kernel ๊ฐ์ ๊ฐ ๋ ธ๋์ ์์ ํ ํ
์ ์ฉํ์ฌ์ผ ํ์ง๋ง Oracle Linux๋ ๊ธฐ๋ณธ์ ์ผ๋ก Oracle DB์ ํ์ํ ๊ฐ์ด ์ ํ ์ด ๋์ด
์์ต๋๋ค. ๋ณ๊ฒฝ ํ ๋ด์ฉ์ด ์์ผ๋ฉด ๋ณ๊ฒฝ์ ํ ํ sysctl โp ๋ช ๋ น์ด๋ก ๋ณ๊ฒฝ๋ ์ค์ ์ฌํญ
์ ์ ์ฉํฉ๋๋ค.
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmni = 4096
kernel.sem = 2700 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
kernel.shmmax = 8589934592
7.1.3. User resource limit ์ค์
/.etc/security/limits.conf ์ OS User ์ ์ค์ ๋ Limit ๊ฐ์ ์กฐ์ ํฉ๋๋ค. Oracle Linux ๋
oracle User์ ๋ํด์๋ง ์ ํ ์ด ๋์ด ์์ผ๋ฏ๋ก grid User ์ ๋ํด ๊ฐ์ ์ค์ ํด์ค๋๋ค.
(root ์ฌ์ฉ์๋ก ์์ชฝ๋ ธ๋ ๋ชจ๋ ์ํํจ.)
oracle soft nofile 131072
oracle hard nofile 131072
oracle soft nproc 131072
- 56 -
limit ์ค์ ์ด user login ํ์ ์ ์ฉ ๋ ์ ์๋๋ก pam ์ ๋ฑ๋ก ํจ.
/etc/pam.d/login ์ ์๋ ํญ๋ชฉ์ ์ถ๊ฐ ํฉ๋๋ค.
(root ์ฌ์ฉ์๋ก ์์ชฝ๋ ธ๋ ๋ชจ๋ ์ํํจ.)
session required /lib/security/pam_limits.so
7.1.4. NTP ์ค์
11g r2 RAC ๋ถํฐ Time ๋๊ธฐํ๋ฅผ ์ํด ๋๊ฐ์ง ์ข ๋ฅ์ ์ค์ ๋ฒ์ด ์กฒ์ฌํฉ๋๋ค.
โ NTP ๋ฅผ ์ด์ฉํ ๊ฒฝ์ฐ
NTP ๋ฅผ ์ด์ฉํ์ฌ cluster node ๊ฐ Time ๋๊ธฐํ๋ฅผ ์ํํ๋ ๊ฒ์ผ๋ก ๋ฐ๋ฏ์ด โx ์ต์ ์ผ๋ก ntp ๋ฅผ
์ฌ์ฉํด์ผํจ.
/etc/sysconfig/ntpd ์ ์๋์ ๊ฐ์ด โ-xโ ์ต์ ์ ์ถ๊ฐํ ํ ntp service ๋ฅผ restart ํจ
โ NTP ๋ฅผ ์ด์ฉํ์ง ์๋ ๊ฒฝ์ฐ
NTP ๋ฅผ ์ด์ฉํ์ง ์๋ ๊ฒฝ์ฐ Grid Infrastructure ์์๋ CTSSD daemon ์ ํตํด ์์ฒด์ ์ผ๋ก ๋
๊ธฐํ๋ฅผ ์ํํจ. ๋ฐ๋ก ์ค์ ์ด ํ์์์.
์ฌ๊ธฐ์๋ NTP ์ด์ฉํ์ง ์๊ณ CTSSD ์ด์ฉํ๊ธฐ๋ก ํฉ๋๋ค.
7.1.5. User Shell Configuration
grid , oracle ์ฌ์ฉ์์ shell ํ๊ฒฝ์ ์ค์ ํจ.
( ๊ฐ ์ฌ์ฉ์๋ก ์๋์ ๊ฐ์ด ๊ฐ๊ฐ ์ค์ ํจ.)
oracle hard nproc 131072
oracle soft core unlimited
oracle hard core unlimited
oracle soft memlock 3500000
oracle hard memlock 3500000
grid soft nofile 131072
grid hard nofile 131072
grid soft nproc 131072
grid hard nproc 131072
grid soft core unlimited
grid hard core unlimited
grid soft memlock 3500000
grid hard memlock 3500000
- 57 -
grid user
rac1 rac2
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/us
r/local/bin:/usr/local/sbin
export PATH
export GRID_HOME=/app/grid/ 11.2.0.2
export ORACLE_SID=+ASM1
export
PATH=$GRID_HOME/bin:$GRID_HOME/OPatch:$PATH
export ORACLE_HOME=/app/grid/ 11.2.0.2
export DISPLAY=192.168.*.*:0.0
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/us
r/local/bin:/usr/local/sbin
export PATH
export GRID_HOME=/app/grid/ 11.2.0.2
export ORACLE_SID=+ASM2
export
PATH=$GRID_HOME/bin:$GRID_HOME/OPatch:$PATH
export ORACLE_HOME=/app/grid/ 11.2.0.2
export DISPLAY=192.168.*.*:0.0
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
oracle user
rac1 rac2
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
stty erase ^H
export ORACLE_BASE=/app/oracle
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
stty erase ^H
export ORACLE_BASE=/app/oracle
- 58 -
export ORACLE_HOME=$ORACLE_BASE/11.2.0.2
export ORACLE_SID=RAC1
export ORACLE_UNQNAME=RAC
export ORACLE_TERM=xterm
export PATH=/usr/sbin:$PATH
export
PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PA
TH
export
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$
ORACLE_HOME/rdbms/jlib
export DISPLAY=192.168.6.17:0.0
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
export ORACLE_HOME=$ORACLE_BASE/11.2.0.2
export ORACLE_SID=RAC2
export ORACLE_UNQNAME=RAC
export ORACLE_TERM=xterm
export PATH=/usr/sbin:$PATH
export
PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PA
TH
export
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$
ORACLE_HOME/rdbms/jlib
export DISPLAY=192.168.6.40:0.0
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
7.1.6. SSH ์ค์
RAC ์ค์น๋ฅผ ์ํด์๋ ์ ๋ ธ๋๊ฐ ์ค์น ํ์ผ ์ ์ก ๋ฐ ์คํ์ ์ํ password ์์ด ์ ์์ด ๊ฐ๋ฅํด์ผ ํจ.
โ ์์ชฝ ๋ ธ๋ , grid , oracle user ์์ ssh nodename date ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ์ฌ password ์ ๋ ฅ ์์ด
์๋ ์คํ ๊ฐ๋ฅํ์ง ํ์ธ ํจ.
7.2. Preparing Oracle ASM
7.2.1. ASM LIBRARY
Linux ์์ ASM ๊ตฌ์ฑ์๋ ํฌ๊ฒ ๋๊ฐ์ง ๋ฐฉ์์ด ์์ต๋๋ค.
1) ASM with ASMLIB I/O : ASM ์ด raw block devices ๋ฅผ ASMLib ๋ฅผ ํตํด ์ด์. Raw device
์ค์ ์ด ๋ฐ๋ก ํ์ ์์.
2) ASM with Standard Linux I/O : ASM์ด raw block devices ๋ฅผ Linux system I/O call ๋ฅผ ์ด์ฉ.
ASM ์ด ์ฌ์ฉํด์ผํ๋ ๋ชจ๋ partition ์ ๋ํด raw device ๋ฅผ ์์ฑ ์์ผ ์ฃผ์ด์ผ ํจ.
โ ์ฌ๊ธฐ์๋ ASMLIB ๋ฅผ ์ฌ์ฉํ๋ ๋ฐฉ์์ผ๋ก ํฉ๋๋ค.
- 59 -
7.2.2. ASM Configuration
Oracle ASM Module์ ์ฌ์ฉํ๊ธฐ ์ํด์๋ ๋ฐ๋์ configuration ์ ํด์ผํจ.
์๋์ ๊ฐ์ด asm module ์ ์ค์ ํจ.
(root ์ฌ์ฉ์๋ก ์์ชฝ ๋ ธ๋ ๋ชจ๋ ์ํํจ.)
rac1, rac2
[root@rac1 ~]#
[root@rac1 ~]# cd /etc/init.d
[root@rac1 init.d]# ./oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: grid
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@rac1 init.d]#
7.2.3. Create ASM VOLUME.
ASM ์ ๊ตฌ์ฑํ VOLUME DISK๋ฅผ ์์ฑํ๊ณ ํ์ธํฉ๋๋ค.
.
(root ์ฌ์ฉ์๋ก rac1 ์์ ์ํํจ.)
[root@rac1 init.d]# fdisk -l
Disk /dev/sda: 55.8 GB, 55834574848 bytes
255 heads, 63 sectors/track, 6788 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 6788 54420187+ 8e Linux LVM
Disk /dev/sdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
- 60 -
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/dm-0: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 34.2 GB, 34225520640 bytes
255 heads, 63 sectors/track, 4161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-2 doesn't contain a valid partition table
[root@rac1 init.d]#
[root@rac1 init.d]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/sdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
- 61 -
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-652, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-652, default 652):
Using default value 652
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@rac1 init.d]# fdisk /dev/sdc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 2610.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/sdc: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
- 62 -
Partition number (1-4): 1
First cylinder (1-2610, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-2610, default 2610):
Using default value 2610
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@rac1 init.d]#
[root@rac1 init.d]# fdisk -l
Disk /dev/sda: 55.8 GB, 55834574848 bytes
255 heads, 63 sectors/track, 6788 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 6788 54420187+ 8e Linux LVM
Disk /dev/sdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 652 5237158+ 83 Linux
Disk /dev/sdc: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 2610 20964793+ 83 Linux
Disk /dev/dm-0: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 34.2 GB, 34225520640 bytes
255 heads, 63 sectors/track, 4161 cylinders
- 63 -
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-2 doesn't contain a valid partition table
[root@rac1 init.d]#
[root@rac1 init.d]# cd
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# oracleasm createdisk CRS /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@rac1 ~]# oracleasm createdisk DATA /dev/sdc1
Writing disk header: done
Instantiating disk: done
[root@rac1 ~]# oracleasm listdisks
CRS
DATA
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# cd /dev/oracleasm/disks/
[root@rac1 disks]# ls -alrt
total 0
drwxr-xr-x 4 root root 0 Jul 3 04:09 ..
drwxr-xr-x 1 root root 0 Jul 3 04:09 .
brw-rw---- 1 grid dba 8, 17 Jul 3 04:13 CRS
brw-rw---- 1 grid dba 8, 33 Jul 3 04:13 DATA
[root@rac1 disks]#
โ ๋ฐ๋ํธ ๋ ธ๋์์ ASM VOL Disk๋ฅผ ์ธ์์ํค๊ณ ์กฐํํฉ๋๋ค.
(root ์ฌ์ฉ์๋ก rac2 ์์ ์ํํจ.)
[root@rac2 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "CRS"
Instantiating disk "DATA"
[root@rac2 ~]# oracleasm listdisks
- 64 -
CRS
DATA
[root@rac2 ~]#
[root@rac2 ~]# cd /dev/oracleasm/disks
[root@rac2 disks]# ls -alrt
total 0
drwxr-xr-x 4 root root 0 Jul 3 04:09 ..
drwxr-xr-x 1 root root 0 Jul 3 04:09 .
brw-rw---- 1 grid dba 8, 17 Jul 3 04:14 CRS
brw-rw---- 1 grid dba 8, 33 Jul 3 04:14 DATA
7.3. Install requirement ํ์ธ
7.3.1. cluster verify utility
์ค์น ์ ๋ง์ง๋ง์ผ๋ก ์์ชฝ ๋ ธ๋์์ ์ค์น์ ํ์ํ ๋ชจ๋ ์ค์ ์ด ์๋ฃ ๋์๋์ง ํ์ธํฉ๋๋ค.
์๋ ๋ช ๋ น์ด์ ๊ฒฐ๊ณผ๋ ๋ฐ๋ฏ์ด ๋ชจ๋ ํต๊ณผํด์ผ๋ง ์ค์น ํ ์ ์๋ ๊ฒ์ ์๋์ง๋ง ๊ถ๊ณ ์ฌํญ์ผ๋ก
๋ชจ๋ ํต๊ณผ ํ ์ ์๋๋ก ์ค๋นํด์ผ ํฉ๋๋ค.
(grid ์ฌ์ฉ์๋ก rac1 ์์ ์ํํฉ๋๋ค.).
Grid Infrastructure Media ์์น๋ก ์ด๋.
[grid@rac1 grid]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose
Performing pre-checks for cluster services setup
Checking node reachability...
Check: Node reachability from node "rac1"
Destination Node Reachable?
------------------------------------ ------------------------
rac2 yes
rac1 yes
Result: Node reachability check passed from node "rac1"
Checking user equivalence...
Check: User equivalence for user "grid"
Node Name Comment
------------------------------------ ------------------------
rac2 passed
rac1 passed
Result: User equivalence check passed for user "grid"
- 65 -
Checking node connectivity...
Checking hosts config file...
Node Name Status Comment
------------ ------------------------ ------------------------
rac2 passed
rac1 passed
Verification of the hosts config file successful
Interface information for node "rac2"
Name IP Address Subnet Gateway Def. Gateway HW Address MTU
------ --------------- --------------- --------------- --------------- ----------------- ------
eth0 192.168.0.120 192.168.0.0 0.0.0.0 192.168.0.1 00:0C:29:7C:99:99 1500
eth1 10.1.1.20 10.1.1.0 0.0.0.0 192.168.0.1 00:0C:29:7C:99:A3 1500
eth2 10.1.1.21 10.1.1.0 0.0.0.0 192.168.0.1 00:0C:29:7C:99:AD 1500
Interface information for node "rac1"
Name IP Address Subnet Gateway Def. Gateway HW Address MTU
------ --------------- --------------- --------------- --------------- ----------------- ------
eth0 192.168.0.110 192.168.0.0 0.0.0.0 192.168.0.1 00:0C:29:64:BF:F1 1500
eth1 10.1.1.10 10.1.1.0 0.0.0.0 192.168.0.1 00:0C:29:64:BF:FB 1500
eth2 10.1.1.11 10.1.1.0 0.0.0.0 192.168.0.1 00:0C:29:64:BF:05 1500
Check: Node connectivity of subnet "192.168.0.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
rac2[192.168.0.120] rac1[192.168.0.110] yes
Result: Node connectivity passed for subnet "192.168.0.0" with node(s) rac2,rac1
Check: TCP connectivity of subnet "192.168.0.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
rac1:192.168.0.110 rac2:192.168.0.120 passed
Result: TCP connectivity check passed for subnet "192.168.0.0"
Check: Node connectivity of subnet "10.1.1.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
rac2[10.1.1.20] rac2[10.1.1.21] yes
- 66 -
rac2[10.1.1.20] rac1[10.1.1.10] yes
rac2[10.1.1.20] rac1[10.1.1.11] yes
rac2[10.1.1.21] rac1[10.1.1.10] yes
rac2[10.1.1.21] rac1[10.1.1.11] yes
rac1[10.1.1.10] rac1[10.1.1.11] yes
Result: Node connectivity passed for subnet "10.1.1.0" with node(s) rac2,rac1
Check: TCP connectivity of subnet "10.1.1.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
rac1:10.1.1.10 rac2:10.1.1.20 passed
rac1:10.1.1.10 rac2:10.1.1.21 passed
rac1:10.1.1.10 rac1:10.1.1.11 passed
Result: TCP connectivity check passed for subnet "10.1.1.0"
Interfaces found on subnet "192.168.0.0" that are likely candidates for VIP are:
rac2 eth0:192.168.0.120
rac1 eth0:192.168.0.110
Interfaces found on subnet "10.1.1.0" that are likely candidates for a private interconnect are:
rac2 eth1:10.1.1.20
rac1 eth1:10.1.1.10
Interfaces found on subnet "10.1.1.0" that are likely candidates for a private interconnect are:
rac2 eth2:10.1.1.21
rac1 eth2:10.1.1.11
Result: Node connectivity check passed
Checking ASMLib configuration.
Node Name Comment
------------------------------------ ------------------------
rac2 passed
rac1 passed
Result: Check for ASMLib configuration passed.
Check: Total memory
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 2.9711GB (3115400.0KB) 1.5GB (1572864.0KB) passed
rac1 2.9711GB (3115400.0KB) 1.5GB (1572864.0KB) passed
Result: Total memory check passed
- 67 -
Check: Available memory
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 2.8517GB (2990212.0KB) 50MB (51200.0KB) passed
rac1 2.764GB (2898224.0KB) 50MB (51200.0KB) passed
Result: Available memory check passed
Check: Swap space
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 10GB (1.0485752E7KB) 2.9711GB (3115400.0KB) passed
rac1 10GB (1.0485752E7KB) 2.9711GB (3115400.0KB) passed
Result: Swap space check passed
Check: Free disk space for "rac2:/tmp"
Path Node Name Mount point Available Required Comment
---------------- ------------ ------------ ------------ ------------ ------------
/tmp rac2 / 5.3994GB 1GB passed
Result: Free disk space check passed for "rac2:/tmp"
Check: Free disk space for "rac1:/tmp"
Path Node Name Mount point Available Required Comment
---------------- ------------ ------------ ------------ ------------ ------------
/tmp rac1 / 5.3742GB 1GB passed
Result: Free disk space check passed for "rac1:/tmp"
Check: User existence for "grid"
Node Name Status Comment
------------ ------------------------ ------------------------
rac2 exists(1000) passed
rac1 exists(1000) passed
Checking for multiple users with UID value 1000
Result: Check for multiple users with UID value 1000 passed
Result: User existence check passed for "grid"
Check: Group existence for "oinstall"
Node Name Status Comment
------------ ------------------------ ------------------------
rac2 exists passed
rac1 exists passed
Result: Group existence check passed for "oinstall"
Check: Group existence for "dba"
- 68 -
Node Name Status Comment
------------ ------------------------ ------------------------
rac2 exists passed
rac1 exists passed
Result: Group existence check passed for "dba"
Check: Membership of user "grid" in group "oinstall" [as Primary]
Node Name User Exists Group Exists User in Group Primary Comment
---------------- ------------ ------------ ------------ ------------ ------------
rac2 yes yes no N/A failed
rac1 yes yes no N/A failed
Result: Membership check for user "grid" in group "oinstall" [as Primary] failed
Check: Membership of user "grid" in group "dba"
Node Name User Exists Group Exists User in Group Comment
---------------- ------------ ------------ ------------ ----------------
rac2 yes yes yes passed
rac1 yes yes yes passed
Result: Membership check for user "grid" in group "dba" passed
Check: Run level
Node Name run level Required Comment
------------ ------------------------ ------------------------ ----------
rac2 5 3,5 passed
rac1 5 3,5 passed
Result: Run level check passed
Check: Hard limits for "maximum open file descriptors"
Node Name Type Available Required Comment
---------------- ------------ ------------ ------------ ----------------
rac2 hard 131072 65536 passed
rac1 hard 131072 65536 passed
Result: Hard limits check passed for "maximum open file descriptors"
Check: Soft limits for "maximum open file descriptors"
Node Name Type Available Required Comment
---------------- ------------ ------------ ------------ ----------------
rac2 soft 131072 1024 passed
rac1 soft 131072 1024 passed
Result: Soft limits check passed for "maximum open file descriptors"
Check: Hard limits for "maximum user processes"
Node Name Type Available Required Comment
---------------- ------------ ------------ ------------ ----------------
rac2 hard 131072 16384 passed
- 69 -
rac1 hard 131072 16384 passed
Result: Hard limits check passed for "maximum user processes"
Check: Soft limits for "maximum user processes"
Node Name Type Available Required Comment
---------------- ------------ ------------ ------------ ----------------
rac2 soft 131072 2047 passed
rac1 soft 131072 2047 passed
Result: Soft limits check passed for "maximum user processes"
Check: System architecture
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 i686 x86 passed
rac1 i686 x86 passed
Result: System architecture check passed
Check: Kernel version
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 2.6.18-238.el5PAE 2.6.18 passed
rac1 2.6.18-238.el5PAE 2.6.18 passed
Result: Kernel version check passed
Check: Kernel parameter for "semmsl"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
rac2 250 250 passed
rac1 250 250 passed
Result: Kernel parameter check passed for "semmsl"
Check: Kernel parameter for "semmns"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
rac2 32000 32000 passed
rac1 32000 32000 passed
Result: Kernel parameter check passed for "semmns"
Check: Kernel parameter for "semopm"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
rac2 100 100 passed
rac1 100 100 passed
Result: Kernel parameter check passed for "semopm"
- 70 -
Check: Kernel parameter for "semmni"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
rac2 142 128 passed
rac1 142 128 passed
Result: Kernel parameter check passed for "semmni"
Check: Kernel parameter for "shmmax"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
rac2 4294967295 1595084800 passed
rac1 4294967295 1595084800 passed
Result: Kernel parameter check passed for "shmmax"
Check: Kernel parameter for "shmmni"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
rac2 4096 4096 passed
rac1 4096 4096 passed
Result: Kernel parameter check passed for "shmmni"
Check: Kernel parameter for "shmall"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
rac2 1073741824 2097152 passed
rac1 1073741824 2097152 passed
Result: Kernel parameter check passed for "shmall"
Check: Kernel parameter for "file-max"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
rac2 6815744 6815744 passed
rac1 6815744 6815744 passed
Result: Kernel parameter check passed for "file-max"
Check: Kernel parameter for "ip_local_port_range"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
rac2 between 9000 & 65500 between 9000 & 65500 passed
rac1 between 9000 & 65500 between 9000 & 65500 passed
Result: Kernel parameter check passed for "ip_local_port_range"
Check: Kernel parameter for "rmem_default"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
- 71 -
rac2 262144 262144 passed
rac1 262144 262144 passed
Result: Kernel parameter check passed for "rmem_default"
Check: Kernel parameter for "rmem_max"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
rac2 4194304 4194304 passed
rac1 4194304 4194304 passed
Result: Kernel parameter check passed for "rmem_max"
Check: Kernel parameter for "wmem_default"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
rac2 262144 262144 passed
rac1 262144 262144 passed
Result: Kernel parameter check passed for "wmem_default"
Check: Kernel parameter for "wmem_max"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
rac2 1048576 1048576 passed
rac1 1048576 1048576 passed
Result: Kernel parameter check passed for "wmem_max"
Check: Kernel parameter for "aio-max-nr"
Node Name Configured Required Comment
------------ ------------------------ ------------------------ ----------
rac2 3145728 1048576 passed
rac1 3145728 1048576 passed
Result: Kernel parameter check passed for "aio-max-nr"
Check: Package existence for "make-3.81( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 make-3.81-3.el5 make-3.81( i686) passed
rac1 make-3.81-3.el5 make-3.81( i686) passed
Result: Package existence check passed for "make-3.81( i686)"
Check: Package existence for "binutils-2.17.50.0.6( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 binutils-2.17.50.0.6-14.el5 binutils-2.17.50.0.6( i686) passed
rac1 binutils-2.17.50.0.6-14.el5 binutils-2.17.50.0.6( i686) passed
Result: Package existence check passed for "binutils-2.17.50.0.6( i686)"
- 72 -
Check: Package existence for "gcc-4.1.2( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 gcc-4.1.2-50.el5 gcc-4.1.2( i686) passed
rac1 gcc-4.1.2-50.el5 gcc-4.1.2( i686) passed
Result: Package existence check passed for "gcc-4.1.2( i686)"
Check: Package existence for "gcc-c++-4.1.2( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 gcc-c++-4.1.2-50.el5 gcc-c++-4.1.2( i686) passed
rac1 gcc-c++-4.1.2-50.el5 gcc-c++-4.1.2( i686) passed
Result: Package existence check passed for "gcc-c++-4.1.2( i686)"
Check: Package existence for "libgomp-4.1.2( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 libgomp-4.4.4-13.el5 libgomp-4.1.2( i686) passed
rac1 libgomp-4.4.4-13.el5 libgomp-4.1.2( i686) passed
Result: Package existence check passed for "libgomp-4.1.2( i686)"
Check: Package existence for "libaio-0.3.106( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 libaio-0.3.106-5 libaio-0.3.106( i686) passed
rac1 libaio-0.3.106-5 libaio-0.3.106( i686) passed
Result: Package existence check passed for "libaio-0.3.106( i686)"
Check: Package existence for "glibc-2.5-24( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 glibc-2.5-58 glibc-2.5-24( i686) passed
rac1 glibc-2.5-58 glibc-2.5-24( i686) passed
Result: Package existence check passed for "glibc-2.5-24( i686)"
Check: Package existence for "compat-libstdc++-33-3.2.3( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 compat-libstdc++-33-3.2.3-61 compat-libstdc++-33-3.2.3( i686) passed
rac1 compat-libstdc++-33-3.2.3-61 compat-libstdc++-33-3.2.3( i686) passed
Result: Package existence check passed for "compat-libstdc++-33-3.2.3( i686)"
Check: Package existence for "elfutils-libelf-0.125( i686)"
Node Name Available Required Comment
- 73 -
------------ ------------------------ ------------------------ ----------
rac2 elfutils-libelf-0.137-3.el5 elfutils-libelf-0.125( i686) passed
rac1 elfutils-libelf-0.137-3.el5 elfutils-libelf-0.125( i686) passed
Result: Package existence check passed for "elfutils-libelf-0.125( i686)"
Check: Package existence for "elfutils-libelf-devel-0.125( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 elfutils-libelf-devel-0.137-3.el5 elfutils-libelf-devel-0.125( i686) passed
rac1 elfutils-libelf-devel-0.137-3.el5 elfutils-libelf-devel-0.125( i686) passed
Result: Package existence check passed for "elfutils-libelf-devel-0.125( i686)"
Check: Package existence for "glibc-common-2.5( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 glibc-common-2.5-58 glibc-common-2.5( i686) passed
rac1 glibc-common-2.5-58 glibc-common-2.5( i686) passed
Result: Package existence check passed for "glibc-common-2.5( i686)"
Check: Package existence for "glibc-devel-2.5( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 glibc-devel-2.5-58 glibc-devel-2.5( i686) passed
rac1 glibc-devel-2.5-58 glibc-devel-2.5( i686) passed
Result: Package existence check passed for "glibc-devel-2.5( i686)"
Check: Package existence for "glibc-headers-2.5( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 glibc-headers-2.5-58 glibc-headers-2.5( i686) passed
rac1 glibc-headers-2.5-58 glibc-headers-2.5( i686) passed
Result: Package existence check passed for "glibc-headers-2.5( i686)"
Check: Package existence for "libaio-devel-0.3.106( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 libaio-devel-0.3.106-5 libaio-devel-0.3.106( i686) passed
rac1 libaio-devel-0.3.106-5 libaio-devel-0.3.106( i686) passed
Result: Package existence check passed for "libaio-devel-0.3.106( i686)"
Check: Package existence for "libgcc-4.1.2( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 libgcc-4.1.2-50.el5 libgcc-4.1.2( i686) passed
rac1 libgcc-4.1.2-50.el5 libgcc-4.1.2( i686) passed
- 74 -
Result: Package existence check passed for "libgcc-4.1.2( i686)"
Check: Package existence for "libstdc++-4.1.2( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 libstdc++-4.1.2-50.el5 libstdc++-4.1.2( i686) passed
rac1 libstdc++-4.1.2-50.el5 libstdc++-4.1.2( i686) passed
Result: Package existence check passed for "libstdc++-4.1.2( i686)"
Check: Package existence for "libstdc++-devel-4.1.2( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 libstdc++-devel-4.1.2-50.el5 libstdc++-devel-4.1.2( i686) passed
rac1 libstdc++-devel-4.1.2-50.el5 libstdc++-devel-4.1.2( i686) passed
Result: Package existence check passed for "libstdc++-devel-4.1.2( i686)"
Check: Package existence for "sysstat-7.0.2( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 sysstat-7.0.2-3.el5_5.1 sysstat-7.0.2( i686) passed
rac1 sysstat-7.0.2-3.el5_5.1 sysstat-7.0.2( i686) passed
Result: Package existence check passed for "sysstat-7.0.2( i686)"
Check: Package existence for "ksh-20060214( i686)"
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 ksh-20100202-1.el5_5.1 ksh-20060214( i686) passed
rac1 ksh-20100202-1.el5_5.1 ksh-20060214( i686) passed
Result: Package existence check passed for "ksh-20060214( i686)"
Checking for multiple users with UID value 0
Result: Check for multiple users with UID value 0 passed
Check: Current group ID
Result: Current group ID check passed
Starting Clock synchronization checks using Network Time Protocol(NTP)...
NTP Configuration file check started...
The NTP configuration file "/etc/ntp.conf" is available on all nodes
NTP Configuration file check passed
No NTP Daemons or Services were found to be running
PRVF-5507 : NTP daemon or service is not running on any node but NTP configuration file exists on the following
node(s):
rac2,rac1
- 75 -
Result: Clock synchronization check using Network Time Protocol(NTP) failed
Checking Core file name pattern consistency...
Core file name pattern consistency check passed.
Checking to make sure user "grid" is not in "root" group
Node Name Status Comment
------------ ------------------------ ------------------------
rac2 does not exist passed
rac1 does not exist passed
Result: User "grid" is not part of "root" group. Check passed
Check default user file creation mask
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
rac2 0022 0022 passed
rac1 0022 0022 passed
Result: Default user file creation mask check passed
Checking consistency of file "/etc/resolv.conf" across nodes
Checking the file "/etc/resolv.conf" to make sure only one of domain and search entries is defined
File "/etc/resolv.conf" does not have both domain and search entries defined
Checking if domain entry in file "/etc/resolv.conf" is consistent across the nodes...
domain entry in file "/etc/resolv.conf" is consistent across nodes
Checking if search entry in file "/etc/resolv.conf" is consistent across the nodes...
search entry in file "/etc/resolv.conf" is consistent across nodes
Checking file "/etc/resolv.conf" to make sure that only one search entry is defined
All nodes have one search entry defined in file "/etc/resolv.conf"
Checking all nodes to make sure that search entry is "pchyun.com rac.pchyun.com" as found on node "rac2"
All nodes of the cluster have same value for 'search'
Checking DNS response time for an unreachable node
Node Name Status
------------------------------------ ------------------------
rac2 passed
rac1 passed
The DNS response time for an unreachable node is within acceptable limit on all nodes
File "/etc/resolv.conf" is consistent across nodes
Check: Time zone consistency
Result: Time zone consistency check passed
Starting check for Huge Pages Existence ...
Check for Huge Pages Existence passed
- 76 -
Starting check for Hardware Clock synchronization at shutdown ...
Check for Hardware Clock synchronization at shutdown passed
Pre-check for cluster services setup was unsuccessful on all the nodes.
- 77 -
8. Oracle RAC Installation step
8.1. Grid Infrastracture Install
Grid Infrastructure ์ค์น๋ฅผ ์ํด rac1 Node ์์ grid user ๋ก ๋ก๊ทธ์ธ ํ Grid Infrastructure
binary directory์์ runInstaller ๋ฅผ ์คํํ์ฌ GUI ๋ฅผ ์ด์ฉํ์ฌ ์ค์น๋ฅผ ์ํํฉ๋๋ค.
Skip software updates ๋ฅผ ์ ํํ๊ณ Next ๋ฒํบ์ ํด๋ฆฝ๋๋ค.
Install and Configure Oracle Grid Infrastructure for a Cluster ์ ํํ๊ณ Next ๋ฒํบ์ ํด๋ฆฝํฉ๋๋ค.
- 78 -
Advanced Installation ์ ํํ๊ณ Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
Korean ์ถ๊ฐ
- 79 -
์๋์ ๊ฐ์ ๋ด์ฉ์ ์ ๋ ฅํ ํ Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
- Cluster Name : rac-scan - SCAN Name : rac-scan.pchyun.com
SCAN Port : 1521 - Configure GNS check ํด์
Add ๋ฒํบ์ ํด๋ฆญํ์ฌ ๋ค์ ์ฌํญ์ ์ถ๊ฐํฉ๋๋ค.
- Hostname : rac1.pchyun.com , Virtual IP Name : rac1-vip.pchyun.com
Hostname : rac2.pchyun.com , Virtual IP Name : rac2-vip.pchyun.com
- 80 -
eth0 : Public ์ ํ
eth1, eth2 : Private ์ ํ (11.2.0.2 ๋ถํฐ private interface ์ bonding ์ Oracle ์ด ๊ด์ฅ -
Redundant Interconnect Usage)
Redundant Interconnect Usage
11.2.0.2 ์ด์ ๋ฒ์ ๊น์ง๋ Network Interface ์์ ์ง์ ์ ์ผ๋ก Bonding, Teaming ๋ฑ๊ณผ ๊ฐ์ด
์ด์คํ๋ฅผ ๊ด์ฅํ๋ค. 11.2.0.2 ๋ถํฐ๋ Oracle Clusterware ๋ Redundant Interconnect Usage
๋ผ๋ ๊ธฐ๋ฅ์ ์ ๊ณตํจ์ผ๋ก์จ multiple-listening-endpoint ๋ผ๋ ์ํคํ ์ณ์ ๊ธฐ๋ฐํ์ฌ HAIP
(Highly Available Virtual IP) ๋ผ ๋ถ๋ฆฌ๋ ๊ฐ์์ IP ๋ค์ด ๊ฐ๊ฐ์ private network Interface ์
ํ ๋น๋์ด ๋ก๋ ๋ฐ๋์ฑ ๋ฐ FailOver๋ฅผ ํฉ๋๋ค.
Oracle Automatic Storage Management(Oracle ASM) ์ ํํ ํ Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
- 81 -
OCR, VOTE์ฉ ASM Disk Group ์์ฑํฉ๋๋ค.
- Disk Group Name : CRS
Redundancy : External ( OCR, VOTE์ฉ Disk ๊ณต๊ฐ์ผ๋ก Redundancy๊ฐ External์ธ ๊ฒฝ์ฐ
1๊ฐ์ ASM Disk ํ์,
Redundancy๊ฐ Normal์ธ ๊ฒฝ์ฐ 3๊ฐ์ ASM Disk ํ์)
ํ๋ฉด์ ASM Disk๊ฐ ๋ณด์ด์ง ์์ผ๋ฉด โChange Discovery Pathโ ํด๋ฆญ
Disk Discovery Path : /dev/oracleasm/disks ๋ก ๋ณ๊ฒฝ
- 82 -
SYS, ASMSNMP password ์ ๋ ฅ
Password๊ฐ ๊ธฐ๋ณธ ๋ณด์์ฑ์ ์ถฉ์กฑ์ํค์ง ๋ชปํ๋ฉด Warning ๋ฉ์์ง : Yes ํด๋ฆญ
- 83 -
IPMI๋ฅผ ์ฌ์ฉํ ๊ฒ์ธ์ง ์ ํ : ์ฌ์ฉํ์ง ์์ ์ ํํฉ๋๋ค.
OSDBA : dba / OSOPER : dba / OSASM : dba
- 84 -
๊ธฐ๋ณธ group ๊ณผ ๋ค๋ฅธ ์ค์ ์ผ๋ก ๋ฐ์ํ๋ Warning ๋ฉ์์ง๋ก Yes ๋ฅผ ์ ํํ ํ ๋ค์์ผ๋ก ๋์ด๊ฐ๋
๋ค.
์ค์น๋ Directory ์ ๋ณด๋ฅผ ์ ๋ ฅํฉ๋๋ค. (grid ๋ base ์ home ์์น๋ฅผ ๋ถ๋ฆฌํ ๊ฒ์ ๊ถ๊ณ ํฉ๋๋ค.)
- Oracle Base : /app/grid/base
Software Location : /app/grid/11.2.0.2
- 85 -
์ค์น ์ requirements check
์๋ฒ๊ฐ NTP ์ค์ ์ด ์๋์ด Warning ๋ฐ์ : Ignore All ์ฒดํฌํ ๋์ด๊ฐ๋๋ค.
- 86 -
Summary ์ ๋๋ค. ๋ด์ฉ์ ๋ณด๊ณ ์๋ชป๋ ๊ตฌ์ฑ์ด ์๋ ๋ค์ ํ๋ฒ ํ์ธํ๊ณ ๊ตฌ์ฑ์ด ์ ์์ ์ด๋ผ๋ฉด
์ค์น๋ฅผ ์์ํฉ๋๋ค.
- 87 -
์คํ ์์์ ์ฃผ์ํ์ฌ orainstRoot.sh ์ root.sh ๋ฅผ ์ํํฉ๋๋ค.
orainstRoot.sh ์ํ
rac1:
[root@rac1 ~]# /app/grid/oraInventory/orainstRoot.sh
Changing permissions of /app/grid/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /app/grid/oraInventory to dba.
The execution of the script is complete.
[root@rac1 ~]#
rac2:
[root@rac2 ~]# /app/grid/oraInventory/orainstRoot.sh
Changing permissions of /app/grid/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /app/grid/oraInventory to dba.
The execution of the script is complete.
[root@rac1db2 oracle]#
root.sh ์ํ
rac1:
[root@rac1 ~]# /app/grid /11.2.0.2/root.sh
- 88 -
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /app/grid/11.2.0.2
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
โฆโฆ.. ์ค๊ฐ์๋ต
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /app/grid/oraInventory
'UpdateNodeList' was successful.
[root@rac1 ~]#
:rac2
[root@rac2 ~]# /app/grid/ 11.2.0.2/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /app/grid/11.2.0.2
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
โฆโฆ ์ค๊ฐ์๋ต
- 89 -
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /rac/grid/oraInventory
'UpdateNodeList' was successful.
[root@rac2 ~]#
8.2. Database Software Install
Database ์์ง ์ค์น๋ฅผ ์ํด rac1 Node ์์ oracle user ๋ก ๋ก๊ทธ์ธ ํ Oracle binary
directory์์ runInstaller ๋ฅผ ์คํํ์ฌ GUI ๋ฅผ ์ด์ฉํ์ฌ ์ค์น๋ฅผ ์ํํฉ๋๋ค.
- 90 -
์์ ๊ฐ์ด ์ฒดํฌ๋ฅผ ํค์ ํ ํ Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
Skip software updates ๋ ์ฒดํฌํ ํ Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
- 91 -
DB์์ฑ์ ๋์ค์ ํ ๊ฒ์ด๋ฏ๋ก Install database software only ์ ํ ํ Next ๋ฒํบ์ ํด๋ฆฝํฉ๋๋ค.
RAC ๋ฅผ ์ํ DB ์ค์น ์ด๋ฏ๋ก Oracle Real Application Clusters database Installation ์ฒดํฌ ํ
rac1, rac2 ๋ชจ๋ ์ฒดํฌํฉ๋๋ค.
- 92 -
Korean ์ ์ถ๊ฐํฉ๋๋ค.
Enterprise Edition ์ ์ ํํ๊ณ Next ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
- 93 -
์ํํธ์จ์ด ์ค์น ๋๋ ํ ๋ฆฌ๋ฅผ ์ง์ ํฉ๋๋ค.
(oracle home ์ oracle base ์ ์์นํ๋๋ก ๊ถ๊ณ ํฉ๋๋ค.)
- Oracle Base : /app/oracle
- Oracle Home : /app/oracle/11.2.0.2
OSDBA : dba / OSOPER : dba ์ ํ
- 94 -
์ค์น ์ requirements check
์๋ฒ๊ฐ NTP ์ค์ ์ด ์๋์ด Warning ๋ฐ์ : Ignore All ์ฒดํฌํ ๋์ด๊ฐ๋๋ค.
- 95 -
Summary ์ ๋๋ค. ๋ด์ฉ์ ๋ณด๊ณ ์๋ชป๋ ๊ตฌ์ฑ์ด ์๋ ๋ค์ ํ๋ฒ ํ์ธํ๊ณ ๊ตฌ์ฑ์ด ์ ์์ ์ด๋ผ๋ฉด
์ค์น๋ฅผ ์์ํฉ๋๋ค.
Root user๋ก ์์ชฝ ๋ ธ๋์ root.sh ๋ฅผ ์ํํฉ๋๋ค.
- 96 -
์ค์น ์๋ฃ
8.3. ACFS ๊ตฌ์ฑ
ACFS (Oracle ASM Cluser File System)๋ Oracle Home ๋๋ Non-DB Files ๋ฅผ ์ ์ฅํ ์ ์๋
ASM ๊ธฐ๋ฐ์์ ์ด์๋๋ ์ผ๋ฐ์ ์ธ cluster file system ์ ๋๋ค. ACFS๋ Non-DB Files ๋ฅผ
์ ์ฅํ๋ค๊ณ ํ๋๋ฐ ์ค์ง์ ์ผ๋ก DB Files๋ฅผ ๊ตฌ์ฑํ ์ ์๋์ง ํ์ธํด๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค.
ACFS ๋ฅผ ๊ตฌ์ฑํ๋๋ก ํ๊ธฐ ์ํด ASMCA๋ฅผ ์ํํฉ๋๋ค.
๋จผ์ Diskgroup ๋ฅผ ์์ฑํฉ๋๋ค. Diskgoup๋ฅผ ์์ฑํ๊ธฐ ์ํด์๋ ์๋จ 4๊ฐ์ tab ์ค
- 97 -
Disk Groups ๋ฅผ ์ ํํ๊ณ ํ๋จ์ Create ๋ฒํบ์ ํด๋ฆญํฉ๋๋ค.
์์ ๊ฐ์ด DATA ๋ผ๋ Diskgroup๋ฅผ ์์ฑํฉ๋๋ค.
๋ค์์๋ Volumes Tab ์ผ๋ก ๊ฐ์ Volume ๋ฅผ ์์ฑํฉ๋๋ค.
- 98 -
์์ ๊ฐ์ด DATA1์ด๋ผ๋ Volume ๋ฅผ ์์ฑํฉ๋๋ค.
- 99 -
ASM Cluster File Systems Tab ์ผ๋ก ์ด๋ํ์ฌ Create ๋ฒํบ์ ํด๋ฆญํ์ฌ ACFS ๋ฅผ ์์ฑํฉ๋๋ค.
- 100 -
ACFS๋ Database Home File System ๋๋ General Purpose File System ์ ์ ํํ ์
์์ต๋๋ค.. Database home file system ์ ์ ํํ๋ฉด Grid Infrastructure์ resource๋ก ๋ฑ๋ก๋์ด์ ธ
๊ด๋ฆฌ๋์ด์ง๋๋ค.,์ฌ๊ธฐ์๋ Database File ์ ์ ์ฅํ ๊ฒ์ด๋ฏ๋ก General Purpose File System ์
์ ํํ ํ Mount Point ์์น๋ฅผ ์ ํด ACFS ์์ฑ์ ์๋ฃํฉ๋๋ค.
- 101 -
8.4. Database ์์ฑ
DBCA ๋ช ๋ น์ ํตํด์ DB๋ฅผ ์์ฑํฉ๋๋ค.
- 102 -
Oracle Real Application Clusters (RAC) database ๋ฅผ ์ ํํฉ๋๋ค.
Create Database๋ฅผ ์ ํํฉ๋๋ค.
- 103 -
General Purpose or Transaction Processing ๋ฅผ ์ ํํฉ๋๋ค.
๋ค์์ Server Pool (Policy-Managed) ์ ๋ํด ์์๋ณด๊ธฐ ์ํด Policy-Managed ๋ฅผ
์ฒดํฌํํ ๋ค์์ผ๋ก ๋์ด๊ฐ๋๋ค.
- 104 -
EM ๊ตฌ์ฑ์ ํ์ง ์์ ๊ฒ์ด๋ฏ๋ก ์ฒดํฌ๋ฅผ ํค์ ํ ํ ๋ค์์ผ๋ก ๋์ด๊ฐ๋๋ค.
ํจ์ค์๋๋ฅผ ์ค์ ํฉ๋๋ค.
- 105 -
ํจ์ค์๋ ๊ท์น์ ์ ํฉํ์ง ์์์ ๋๋ ๊ฒฝ๊ณ ์ด๋ฏ๋ก ๋ฌด์ํ๊ณ ๋์ด๊ฐ๋๋ค.
DataFile ์ด ์ ์ฅ๋ ์์น๋ฅผ ์ ํํฉ๋๋ค. ACFS ์ ์ ์ฅํ๊ธฐ๋ก ํ์์ผ๋ Cluster File System ์
์ ํํ๊ณ ACFS ๋ง์ดํธํฌ์ธํธ๋ฅผ ์ ํํฉ๋๋ค.
- 106 -
- 107 -
๋ฉ๋ชจ๋ฆฌ ์ค์ , block ์ฌ์ด์ฆ, ํ๋ก์ธ์ค ๊ฐ์ ๋ฐ ์ผ๋ฆญํฐ์ ์ค์ ๋ฑ์ ํ ํ ๋ค์์ผ๋ก ๋์ด๊ฐ๋๋ค.
Database๋ฅผ ์์ฑํฉ๋๋ค.
- 108 -
์ ์์ ์ผ๋ก ACFS์ DB Filese์ด ์ ์ฅ๋๋ ๊ฒ์ด ํ์ธ๋์์ผ๋ ์ด๋ค ๋ฌธ์ ๊ฐ ์์์ง๋ ๋ง์
ํ ์คํธ๊ฐ ํ์ํ ๊ฒ์ผ๋ก ๋ณด์ ๋๋ค.