기술노트_11gR2_RAC_Guide

September 24, 2017 | Author: Rahul Naik | Category: Oracle Database, Ip Address, File System, Domain Name System, Installation (Computer Programs)
Share Embed Donate


Short Description

Download 기술노트_11gR2_RAC_Guide...

Description

11gR2 RAC Installation Manual (with ASM+Rawdevice)

Author Creation Date

정철우 2010-04-01

Last Updated Version

1.0

Copyright(C) 2004 Goodus Inc. All Rights Reserved

Version

변경일자

변경자(작성자)

1

2010.04.01

정철우

주요내용 최초 작성

11gR2 RAC Installation Manual Contents 1.

개요 ..................................................................................................................................... 4

2.

Hardware Requirements .................................................................................................... 4 1.1

Shared Storage Option ............................................................................................4

1.2

Disk Space ...............................................................................................................5

1.3

Memory : At least 2.5GB ..........................................................................................5

3.

Network Requirements(IP address requirements) ............................................................ 6

4.

Tuning AIX System Environment ....................................................................................... 8

5.

4.1.

Checking Asynchronous Input Output Processes for AIX 5L ..................................8

4.2.

Tuning Virtual Memory Manager (VMM) .................................................................9

4.3.

Increasing System Block Size Allocation .................................................................9

4.4.

Configuring Shell Limits ..........................................................................................9

4.5.

Configuring User Process Parameters ...................................................................10

4.6.

Configuring Network Tuning Parameters ..............................................................10

Software Requirements ................................................................................................... 11 5.1.

Operating system ..................................................................................................11

5.2.

Packages & Patches ...............................................................................................11 5.2.1.

AIX 6.1...................................................................................................................11

5.2.2.

AIX 5.3...................................................................................................................11

6.

참고문서 ............................................................................................................................. 12

7.

System Overview.............................................................................................................. 13

8.

7.1.

System Architecture. .............................................................................................13

7.2.

H/W and S/W Requirement ..................................................................................13 7.2.1.

Hardware ...............................................................................................................13

7.2.2.

Software ................................................................................................................13

7.3.

IP 구성정보 .............................................................................................................14

7.4.

HACMP Status ........................................................................................................14

Installation Steps ............................................................................................................. 15 8.1.

Preparing the system.............................................................................................15 8.1.1.

Host file Configuration ............................................................................................15

8.1.2.

ORACLE User and DBA Group Creation ................................................................15

8.1.3.

ASM Disk Check ....................................................................................................15

8.1.4.

SSH Configuration .................................................................................................16 - 2 –

11gR2 RAC Installation Manual 8.2.

9.

8.1.5.

NPT Service Configuration .....................................................................................16

8.1.6.

User OS enviropment Configuration .......................................................................16

Grid Infrastructure Software Installation .............................................................17 8.2.1.

Cluvfy.sh 수행 .......................................................................................................17

8.2.2.

Rootpre.sh(root 유저로 반드시 양 노드 모두 수행) .............................................23

8.2.3.

GRID Infrastructure Software Installation................................................................25

8.3.

Database Software Installation.............................................................................41

8.4.

Check Public/Inter-connect Configuration ...........................................................48

8.5.

OCR & VOTE Disk Migration ASM To Rawdevice ...................................................49

Create Database ............................................................................................................... 50 9.1.

DBCA ......................................................................................................................50

9.2.

Manual DB Creation ...............................................................................................62

9.3.

DATABASE Status...................................................................................................66

9.4.

ASM Resource 제거 ................................................................................................66

9.5.

Network Setting.....................................................................................................66 9.5.1.

SCAN_LISTENER 제거..........................................................................................66

9.5.2.

Remote Listener 제거 ............................................................................................66

9.5.3.

LISTENER.ORA ....................................................................................................66

9.6.

Archive Log Mode 변경...........................................................................................67

9.7.

CRS Resource Status .............................................................................................68

9.8.

DB Parameter ........................................................................................................68

10. 마치며 ................................................................................................................................ 73

- 3 –

11gR2 RAC Installation Manual 1.

개요

10g 또는 11gR1 홖경에서 기존에 RAC 를 운영하던, DBA 들의 11gR2 RAC 에 대한 가지고 있는 불만 중 하나는, 기존에 Storage 영역으로 가장 많이 사용하고 있는 RAWDEVICE 에 대한 미 지원이라고 할 수 있습니다. (정확히 이야기 하면, Software 상에서는 지원하나, OUI or DBCA 등의 GUI 에선 미지원.) 물롞 기존에 운영 중인던, RAC 시스템을 업그레이드 할때는 RAWDEVICE 를 지원하지만, 신규 시스템 구 축 일 경우 GUI 상에서 RAWDEVICE 를 미지원 한다는건 불편한 사항일 수 밖에 없습니다. 본 문서는 RAWDEVICE 를 사용하여 11gR2 RAC 를 구축하는 것을 주제로 다루고 있습니다. 본 문서는 AIX5L 기반의 장비에서 작성 되었으며, 다른 unix or linux 플랫폼에도 동일한 방법으로 적용 가능 합니다.

2.

Hardware Requirements 1.1

Shared Storage Option

RAC 구성시 사전에 결정해야 될 가장 중요한 부분은 Data Storage 입니다.

RAC 에서 구성 가능한 (Shared Access) 방법은 ASM, Shared File System(CFS, NFS), RAWDEVICE 입니다.

그러나 앞서 이야기 한 것처럼 11gR2 부터는 rawdevice 를 GUI 메뉴 상에서 지원하지 않으며, 특히 Grid Install 시에는, 반드시 ASM 또는 Shared File System 으로만 OCR 과 Voting Disk 생성이 가능합니다.

11gR1 까지는 ASM Software 는 Database Software 를 공유하여 사용하였으나, 11gR2 부터는 Oracle clusterware 와 ASM 이 통합되었습니다.

이는 기존 RAC 홖경에서 ASM 을 Storage 영역으로 사용하더라도, CRS 구성 후 ASM Instance 를 구성해 야 했기 때문에 CRS 구성시 필요한 OCR 과 Voting Disk 는 ASM 영역을 사용할 수 없어, RAWDEVICE 나 Shared File System(CFS or NFS)를 사용해야 했으나, 11gR2 부터는 Grid Infrastructer(이하 Grid) 구성시에 ASM Diskgroup 를 생성할 수 있기 때문에 OCR 과 Voting Disk 도 ASM 영역에 생성할 수 있도록 변경 되었습니다.

즉 Oracle 에서 11gR2 RAC 구성시 권고하는 대로 ASM 을 사용하거나 Shared File System (CFS or NFS)을 사용하게 되면, 더 이상 OS Vendor Cluster 없이 RAC 구성이 가능하다는 의미 이기도 합니다.

그러나 본 문서에서는 RAWDEVICE 를 Data Storage 영역으로 사용할 것이므로, Shraed Access 가능한 - 4 –

11gR2 RAC Installation Manual RAWDEVICE 생성을 위해 IBM 에서 지원하는 OS Vendor clusterware(HACMP)를 사용할 것 입니다.

*10g R2 부터는 Cluster Ready Service(CRS)가 Oracle Clusterware 로 명칭이 변경되었으나, 본 문서에서는 편의상 CRS 로 명칭    

ASM(Automatic Storage Management) - strongly recommended CFS(cluster file system) - GPFS on IBM platforms NFS(Network file system) - Not supported on AIX Based Systems Raw Devices - Upgrades only (OUI, DBCA Not Supported)

OCR and

Oracle

Oracle

Oracle

Oracle

Voting

Clusterware

RAC

Database

Recovery

Disks

binaries

binaries

Files

Files

ASM

Yes

No

No

Yes

Yes

GPFS

Yes

Yes

Yes

Yes

Yes

No

Yes

Yes

No

No

Storage Option

Local file system

[Supported Storage Options for Oracle Clusterware and Oracle RAC] 

Note :  You cannot place ASM files on GPFS.  Oracle does not recommend the use of GPFS for voting disks if HACMP is used.  Disk lock속성을 reserve_policy=no_reserve로 설정해야 양 노드에서 Access 가능.  AIX에서 ASM Disk는 /dev/rhdiskN을 Default Path로 찾음

(The response is either a reserve_lock setting, or a reserve_policy setting. If the attribute is reserve_lock, then ensure that the setting is reserve_lock = no. If the attribute is reserve_policy, then ensure that the setting is reserve_policy = no_reserve.)

1.2

Disk Space



Oracle Clusterware Home and log files : 2GB



Oracle Database(Oracle base)



Oracle Clusterware Files : 10GB

: 7.5GB

 2 OCR Disk(at least 280MB), 3 Vote Disk(at least 280MB) 

1.3

/tmp 4GB

Memory : At least 2.5GB RAM

Swap Space

Between 1.5GB and 2GB

1.5 times the size of RAM

Between 2GB and 8GB

Equal to the size of RAM

More than 8GB

0.75

- 5 –

imes the size of RAM

11gR2 RAC Installation Manual 3.

Network Requirements(IP address requirements)

Cache Fusion 에 의한 부하를 최소화시키기 위해 InterConnect 용 NIC 에 최소한 Gigabit Line 을 사용할 것을 권고합니다. 또한 11gR2 RAC 에서는 Interconnect Line 을 Cross-Cable 을 이용하여 양 서버를 Direct 로 연결 할 수 없으며, 반드시 양 노드 중간에 Switch 를 사용하여 Interconnect 를 구성해야 합니다. 

For each Node



public IP address



TCP/IP 을 지원 해야 함.



DNS 및 /etc/hosts 에 등록



private IP address (interconnect)



UDP 지원 해야 함.



Public interface 와 다른 Subnet 을 사용



Virtural IP address (failover)



DNS 및 /etc/hosts 에 등록



이미 사용되지 않은 IP 와 Hostname 을 사용



Public interface 와 동일한 Subnet 을 사용



Interface Names : 모든 노드의 public interface name과 private interface name는 반드시 양

노드가 동일하게 설정한다. 

NIC Bonding : Network interface를 다중화 하여 network interface (private and public) Failover

하도록 권장. (Heartbeat Fatal에 의한 Split Brain 방지) 

GNS(Grid Naming Service) : Cluster 내에서 Grid Control를 사용하기 위한 Naming Service로서

설치 전 DNS에 등록하여 사용한다. 11gR2 RAC 에서는 Network 관련 2 가지의 새로운 개념이 등장 하였습니다. 첫번째는 GNS(Gird Naming Service) 로서, Grid 설치시 사용 여부를 선택 할 수 있습니다. GNS 를 사용하게 되면, 다음에 나올 SCAN VIP 가 DHCP 로 동적으로 할당되게 됩니다. GNS 를 사용하기 위해서는 아래와 같이 DNS 에 GNS NAME 과 GNS VIP 를 등록해 주어야 합니다.

GNS 는 기존의 2node RAC 홖경을 위한 개념이라기 보다는, Grid 홖경에서 다수의 Node 를 RAC Cluster 상에서 add 하거나 Remove 하는 과정을 갂단하게 하는 Grid plug and play (GPnP)를 위한 개념이라고 볼 수 있으며, GNS 를 통해 추가된 node 에 IP 할당을 동적으로 수행할 수 있습니다. 참고로 11gR2 RAC 는 최대 100 대의 노드를 Cluster 홖경으로 구축할 수 있습니다.

- 6 –

11gR2 RAC Installation Manual 본 문서에서는 2Node RAC 를 구축할 것 이므로, GNS 사용을 설정하지 않았습니다. 

Virtual IP address 사용



DHCP 사용



GPnP(Grid Plug and Play) 사용시에 구성



SCAN(SINGLE CLIENT ACCESS NAME) :

11gR2 RAC 에서 새로 나온 두번째 network 관련 개념으로서 Cluster 로 구성되어 운영중인 Oracle Database 에 접근하는 모든 Client 에서 SCAN 으로 접속이 가능한 신 기능이다. SCAN 으로 접속시 자동으로 Server Side Load Balancing 을 수행한다. (Default 로 Remote Listener 에 SCAN 이 등록됨) SCAN 은 Grid 설치 시 반드시 구성해야 하며, GNS 을 사용하지 않는다면, SCAN NAME 을 아래와 같이 DNS 상에 등록해줘야 합니다. 기본적으로 3개의 Public IP 를 동일한 이름으로 등록해줘야 하며, Public 와 SCAN Vip 의 subset 은 동일하여야 합니다. (최소 1개의 IP 등록) SCAN 에 할당한 IP 수 만큼, SCAN_LISTENER 와 SCAN VIP 가 Clusterware Resource 에 등록되게 됩니다.

SCAN 은 Grid 설치 후에 제거는 가능하지만, 11gR2 RAC 에서는 EM 구성시 Scan Listener 를 이용해서 접속하기 때문에 EM 을 사용하기 위해서는 SCAN 을 제거하면 안됩니다. (SCAN 이 없이 EM 을 구성하는 방법은 현재로서는 알려져 있지 않습니다.) SCAN 사용시 Client 에서는 Tnsnames.ora 에 다음과 같이 설정하여 접속을 수행하게 됩니다. GOODUS = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = cluster01-scan)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = GOODUS) ) ) SCAN 을 제거하게 되면, Client 에서 접속시 기존 RAC 와 동일하게 VIP 를 사용해서 접속하면 됩니다. - 7 –

11gR2 RAC Installation Manual

본 문서에서는 DNS 서버 없이 /etc/hosts 파일에 1 개의 scan ip 만을 지정해서 구성하였습니다. 이는 RAC 구성이 완료된 후 SCAN 을 제거하여 기존 10g RAC 환경과 동일하게 사용하기 위함 입니다.

Srvctl 명령어를 통해 SCAN 및 SCAN Listener 를 추가, 삭제할 수 있습니다. (1개만 사용할 경우, client에서 scan-ip가 자동 할당된 노드로만 TNS를 이용하여 접속이 가능합니다. 만약 EM를 사용할 예정이라면 반드시 권고사항 대로 3개의 SCAN-IP를 할당하셔야 합니다.)

4.

Tuning AIX System Environment 4.1. 

Checking Asynchronous Input Output Processes for AIX 5L AIX 6.1 - 8 –

11gR2 RAC Installation Manual  

ioo -o aio_maxreqs

aio_maxreqs = 65536 AIX 5.3  lsattr -El aio0 -a maxreqs maxreqs 65536 Maximum number of REQUESTS True



Async I/O setup # smitty aio "change/show characteristics of asynchronous I/O" "State to be configured at system restart" Defined --->

4.2. 



available 로 setting 후 반드시 재부팅(init 6)

Tuning Virtual Memory Manager (VMM) Recommended Values for Virtual Memory Manager Parameter

Value

minperm%

3(default is 20)

maxperm%

90(default is 80)

maxclient% =

90(default is 80)

lru_file_repage

0(default is 1)

strict_maxclient

1(default is 1)

strict_maxperm

0(default is 0)

Example

vmo -p -o minperm%=3 vmo -p -o maxperm%=90 vmo -p -o maxclient%=90 vmo -p -o lru_file_repage=0 vmo -p -o strict_maxclient=1 vmo -p -o strict_maxperm=0 You must restart the system for these changes to take effect.

4.3.

Increasing System Block Size Allocation

chdev -l sys0 -a ncargs='128'

4.4.

Configuring Shell Limits

Software의 성능 개선을 위해 Oracle S/W 의 설치 user(oracle, crs)의 shell limit를 조절 Item in

Shell Limit

limits.conf

Maximum number of open file descriptors

nofile

- 9 –

Hard limit -1 (unlimited)

11gR2 RAC Installation Manual Maximum number of processes available to a single user

maxuproc

Maximum size of the stack segment of the process

stack

16384 -1 (unlimited)

/etc/security/limits(모든 노드에 추가)



default: 

fsize = -1



core = 2097151



cpu = -1



data = -1



rss = -1



stack = -1



nofiles = -1

Maximum number of processes available(Oracle S/W user) (모든 노드에 추가)





4.5.

/etc/chdev -l sys0 -a maxuproc = 16384

Configuring User Process Parameters

각 user에 최대 허락된 maximum number of processes = 2048 or 그 이상으로 조정 # smit chgsys Maximum number of PROCESSES allowed for each user = 2048 or 그 이상으로 조정 press F10 to exit

4.6.

Configuring Network Tuning Parameters

Network Tuning Parameter

Recommended Value

ipqmaxlen

512

rfc1323

1

sb_max

2*65536

tcp_recvspace

65536

tcp_sendspace

65536

udp_recvspace

655360

udp_sendspace

65536



/etc/rc.net

if [ -f /usr/sbin/no ] ; then /usr/sbin/no -o udp_sendspace=65536 /usr/sbin/no -o udp_recvspace=655360 /usr/sbin/no -o tcp_sendspace=65536 /usr/sbin/no -o tcp_recvspace=65536 /usr/sbin/no -o rfc1323=1 - 10 –

11gR2 RAC Installation Manual /usr/sbin/no -o sb_max=2*655360 /usr/sbin/no -o ipqmaxlen=512 fi

5.

Software Requirements 5.1.  

Operating system AIX 5L V5.3 TL 09 SP1 ("5300-09-01") 64 bit kernel (Part Number E10854-01) AIX 6.1 TL 02 SP5 ("6100-02-05") 64-bit kernel

5.2.

Packages & Patches

5.2.1. AIX 6.1

5.2.2. AIX 5.3

packages (or later versions)

packages (or later versions)

bos.adt.base

bos.adt.base

bos.adt.lib

bos.adt.lib

bos.adt.libm

bos.adt.libm

bos.perf.libperfstat

bos.perf.libperfstat

bos.perf.perfstat

bos.perf.perfstat

bos.perf.proctools

bos.perf.proctools

rsct.basic.rte

rsct.basic.rte

rsct.compat.clients.rte

rsct.compat.clients.rte

xlC.aix61.rte 10.1.0.0 (or later)

xlC.aix50.rte 10.1.0.0 (or later)

patches (or later versions)

patches (or later versions)

IZ41855

IZ42940

IZ51456

IZ49516

IZ52319

IZ52331

Obtaining C/C++ Compilers : xLC.aix.rte 8.0.0.8 and xlC.rte 8.0.0.8. Oracle RAC : xLC.aix.rte 8.0.0.8 and xlC.rte 8.0.0.8.

HACMP 5.4.1 HACMP filesets (cluster.es.*) rsct.hacmp.rte rsct.compat.basic.hacmp.rte rsct.compat.clients.hacmp.rte

GPFS AIX 6L: gpfs.base 3.2.1.8 or later. AIX 5L: gpfs.base 3.2.1.8 or later

ADA : OC Systems PowerAda 5.4d

- 11 –

11gR2 RAC Installation Manual JDK : Use one of the following Java versions: Java 6 64-bit 6.0.0.50 IZ30726 (SR2) Java 5 64-bit 5.0.0.250 IZ55274 (SR8a)

Pro*FORTRAN : IBM XL Fortran v. 11.1 April 2008 PTF for AIX Pro*C/C++, Oracle Call Interface, Oracle C++ Call Interface, Oracle XML Developer’s Kit (XDK), GNU Compiler Collection (GCC) February 2007 XL C/C++ Enterprise Edition V8.0 for AIX PTF 8.0 gcc 3.45

Pro*COBOL IBM COBOL for AIX version 3.1 Micro Focus Server Express 5.1

Oracle Messaging Gateway IBM WebSphere MQ V6.0.2.0, client and server: mqm.Client.Bnd mqm.Server.Bnd

Oracle JDBC/OCI Drivers(AIX 5L v5.3) APAR required for JDK 1.4.2 (64-bit): IY63533: JDK 1.4.2 64-bit SR1 caix64142-20040917 APARs required for JDK 1.3.1.16 (32-bit): IY58350: SDK 1.3.1 32-Bit SR7P: CA131IFX-20040721A IY65305: JAVA142 32-bit PTF: CA142IFX-20041203

6.

참고문서

# E10814-01 : Oracle Grid Infrastructure Installation Guide, 11gR2 for IBM AIX on POWER Systems (64-Bit) # Note ID 169706.1 : Oracle Database on Unix AIX,HP-UX,Linux,Mac OS X,Solaris,Tru64 Unix Operating Systems Installation and Configuration Requirements Quick Reference (8.0.5 to 11.2)

- 12 –

11gR2 RAC Installation Manual 7.

System Overview

7.1.

System Architecture.

11gRAC

IBM P590 2Nodes RAC * 1Set

7.2.

H/W and S/W Requirement

7.2.1. Hardware NAME CPU

5Ghz * 4

Physical Memory

30GB

Value

Remark

Value

Remark

7.2.2. Software NAME OS Kernel

AIX 5.3 TL11

SWAP

30G

/tmp size

4GB

HACMP

5.4

- 13 –

11gR2 RAC Installation Manual 7.3.

7.4.

IP 구성정보 Host Name

Type

Value

Goodus1

Public IP

20.20.20.1

Goodus2

Public IP

20.20.20.2

Goodus1-ipc

Private IP (Interconnect)

10.10.10.1

Goodus2-ipc

Private IP (Interconnect)

10.10.10.2

Goodus1-vip

VIP (Virtual IP)

20.20.20.3

Goodus2-vip

VIP (Virtual IP)

20.20.20.4

Goodus-scan

SCAN-IP

20.20.20.5

HACMP Status

# /usr/es/sbin/cluster/utilities/cllsif Adapter Type Network Hardware Address Interface Name Global Name goodus1 en14 goodus1-ipc en15 goodus2 en14 goodus2-ipc en15

boot service boot service

net_ether_01 255.255.255.0 net_ether_02 255.255.255.0 net_ether_01 255.255.255.0 net_ether_02 255.255.255.0

Net Type Netmask

Attribute Node Alias for HB

IP Address

ether

public

goodus1

20.20.20.1

ether

private

goodus1

10.10.10.1

ether

public

goodus2

20.20.20.2

ether

private

goodus2

10.10.10.2

# /usr/es/sbin/cluster/clstat clstat - HACMP Cluster Status Monitor ------------------------------------Cluster: k2rac (1268804794) Wed Mar 31 14:59:50 2010 State: UP SubState: STABLE

Nodes: 2

Node: goodus1 State: UP Interface: goodus1 (0) Interface: goodus1-ipc (1) Resource Group: goodus1_rg Resource Group: goodus_reg Node: goodus2 State: UP Interface: goodus2 (0) Interface: goodus2-ipc (1) Resource Group: goodus2_rg Resource Group: goodus_reg

Address: 20.20.20.1 State: UP Address: 10.10.10.1 State: UP State: On line State: On line

Address: 20.20.20.2 State: UP Address: 10.10.10.2 State: UP State: On line State: On line - 14 –

11gR2 RAC Installation Manual 8.

Installation Steps

8.1.

Preparing the system

8.1.1. Host file Configuration /etc/hosts 파일에 각노드의 Pulic IP 주소 및 VIP, Interconnect 주소를 등록합니다. Scan vip 의 경우 설치 후 제거를 할 예정으로, DNS 가 아닌 hosts 파일에 등록 (양 노드 동일한 ip 설정) (root 사용자로 양 노드 수행합니다.) [oracle@goodus1:/oracle]$ cat /etc/hosts 127.0.0.1 loopback localhost # loopback (lo0) name/address 20.20.20.1 goodus1 20.20.20.2 goodus2 # IP For Service 20.20.20.3 20.20.20.4

goodus1-vip goodus2-vip

# SCAN IP 20.20.20.5

goodus-scan

# Interconnect IP 10.10.10.1 10.10.10.2

goodus1-ipc goodus2-ipc

8.1.2. ORACLE User and DBA Group Creation Oracle 사용자가 사용할 dba 그룹과 Oracle 사용자를 생성합니다. 11g 에선 GRID 유저와 DB 유저를 별도로 생성할 것을 권고 (단 별도로 유저 생성시 Permission 관련 문제가 많이 발생함으로, 동일 유저로 구성이 간편함) (root 사용자로 양 노드 모두 수행합니다.) [root@ ~]# mkdir -p /oracle/db [root@ ~]# mkdir -p /oracle/grid [root@ ~]# groupadd -g 300 dba [root@ ~]# cat /etc/passwd | grep ora oracle:!:300:300:Oracle DBA:/oracle/db:/usr/bin/ksh oragrid:!:301:300:Oracle CRS Admin:/oracle/grid:/usr/bin/ksh [root@ ~]# cat /etc/group | grep dba dba:!:300:oracle,oragrid [root@ ~]# chown –R oracle :dba /oracle/db [root@ ~]# chown –R oragrid :dba /oracle/grid [root@ ~]# chmod –R 775 /oracle/db [root@ ~]# /usr/bin/chuser capabilities=CAP_NUMA_ATTACH,CAP_BYPASS_RAC_VMM,CAP_PROPAGATE oragrid [root@ ~]# /usr/bin/chuser capabilities=CAP_NUMA_ATTACH,CAP_BYPASS_RAC_VMM,CAP_PROPAGATE oracle

8.1.3. ASM Disk Check 설치 중 OCR, VOTE 생성용으로 사용할 ASM Disk 확인 goodus1:/root># chown oragrid:dba /dev/rhdisk154 goodus1:/root># chmod 660 /dev/rhdisk154 goodus1:/root># ls –l /dev/rhdisk154 crw-rw---1 oragrid dba 15,154 Mar 25 15:07 /dev/rhdisk154 해당 디스크의

reserve_policy 는 no_reserve 로 설정되어 있어야 함. - 15 –

11gR2 RAC Installation Manual 8.1.4. SSH Configuration 설치간 양 노드에 oracle 및 grid 유저로 ssh 접속이 가능해야 함. (grid 설치 단계에서 자동 설정 가능하나, cluster Verify 수행을 위해 사전 구성) /usr/bin/ssh-keygen -t rsa /usr/bin/ssh-keygen -t dsa ssh goodus1 cat /oracle/grid/.ssh/id_rsa.pub >> authorized_keys ssh goodus1 cat /oracle/grid/.ssh/id_dsa.pub >> authorized_keys ssh goodus2 cat /oracle/grid/.ssh/id_rsa.pub >> authorized_keys ssh goodus2 cat /oracle/grid/.ssh/id_dsa.pub >> authorized_keys scp authorized_keys goodus2:/oracle/db/.ssh/

8.1.5. NPT Service Configuration 양 노드간의 Time Sync 를 위해 Network Protocol Daemon 이 반드시 x 옵션을 사용하여, start 되어야만 함. Checking NTP daemon's boot time configuration, in file "/etc/rc.tcpip", for slewing option "-x" [oracle@goodus1:/oracle/db]$ ps -ef | grep ntp root 152084 180318 0 Mar 18 - 0:23 /usr/sbin/xntpd –x

8.1.6. User OS enviropment Configuration Oracle 사용자의 Cshell 환경을 설정 합니다. /oracle/db/.profile 을 아래와 같이 생성합니다. (oracle 사용자로 아래와 같이 양 노드 설정합니다.) GOODUS1-> 2 번 노드는 GOODUS2 (노란색 음영부분)  11gR2 부터는 TNS_ADMIN, ORA_NLS10, ORA_CRS_HOME 을 user profile 에서 unset 해야 함. (셋팅시 grid 설치 중 roo.sh 수행시 GPnp Profile Create Fail 에러 발생 함) Failed to create a peer profile for Oracle Cluster GPnP. gpnptool rc=256  Grid Home 은 Oralce Base 아래에 위치할 수 없음 [oracle@goodus1:/oracle/db]$ cat .profile umask 022 if [ -s "$MAIL" ] then echo "$MAILMSG" fi

# This is at Shell startup. In normal # operation, the Shell checks # periodically.

EDITOR=vi; export EDITOR HOST=`hostname` USER=`logname` PS1='['`logname`'@'`hostname`':$PWD]$ ' set -o vi stty -istrip erase alias ls='ls -aCF' alias ll='ls -alF' alias rm='rm -i' alias vi='/usr/bin/vi' LANG=C; export LANG export ORACLE_BASE=/oracle/db export GI_HOME=/oracle/grid export ORACLE_HOME=/oracle/db/11g export ORACLE_SID=GOODUS1

- 16 –

11gR2 RAC Installation Manual export NLS_LANG=AMERICAN_AMERICA.UTF8 export AIXTHREAD_SCOPE=S PATH=$PATH:$ORACLE_HOME/bin:/oracle/dba:$GI_HOME/bin:$ORACLE_HOME/OPatch

8.2.

Grid Infrastructure Software Installation

8.2.1. Cluvfy.sh 수행 (oracle 사용자로 goodus1 에서 수행합니다.) runInstaller 수행전 아래와 같이 cluvfy.sh 를 수행하여 설치과정에 miss 나 fail 부분을 미리 check 한다. [oracle@goodus1:/oracle/INST/grid]$ ./runcluvfy.sh stage -pre crsinst -n goodus1,goodus2 -verbose Performing pre-checks for cluster services setup Checking node reachability... Check: Node reachability from node "goodus1" Destination Node Reachable? ------------------------------------ -----------------------goodus2 yes goodus1 yes Result: Node reachability check passed from node "goodus1"

Checking user equivalence... Check: User equivalence for user "oragrid" Node Name Comment ------------------------------------ -----------------------goodus1 passed goodus2 passed Result: User equivalence check passed for user "oragrid" Checking node connectivity... Checking hosts config file... Node Name Status Comment ------------ ------------------------ -----------------------goodus1 passed goodus2 passed Verification of the hosts config file successful

Interface information for node "goodus1" Name IP Address Subnet Gateway Def. Gateway HW Address MTU ------ --------------- --------------- --------------- --------------- ----------------- -----en14 20.20.20.1 20.20.20.0 20.20.20.1 20.20.20.1 00:14:5E:78:E9:5C 1500 en15 10.10.10.1 10.10.10.0 10.10.10.1 20.20.20.1 00:14:5E:78:E9:46 1500

Interface information for node "goodus2" Name IP Address Subnet Gateway Def. Gateway HW Address MTU ------ --------------- --------------- --------------- --------------- ----------------- -----en14 20.20.20.2 20.20.20.0 20.20.20.2 20.20.20.1 00:14:5E:78:E9:6C 1500 en15 10.10.10.2 10.10.10.0 10.10.10.2 20.20.20.1 00:14:5E:78:E9:88 1500

Check: Node connectivity of subnet "20.20.20.0"

- 17 –

11gR2 RAC Installation Manual Source Destination Connected? ------------------------------ ------------------------------ ---------------goodus1:en14 goodus2:en14 yes Result: Node connectivity passed for subnet "20.20.20.0" with node(s) goodus1,goodus2

Check: TCP connectivity of subnet "20.20.20.0" Source Destination Connected? ------------------------------ ------------------------------ ---------------goodus1:20.20.20.1 goodus2:20.20.20.2 passed Result: TCP connectivity check passed for subnet "20.20.20.0"

Check: Node connectivity of subnet "10.10.10.0" Source Destination Connected? ------------------------------ ------------------------------ ---------------goodus1:en15 goodus2:en15 yes Result: Node connectivity passed for subnet "10.10.10.0" with node(s) goodus1,goodus2

Check: TCP connectivity of subnet "10.10.10.0" Source Destination Connected? ------------------------------ ------------------------------ ---------------goodus1:10.10.10.1 goodus2:10.10.10.2 passed Result: TCP connectivity check passed for subnet "10.10.10.0"

Interfaces found on subnet "20.20.20.0" that are likely candidates for VIP are: goodus1 en14:20.20.20.1 goodus2 en14:20.20.20.2 Interfaces found on subnet "10.10.10.0" that are likely candidates for a private interconnect are: goodus1 en15:10.10.10.1 goodus2 en15:10.10.10.2 Result: Node connectivity check passed

Check: Total memory Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 30.25GB (3.1719424E7KB) 1.5GB (1572864.0KB) passed goodus2 29.875GB (3.1326208E7KB) 1.5GB (1572864.0KB) passed Result: Total memory check passed Check: Available memory Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 26.4483GB (2.7733012E7KB) 50MB (51200.0KB) passed goodus2 25.9371GB (2.7197072E7KB) 50MB (51200.0KB) passed Result: Available memory check passed Check: Swap space Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 512MB (524288.0KB) 10GB (1.048576E7KB) failed Goodus2 29.75Gb (3.1195136E7Kb) 10Gb (1.048576E7Kb) Passed Result: Swap space check failed Check: Free disk space for "goodus1:/tmp/"

- 18 –

11gR2 RAC Installation Manual Path Node Name Mount point Available Required Comment ---------------- ------------ ------------ ------------ ------------ -----------/tmp/ goodus1 /tmp 2.5644GB 1GB passed Result: Free disk space check passed for "goodus1:/tmp/" Check: Free disk space for "goodus2:/tmp/" Path Node Name Mount point Available Required Comment ---------------- ------------ ------------ ------------ ------------ -----------/tmp/ goodus2 /tmp 2.8295GB 1GB passed Result: Free disk space check passed for "goodus2:/tmp/" Check: User existence for "oragrid" Node Name Status Comment ------------ ------------------------ -----------------------goodus1 exists(301) passed goodus2 exists(301) passed Checking for multiple users with UID value 301 Result: Check for multiple users with UID value 301 passed Result: User existence check passed for "oragrid" Check: Group existence for "oinstall" Node Name Status Comment ------------ ------------------------ -----------------------goodus1 does not exist failed goodus2 does not exist failed Result: Group existence check failed for "oinstall" Check: Group existence for "dba" Node Name Status Comment ------------ ------------------------ -----------------------goodus1 exists passed goodus2 exists passed Result: Group existence check passed for "dba" Check: Membership of user "oragrid" in group "oinstall" [as Primary] Node Name User Exists Group Exists User in Group Primary Comment ---------------- ------------ ------------ ------------ ------------ -----------goodus1 yes yes no N/A failed goodus2 yes yes no N/A failed Result: Membership check for user "oragrid" in group "oinstall" [as Primary] failed Check: Membership of user "oragrid" in group "dba" Node Name User Exists Group Exists User in Group Comment ---------------- ------------ ------------ ------------ ---------------goodus1 yes yes yes passed goodus2 yes yes yes passed Result: Membership check for user "oragrid" in group "dba" passed Check: Run level Node Name run level Required Comment ------------ ------------------------ ------------------------ ---------goodus1 2 2 passed goodus2 2 2 passed Result: Run level check passed Check: Hard limits for "maximum open file descriptors" Node Name Type Available Required Comment ---------------- ------------ ------------ ------------ ---------------goodus1 hard 9223372036854775807 65536 passed

- 19 –

11gR2 RAC Installation Manual goodus2 hard 9223372036854775807 65536 Result: Hard limits check passed for "maximum open file descriptors"

passed

Check: Soft limits for "maximum open file descriptors" Node Name Type Available Required Comment ---------------- ------------ ------------ ------------ ---------------goodus1 soft 9223372036854775807 1024 passed goodus2 soft 9223372036854775807 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 ---------------- ------------ ------------ ------------ ---------------goodus1 hard 16384 16384 passed goodus2 hard 16384 16384 passed Result: Hard limits check passed for "maximum user processes" Check: Soft limits for "maximum user processes" Node Name Type Available Required Comment ---------------- ------------ ------------ ------------ ---------------goodus1 soft 16384 2047 passed goodus2 soft 16384 2047 passed Result: Soft limits check passed for "maximum user processes" Check: System architecture Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 powerpc powerpc passed goodus2 powerpc powerpc passed Result: System architecture check passed Check: Kernel version Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 5.3-5300.11.02.1007 5.3-5300.09.01 passed goodus2 5.3-5300.11.02.1007 5.3-5300.09.01 passed Result: Kernel version check passed Check: Kernel parameter for "SEM_NSEMS_MAX" Node Name Configured Required Comment ------------ ------------------------ ------------------------ ---------goodus1 32768 256 passed goodus2 32768 256 passed Result: Kernel parameter check passed for "SEM_NSEMS_MAX" Check: Kernel parameter for "SEM_VALUE_MAX" Node Name Configured Required Comment ------------ ------------------------ ------------------------ ---------goodus1 32767 100 passed goodus2 32767 100 passed Result: Kernel parameter check passed for "SEM_VALUE_MAX" Check: Kernel parameter for "ncargs" Node Name Configured Required Comment ------------ ------------------------ ------------------------ ---------goodus1 128 128 passed goodus2 128 128 passed Result: Kernel parameter check passed for "ncargs" Check: Package existence for "cluster.license-5.4.1"

- 20 –

11gR2 RAC Installation Manual Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 cluster.license-5.4.1.1-0 cluster.license-5.4.1 passed goodus2 cluster.license-5.4.1.1-0 cluster.license-5.4.1 passed Result: Package existence check passed for "cluster.license-5.4.1" Check: Package existence for "bos.adt.base-..." Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 bos.adt.base-5.3.11.0-0 bos.adt.base-... passed goodus2 bos.adt.base-5.3.11.0-0 bos.adt.base-... passed Result: Package existence check passed for "bos.adt.base-..." Check: Package existence for "bos.adt.lib-..." Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 bos.adt.lib-5.3.9.0-0 bos.adt.lib-... passed goodus2 bos.adt.lib-5.3.9.0-0 bos.adt.lib-... passed Result: Package existence check passed for "bos.adt.lib-..." Check: Package existence for "bos.adt.libm-..." Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 bos.adt.libm-5.3.11.0-0 bos.adt.libm-... passed goodus2 bos.adt.libm-5.3.11.0-0 bos.adt.libm-... passed Result: Package existence check passed for "bos.adt.libm-..." Check: Package existence for "bos.perf.libperfstat-5.3.9.0" Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 bos.perf.libperfstat-5.3.11.2-0 bos.perf.libperfstat-5.3.9.0 passed goodus2 bos.perf.libperfstat-5.3.11.2-0 bos.perf.libperfstat-5.3.9.0 passed Result: Package existence check passed for "bos.perf.libperfstat-5.3.9.0" Check: Package existence for "bos.perf.perfstat-..." Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 bos.perf.perfstat-5.3.11.0-0 bos.perf.perfstat-... passed goodus2 bos.perf.perfstat-5.3.11.0-0 bos.perf.perfstat-... passed Result: Package existence check passed for "bos.perf.perfstat-..." Check: Package existence for "bos.perf.proctools-..." Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 bos.perf.proctools-5.3.11.1-0 bos.perf.proctools-... passed goodus2 bos.perf.proctools-5.3.11.1-0 bos.perf.proctools-... passed Result: Package existence check passed for "bos.perf.proctools-..." Check: Package existence for "rsct.basic.rte-..." Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 rsct.basic.rte-2.4.12.0-0 rsct.basic.rte-... passed goodus2 rsct.basic.rte-2.4.12.0-0 rsct.basic.rte-... passed Result: Package existence check passed for "rsct.basic.rte-..." Check: Package existence for "rsct.compat.clients.rte-..." Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 rsct.compat.clients.rte-2.4.12.0-0 rsct.compat.clients.rte-... passed goodus2 rsct.compat.clients.rte-2.4.12.0-0 rsct.compat.clients.rte-... passed

- 21 –

11gR2 RAC Installation Manual Result: Package existence check passed for "rsct.compat.clients.rte-..." Check: Package existence for "xlC.aix50.rte-10.1.0.0" Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 xlC.aix50.rte-10.1.0.3-0 xlC.aix50.rte-10.1.0.0 passed goodus2 xlC.aix50.rte-10.1.0.3-0 xlC.aix50.rte-10.1.0.0 passed Result: Package existence check passed for "xlC.aix50.rte-10.1.0.0" Check: Operating system patch for "Patch IZ42940" Node Name Applied Required Comment ------------ ------------------------ ------------------------ ---------goodus1 missing Patch IZ42940 failed goodus2 missing Patch IZ42940 failed Result: Operating system patch check failed for "Patch IZ42940" Check: Operating system patch for "Patch IZ49516" Node Name Applied Required Comment ------------ ------------------------ ------------------------ ---------goodus1 missing Patch IZ49516 failed goodus2 missing Patch IZ49516 failed Result: Operating system patch check failed for "Patch IZ49516" Check: Operating system patch for "Patch IZ52331" Node Name Applied Required Comment ------------ ------------------------ ------------------------ ---------goodus1 missing Patch IZ52331 failed goodus2 missing Patch IZ52331 failed Result: Operating system patch check failed for "Patch IZ52331" 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 Checking Core file name pattern consistency... Core file name pattern consistency check passed. Checking to make sure user "oragrid" is not in "root" group Node Name Status Comment ------------ ------------------------ -----------------------goodus1 does not exist passed goodus2 does not exist passed Result: User "oragrid" is not part of "root" group. Check passed Check default user file creation mask Node Name Available Required Comment ------------ ------------------------ ------------------------ ---------goodus1 022 0022 passed goodus2 022 0022 passed Result: Default user file creation mask 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 Checking daemon liveness...

- 22 –

11gR2 RAC Installation Manual Check: Liveness for "xntpd" Node Name Running? ------------------------------------ -----------------------goodus1 yes goodus2 yes Result: Liveness check passed for "xntpd" Checking NTP daemon command line for slewing option "-x" Check: NTP daemon command line Node Name Slewing Option Set? ------------------------------------ -----------------------goodus1 yes goodus2 yes Result: NTP daemon slewing option check passed Checking NTP daemon's boot time configuration, in file "/etc/rc.tcpip", for slewing option "-x" Check: NTP daemon's boot time configuration Node Name Slewing Option Set? ------------------------------------ -----------------------goodus1 yes goodus2 yes Result: NTP daemon's boot time configuration check for slewing option passed Result: Clock synchronization check using Network Time Protocol(NTP) passed Result: User ID < 65535 check passed Result: Kernel 64-bit mode check passed.

8.2.2. Rootpre.sh(root 유저로 반드시 양 노드 모두 수행) [root@goodus1:/oracle/INST/grid]$ umask 022 -> root 유저의 umask 는 반드시 022 로 설정 (아닐 경우 설치시 오라클 유저가 클러스터 환경을 인식 못함) [root@goodus1:/oracle/INST/grid]$ sh rootpre.sh rootpre.sh output will be logged in /tmp/rootpre.out_10-03-18.11:11:54 check_prereq[11]: test: argument expected Saving the original files in /etc/ora_save_10-03-18.11:11:54.... Copying new kernel extension to /etc.... rootpre.sh[348]: test: argument expected Loading the kernel extension from /etc Oracle Kernel Extension Loader for AIX Copyright (c) 1998,1999 Oracle Corporation Kernel Extension /etc/pw-syscall.64bit_kernel already loaded, unloading it Unconfigured the kernel extension successfully Unloaded the kernel extension successfully Successfully loaded /etc/pw-syscall.64bit_kernel with kmid: 0x4717e00 Successfully configured /etc/pw-syscall.64bit_kernel with kmid: 0x4717e00 The kernel extension was successfuly loaded. rootpre.sh[413]: test: argument expected Checking if group services should be configured.... Group "hagsuser" does not exist. Creating required group for group services: hagsuser Please add your Oracle userid to the group: hagsuser

- 23 –

11gR2 RAC Installation Manual Configuring HACMP group services socket for possible use by Oracle. [root@goodus1:/oracle/INST/grid]$ vi /etc/group hagsuser:!:205:oragrid:oracle -> oracle, oragrid 유저 추가 rootpre 재수행 [root@goodus1:/oracle/INST/grid]$ sh rootpre.sh rootpre.sh output will be logged in /tmp/rootpre.out_10-03-18.15:53:42 check_prereq[11]: test: argument expected Saving the original files in /etc/ora_save_10-03-18.15:53:42.... Copying new kernel extension to /etc.... rootpre.sh[348]: test: argument expected Loading the kernel extension from /etc Oracle Kernel Extension Loader for AIX Copyright (c) 1998,1999 Oracle Corporation Kernel Extension /etc/pw-syscall.64bit_kernel already loaded, unloading it Unconfigured the kernel extension successfully Unloaded the kernel extension successfully Successfully loaded /etc/pw-syscall.64bit_kernel with kmid: 0x3fba400 Successfully configured /etc/pw-syscall.64bit_kernel with kmid: 0x3fba400 The kernel extension was successfuly loaded. rootpre.sh[413]: test: argument expected Checking if group services should be configured.... Please confirm your Oracle userid is a member of the group: hagsuser Configuring HACMP group services socket for possible use by Oracle. 2 번 노드도 동일한 방법으로 수행 ( rootpre 는 1 번노드의 rootpre dir 을 tar 로 묶어서 전송) 정상적으로 수행되면, /opt/ORCLcluster 디렉토리가 생성되며 , 수행시 Checking if group services should be configured.... Nothing to configure. 으로 종료되면, Install 시 node information 단계에서 양 노드가 안보이는 문제 발생함. HACMP 와 ORACLE CLUSTERWARE 를 연동해주는 Library 생성됨 [oracle@goodus1:/oracle/db]$ ls -l /opt/ORCLcluster/lib lrwxrwxrwx 1 root system 33 Mar 18 15:53 libskgxn2.so@ -> /opt/ORCLcluster/lib/libskgxnr.so* -rwxr-xr-x 1 root system 208646 Mar 18 15:53 libskgxnr.so*

- 24 –

11gR2 RAC Installation Manual 8.2.3. GRID Infrastructure Software Installation 11gR2 부터는 Clusterware 가 Grid infrastructure 내에 포함되어 있다. (oragrid 사용자로 goodus1 에서 수행합니다) . [oracle@goodus1:/oracle/INST/grid/install]$ ./lsnodes -n goodus1 1 goodus2 2 [oragrid@goodus1:/oracle/INST/grid]$ export DISPLAY=10.25.235.120:1 [oragird@goodus1:/oracle/INST/grid]$ chmod +x run* [oragrid@goodus1:/oracle/INST/grid]$ chmod +x ./install/* [oragrid@goodus1:/oracle/INST/grid]$ chmod +x ./install/.oui [oragrid@goodus1:/oracle/INST/grid]$ ./runInstaller ******************************************************************************** Your platform requires the root user to perform certain pre-installation OS preparation. The root user should run the shell script 'rootpre.sh' before you proceed with Oracle installation. rootpre.sh can be found at the top level of the CD or the stage area. Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle installation. Answer 'n' to abort installation and then ask root to run 'rootpre.sh'. ******************************************************************************** Has 'rootpre.sh' been run by root? [y/n] (n) y Starting Oracle Universal Installer... Checking Temp space: must be greater than 190 MB. Actual 3778 MB Checking swap space: must be greater than 150 MB. Actual 30720 MB Checking monitor: must be configured to display at least 256 colors

주) 설치화면에서 일부 서버 정보는 삭제하였음을 양해 바랍니다.

- 25 –

Passed Passed

11gR2 RAC Installation Manual

- 26 –

11gR2 RAC Installation Manual

SCAN_NAME 에 지정된 이름이 DNS Server or /etc/hosts 파일에 반드시 존재해야함

SSH Connectivity->Setup 을 클릭하면 ssh 환경을 자동으로 구성해 줌. ssh goodus1, goodus2 수행시 password 인증 없이 접속 가능해야 에러 발생하지 않음(local 에도 접속 가능해야함)

- 27 –

11gR2 RAC Installation Manual

반드시 양 노드의 NIC Interface 명은 용도별로 동일해야 함.

- 28 –

11gR2 RAC Installation Manual

OCR 과 VOTE 를 구성하기 위한 Diskgroup 생성 (Disk 가 1 개뿐이므로, External Redundancy 선택)

ASM Instance Password 는 오라클에서 요구하는 복잡성을 만족할 것을 권고 (8 자리, 특수문자, 숫자 포함)

- 29 –

11gR2 RAC Installation Manual

Password 는 오라클에서 요구하는 복잡성을 만족할 것을 권고 (8 자리, 특수문자, 숫자 포함)

- 30 –

11gR2 RAC Installation Manual

ASM 을 관리하기 위한 별도의 OS Group 을 생성할 것을 권고하나, 설치 후 RAWDEVICE 로 전환 예정임으로 Skip

- 31 –

11gR2 RAC Installation Manual

Grid 는 $ORACLE_BASE 의 하위 dir 에 설치할 수 없음 이 단계에서 [INS-20702] Unexpected internal driver error 가 발생할 경우 설치를 종료하고 runInstaller -ignoreInternalDriverError 옵션으로 설치 재 수행

- 32 –

11gR2 RAC Installation Manual

해당 OS Package 는 하위 버전 Package 이므로, ignore all 에 체크하여 진행. 만약 OS Parameter 설정에 문제가 있을 경우 Fix&Check Again 을 클릭하면, OS 수정 스크립트 자동 생성됨.

실제로는 Cluster name, SCAN Name 등이 모두 정상적으로 표시됨.

- 33 –

11gR2 RAC Installation Manual

반드시 순차적으로 root 유저로 goodus1goodus2 순서로 /oracle/oraInventory/orainstRoot.sh -> /oracle/grid/root.sh 를 수행 완료 후에 OK 버튼을 Click 합니다.

- 34 –

11gR2 RAC Installation Manual [root@goodus1 ~]# /oracle/oraInventory/orainstRoot.sh Changing permissions of /oracle/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /oracle/oraInventory to dba. The execution of the script is complete. [root@goodus2 ~]# /oracle/oraInventory/orainstRoot.sh Changing permissions of /oracle/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /oracle/oraInventory to dba. The execution of the script is complete. goodus1:/root># /oracle/grid/root.sh Running Oracle 11g root.sh script... The following environment variables are set as: ORACLE_OWNER= oragrid ORACLE_HOME= /oracle/grid 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. Now product-specific root actions will be performed. 2010-03-24 17:14:59: Parsing the host name 2010-03-24 17:14:59: Checking for super user privileges 2010-03-24 17:14:59: User has super user privileges Using configuration parameter file: /oracle/grid/crs/install/crsconfig_params Creating trace directory stty: tcgetattr: Not a typewriter User oragrid has the required capabilities to run CSSD in realtime mode LOCAL ADD MODE Creating OCR keys for user 'root', privgrp 'system'.. Operation successful. root wallet root wallet cert root cert export peer wallet profile reader wallet pa wallet peer wallet keys pa wallet keys peer cert request pa cert request peer cert pa cert peer root cert TP profile reader root cert TP pa root cert TP peer pa cert TP pa peer cert TP profile reader pa cert TP profile reader peer cert TP peer user cert pa user cert Adding daemon to inittab

- 35 –

11gR2 RAC Installation Manual CRS-4123: Oracle High Availability Services has been started. ohasd is starting CRS-2672: Attempting to start 'ora.gipcd' on 'goodus1' CRS-2672: Attempting to start 'ora.mdnsd' on 'goodus1' CRS-2676: Start of 'ora.gipcd' on 'goodus1' succeeded CRS-2676: Start of 'ora.mdnsd' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.gpnpd' on 'goodus1' CRS-2676: Start of 'ora.gpnpd' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.cssdmonitor' on 'goodus1' CRS-2676: Start of 'ora.cssdmonitor' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.cssd' on 'goodus1' CRS-2672: Attempting to start 'ora.diskmon' on 'goodus1' CRS-2676: Start of 'ora.diskmon' on 'goodus1' succeeded CRS-2676: Start of 'ora.cssd' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.ctssd' on 'goodus1' CRS-2676: Start of 'ora.ctssd' on 'goodus1' succeeded ASM created and started successfully. DiskGroup DGDATA created successfully. clscfg: -install mode specified Successfully accumulated necessary OCR keys. Creating OCR keys for user 'root', privgrp 'system'.. Operation successful. CRS-2672: Attempting to start 'ora.crsd' on 'goodus1' CRS-2676: Start of 'ora.crsd' on 'goodus1' succeeded CRS-4256: Updating the profile Successful addition of voting disk a7b39f2bdee54f5ebf32bd638daa1426. Successfully replaced voting disk group with +DGDATA. CRS-4256: Updating the profile CRS-4266: Voting file(s) successfully replaced ## STATE File Universal Id File Name Disk group -- ----------------------------- --------1. ONLINE a7b39f2bdee54f5ebf32bd638daa1426 (/dev/rhdisk154) [DGDATA] Located 1 voting disk(s). CRS-2673: Attempting to stop 'ora.crsd' on 'goodus1' CRS-2677: Stop of 'ora.crsd' on 'goodus1' succeeded CRS-2673: Attempting to stop 'ora.asm' on 'goodus1' CRS-2677: Stop of 'ora.asm' on 'goodus1' succeeded CRS-2673: Attempting to stop 'ora.ctssd' on 'goodus1' CRS-2677: Stop of 'ora.ctssd' on 'goodus1' succeeded CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'goodus1' CRS-2677: Stop of 'ora.cssdmonitor' on 'goodus1' succeeded CRS-2673: Attempting to stop 'ora.cssd' on 'goodus1' CRS-2677: Stop of 'ora.cssd' on 'goodus1' succeeded CRS-2673: Attempting to stop 'ora.gpnpd' on 'goodus1' CRS-2677: Stop of 'ora.gpnpd' on 'goodus1' succeeded CRS-2673: Attempting to stop 'ora.gipcd' on 'goodus1' CRS-2677: Stop of 'ora.gipcd' on 'goodus1' succeeded CRS-2673: Attempting to stop 'ora.mdnsd' on 'goodus1' CRS-2677: Stop of 'ora.mdnsd' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.mdnsd' on 'goodus1' CRS-2676: Start of 'ora.mdnsd' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.gipcd' on 'goodus1' CRS-2676: Start of 'ora.gipcd' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.gpnpd' on 'goodus1' CRS-2676: Start of 'ora.gpnpd' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.cssdmonitor' on 'goodus1' CRS-2676: Start of 'ora.cssdmonitor' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.cssd' on 'goodus1' CRS-2672: Attempting to start 'ora.diskmon' on 'goodus1' CRS-2676: Start of 'ora.diskmon' on 'goodus1' succeeded CRS-2676: Start of 'ora.cssd' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.ctssd' on 'goodus1' CRS-2676: Start of 'ora.ctssd' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.asm' on 'goodus1' CRS-2676: Start of 'ora.asm' on 'goodus1' succeeded

- 36 –

11gR2 RAC Installation Manual CRS-2672: Attempting to start 'ora.crsd' on 'goodus1' CRS-2676: Start of 'ora.crsd' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.evmd' on 'goodus1' CRS-2676: Start of 'ora.evmd' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.asm' on 'goodus1' CRS-2676: Start of 'ora.asm' on 'goodus1' succeeded CRS-2672: Attempting to start 'ora.DGDATA.dg' on 'goodus1' CRS-2676: Start of 'ora.DGDATA.dg' on 'goodus1' succeeded goodus1 2010/03/24 17:22:26 /oracle/grid/cdata/goodus1/backup_20100324_172226.olr Configure Oracle Grid Infrastructure for a Cluster ... succeeded Updating inventory properties for clusterware Starting Oracle Universal Installer... Checking swap space: must be greater than 500 MB. The inventory pointer is located at /etc/oraInst.loc The inventory is located at /oracle/oraInventory 'UpdateNodeList' was successful.

Actual 30464 MB

Passed

[root@goodus2:/oracle]$ /oracle/grid/root.sh Running Oracle 11g root.sh script... The following environment variables are set as: ORACLE_OWNER= oragrid ORACLE_HOME= /oracle/grid 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. Now product-specific root actions will be performed. 2010-03-25 11:18:02: Parsing the host name 2010-03-25 11:18:02: Checking for super user privileges 2010-03-25 11:18:02: User has super user privileges Using configuration parameter file: /oracle/grid/crs/install/crsconfig_params stty: tcgetattr: Not a typewriter User oragrid has the required capabilities to run CSSD in realtime mode LOCAL ADD MODE Creating OCR keys for user 'root', privgrp 'system'.. Operation successful. Adding daemon to inittab CRS-4123: Oracle High Availability Services has been started. ohasd is starting CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node goodus1, number 1, and is terminating CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'goodus2' CRS-2677: Stop of 'ora.cssdmonitor' on 'goodus2' succeeded An active cluster was found during exclusive startup, restarting to join the cluster CRS-2672: Attempting to start 'ora.mdnsd' on 'goodus2' CRS-2676: Start of 'ora.mdnsd' on 'goodus2' succeeded CRS-2672: Attempting to start 'ora.gipcd' on 'goodus2' CRS-2676: Start of 'ora.gipcd' on 'goodus2' succeeded CRS-2672: Attempting to start 'ora.gpnpd' on 'goodus2' CRS-2676: Start of 'ora.gpnpd' on 'goodus2' succeeded CRS-2672: Attempting to start 'ora.cssdmonitor' on 'goodus2' CRS-2676: Start of 'ora.cssdmonitor' on 'goodus2' succeeded CRS-2672: Attempting to start 'ora.cssd' on 'goodus2' CRS-2672: Attempting to start 'ora.diskmon' on 'goodus2' CRS-2676: Start of 'ora.diskmon' on 'goodus2' succeeded CRS-2676: Start of 'ora.cssd' on 'goodus2' succeeded

- 37 –

11gR2 RAC Installation Manual CRS-2672: Attempting to start 'ora.ctssd' on 'goodus2' CRS-2676: Start of 'ora.ctssd' on 'goodus2' succeeded CRS-2672: Attempting to start 'ora.asm' on 'goodus2' CRS-2676: Start of 'ora.asm' on 'goodus2' succeeded CRS-2672: Attempting to start 'ora.crsd' on 'goodus2' CRS-2676: Start of 'ora.crsd' on 'goodus2' succeeded CRS-2672: Attempting to start 'ora.evmd' on 'goodus2' CRS-2676: Start of 'ora.evmd' on 'goodus2' succeeded goodus2 2010/03/25 11:20:18 /oracle/grid/cdata/goodus2/backup_20100325_112018.olr Configure Oracle Grid Infrastructure for a Cluster ... succeeded Updating inventory properties for clusterware Starting Oracle Universal Installer... Checking swap space: must be greater than 500 MB. The inventory pointer is located at /etc/oraInst.loc The inventory is located at /oracle/oraInventory 'UpdateNodeList' was successful.

Actual 30464 MB

앞에서 ignore 하고 넘어간 OS Package 로 인해 오류 발생. 무시하고 진행.

- 38 –

Passed

11gR2 RAC Installation Manual

설치를 종료합니다.

- 39 –

11gR2 RAC Installation Manual [oracle@goodus1:/oracle/grid/bin]$ ps -ef | grep d.bin root 102490 1 6 11:26:07 - 0:00 /oracle/grid/bin/crsd.bin reboot root 168070 1 3 11:26:08 - 0:00 /oracle/grid/bin/oclskd.bin oragrid 172222 1 0 11:25:30 - 0:00 /oracle/grid/bin/diskmon.bin -d -f oragrid 188574 1 0 11:25:55 - 0:00 /oracle/grid/bin/oclskd.bin oragrid 237576 1 0 11:25:25 - 0:00 /oracle/grid/bin/mdnsd.bin root 254100 1 0 11:25:49 - 0:00 /oracle/grid/bin/octssd.bin reboot oragrid 274678 1 2 11:25:27 - 0:00 /oracle/grid/bin/gpnpd.bin root 282714 1 0 11:25:28 - 0:00 /oracle/grid/bin/cssdmonitor oragrid 291002 1 0 11:25:24 - 0:00 /oracle/grid/bin/gipcd.bin root 115108 1 0 11:25:30 - 0:00 /oracle/grid/bin/cssdagent oragrid 180648 127154 0 11:26:10 pts/1 0:00 grep d.bi root 229850 1 0 11:25:30 - 0:00 /oracle/grid/bin/orarootagent.bin oragrid 368946 434436 1 11:26:10 - 0:00 /oracle/grid/bin/evmlogger.bin -o /oracle/grid/evm/log/evmlogger.info -l /oracle/grid/evm/log/evmlogger.log oragrid 373232 409880 4 11:25:30 - 0:00 /oracle/grid/bin/ocssd.bin oragrid 397654 1 0 11:25:24 - 0:00 /oracle/grid/bin/oraagent.bin root 409880 1 0 11:25:30 - 0:00 /bin/sh /oracle/grid/bin/ocssd root 426386 1 0 11:25:21 - 0:02 /oracle/grid/bin/ohasd.bin reboot oragrid 434436 1 13 11:25:50 - 0:00 /oracle/grid/bin/evmd.bin [oracle@goodus1:/oracle/grid/bin]$ ifconfig -a en14: flags=5e080863,c0 inet 20.20.20.1 netmask 0xffffff00 broadcast 20.20.20.15 -> public inet 20.20.20.3 netmask 0xffffff00 broadcast 20.20.20.15 -> vip inet 20.20.20.5 netmask 0xffffff00 broadcast 20.20.20.15 -> scan-vip tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0 en15: flags=5e080863,c0 inet 10.10.10.1 netmask 0xffffff00 broadcast 10.10.10.255 -> private tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0 lo0: flags=e08084b inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255 inet6 ::1/0 tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1 goodus1:/root># /oracle/grid/bin/crs_stat -t Name Type Target State Host -----------------------------------------------------------ora.DATA.dg ora....up.type ONLINE ONLINE goodus1 ora....N1.lsnr ora....er.type ONLINE ONLINE goodus1 -> SCAN_LISTENER ora.asm ora.asm.type ONLINE ONLINE goodus1 ora.eons ora.eons.type ONLINE ONLINE goodus1 ora.gsd ora.gsd.type OFFLINE OFFLINE ora....SM1.asm application ONLINE ONLINE goodus1 ora.goodus1.gsd application OFFLINE OFFLINE ora.goodus1.ons application ONLINE ONLINE goodus1 ora.goodus1.vip ora....t1.type ONLINE ONLINE goodus1 ora....SM2.asm application ONLINE ONLINE goodus2 ora.goodus2.gsd application OFFLINE OFFLINE ora.goodus2.ons application ONLINE ONLINE goodus2 ora.goodus2.vip ora....t1.type ONLINE ONLINE goodus2 ora....network ora....rk.type ONLINE ONLINE goodus1 ora.oc4j ora.oc4j.type OFFLINE OFFLINE ora.ons ora.ons.type ONLINE ONLINE goodus1 ora.scan1.vip ora....ip.type ONLINE ONLINE goodus1->1 개의 SCAN IP 만 지정함으로 SCAN VIP 도 1 개 생성

- 40 –

11gR2 RAC Installation Manual 8.3.

Database Software Installation

(oracle 사용자로 goodus1 에서 수행합니다.) [oracle@goodus1:/oracle/INST/database]$ id uid=300(oracle) gid=300(dba) groups=0(system),1(staff),3(sys),4(adm),205(hagsuser) [oracle@goodus1:/oracle/INST/database]$ export DISPLAY=10.25.235.120:1 [oracle@goodus1:/oracle/INST/database]$ chmod +x run* [oracle@goodus1:/oracle/INST/database]$ chmod +x ./install/* [oracle@goodus1:/oracle/INST/database]$ chmod +x ./install/.oui [oracle@goodus1:/oracle/INST/database]$ ./runInstaller ******************************************************************************** Your platform requires the root user to perform certain pre-installation OS preparation. The root user should run the shell script 'rootpre.sh' before you proceed with Oracle installation. rootpre.sh can be found at the top level of the CD or the stage area. Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle installation. Answer 'n' to abort installation and then ask root to run 'rootpre.sh'. ******************************************************************************** Has 'rootpre.sh' been run by root? [y/n] (n) y Starting Oracle Universal Installer... Checking Temp space: must be greater than 190 MB. Actual 3465 MB Passed Checking swap space: must be greater than 150 MB. Actual 30720 MB Passed Checking monitor: must be configured to display at least 256 colors. Actual 65536 Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-03-18_04-36-49PM. Please wait ...

- 41 –

11gR2 RAC Installation Manual

Critical Patch Update 시 공지를 위한 e-mail 주소 등록 요청 – 무시하고 진행

- 42 –

11gR2 RAC Installation Manual

반드시 양 노드를 모두 선택

- 43 –

11gR2 RAC Installation Manual

Select Options 를 클릭해서 필요한 옵션을 선택

- 44 –

11gR2 RAC Installation Manual

$ORACLE_HOME 은 $ORACLE_BASE 하위에 지정되어야 함

이 단계에서 [INS-20702] Unexpected internal driver error 가 발생할 경우 설치를 종료하고 runInstaller -ignoreInternalDriverError 옵션으로 설치 재 수행

- 45 –

11gR2 RAC Installation Manual

1

- 46 –

11gR2 RAC Installation Manual

- 47 –

11gR2 RAC Installation Manual root 사용자로 goodus1  goodus2 순서로 /oracle/db/11g/root.sh 수행 완료 후 OK 버튼을 Click 합니다. Goodus1:/oracle/db/11g># sh root.sh Running Oracle 11g root.sh script... The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /oracle/db/11g Enter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: Copying dbhome to /usr/local/bin ... The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: Copying oraenv to /usr/local/bin ... The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: Copying coraenv to /usr/local/bin ... 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. Now product-specific root actions will be performed. Finished product-specific root actions.

설치 완료

8.4.

Check Public/Inter-connect Configuration

설치가 완료되면 현재 OCR 에 등록된 Public, Private(Interconnect) ip 구성 정보를 확인합니다. Oifcfg getif 조회 값과 x$ksxpia 조회값이 반드시 올바른 값으로 일치해야 합니다. 만약 이 값이 없거나, 값이 다르면 Failover 시 문제가 발생하게 됨을 유의하십시요. 특히 interconnect 값이 틀리면 public ip 로 interconnect 을 수행하므로, Failover 시 문제가 발생하게 됩니다. (oracle 사용자로 양 노드 수행합니다.) [oracle@goodus1:/oracle/db]$ oifcfg getif en14 20.20.20.0 global public en15 10.10.10.0 global cluster_interconnect

- 48 –

11gR2 RAC Installation Manual 8.5.

OCR & VOTE Disk Migration ASM To Rawdevice

(root 유저로 1 번노드에서 수행) OCR & Vote Disk 를 ASM Storage 에서 RAWDEVICE 로 Migration OCR Disk 는 owner (root:dba) permission (640) Vote Disk 는 owner (oracle:dba) permission (660) 으로 사전에 설정된 rawdevice 사용 (크기는 모두 280MB)

# OCR Disk Migration goodus1:/oracle/grid/bin># ./ocrconfig -add /dev/rk2crs01_lv goodus1:/oracle/grid/bin># ./ocrconfig -add /dev/rk2crs02_lv goodus1:/oracle/grid/bin># ./ocrconfig -delete +DATA goodus2:/oracle/grid/bin># ./ocrcheck Status of Oracle Cluster Registry is as follows : Version Total space (kbytes) Used space (kbytes) Available space (kbytes) :

: :

3 262120

:

2252 259868

ID

: 1354159861

Device/File Name

: /dev/rk2crs01_lv Device/File integrity check succeeded

Device/File Name

: /dev/rk2crs02_lv Device/File integrity check succeeded Device/File not configured Device/File not configured Device/File not configured

Cluster registry integrity check succeeded Logical corruption check succeeded

# Vote Disk Migration goodus1:/oracle/grid/bin># ./crsctl replace votedisk /dev/rk2vote01_lv Now formatting voting disk: /dev/rk2vote01_lv. CRS-4256: Updating the profile Successful addition of voting disk 46841e57daa74f83bfc127a0879929e1. Successful deletion of voting disk 4758848401d24f2dbffcfb7a7d81d6ea. CRS-4256: Updating the profile CRS-4266: Voting file(s) successfully replaced

goodus1:/oracle/grid/bin># ./crsctl add css votedisk /dev/rk2vote02_lv Now formatting voting disk: /dev/rk2vote02_lv. CRS-4603: Successful addition of voting disk /dev/rk2vote02_lv. - 49 –

11gR2 RAC Installation Manual goodus1:/oracle/grid/bin># ./crsctl add css votedisk /dev/rk2vote03_lv Now formatting voting disk: /dev/rk2vote03_lv. CRS-4603: Successful addition of voting disk /dev/rk2vote03_lv.

goodus1:/oracle/grid/bin># ./crsctl query css votedisk ## STATE --

-----

File Universal Id -----------------

File Name Disk group --------- ---------

1. ONLINE

46841e57daa74f83bfc127a0879929e1 (/dev/rk2vote01_lv) []

2. ONLINE

7d9a1ca7177e4f4abfa95b8fbb02e168 (/dev/rk2vote02_lv) []

3. ONLINE

1b38d780c3b54fd9bf61aeff14d42ddd (/dev/rk2vote03_lv) []

Located 3 voting disk(s).

9.

Create Database

9.1.

DBCA

DBCA를 통해 DATABASE를 생성합니다. (oracle 사용자로 goodus1에서 수행합니다.) DBCA 상에서는 RAWDEVICE 구성을 지원하지 않음으로, 여기선 최종 단계에서 Create Script만 수행하여, 생성된 Script에서 File Path를 Rawdevice로 수정 [goodus1(oracle):/oracle/db/11g/bin>dbca

- 50 –

11gR2 RAC Installation Manual

- 51 –

11gR2 RAC Installation Manual

반드시 Selet All로 양 노드 모두 선택

- 52 –

11gR2 RAC Installation Manual

- 53 –

11gR2 RAC Installation Manual

Sys, system, dbsnmp, sysman User Password 입력

Datafile을 생성할 ASM Disk Group 지정

- 54 –

11gR2 RAC Installation Manual

Grid 구성시 ASM Instance 생성 단계에서 입력한 Password 입력 이 단계에서 ORA-01031 : insufficient privileages 에러 발생시 (Bug : 8421806) On Remote node : cd $GI_HOME/dbs; orapwd file=orapw+ASM On Local node : asmca -silent -postConfigureASM 완료 후 retry

- 55 –

11gR2 RAC Installation Manual

- 56 –

11gR2 RAC Installation Manual

11g부터는 SGA_TARGET + PGA_AGGREGATE_TARGET = MEMORY_TARGET으로 설정

- 57 –

11gR2 RAC Installation Manual

- 58 –

11gR2 RAC Installation Manual

좌측 프레임의 Controlfile을 클릭하여 Maximum Datafiles 값을 2048, Maximum Log Members 5로 조정합니다.

- 59 –

11gR2 RAC Installation Manual

- 60 –

11gR2 RAC Installation Manual

좌측 프레임의 Redo Log Groups을 클릭하여 각 Thread 당 Redo Log Group을 5개씩 할당 합니다. (Thead# 1  Redo Log Group 1~5, Thead#2  Redo Log Group 6~10) Redo Log Goup의 FileSize를 500M로 조정합니다.

실제론, RAWDEVICE를 사용할 예정임으로, DATABAES CREATION은 하지 않고 Script만 생성

- 61 –

11gR2 RAC Installation Manual 9.2.

Manual DB Creation

생성된 Script를 수정해서, 전체 datafile, controlfile, spfile의 경로를 할당된 Rawdevice로 변경 후 GOODUS1.sh를 수행합니다. (적색으로 표시된 부분을 ASM에서 RAWDEVICE명으로 수정)

GOODUS1.sh #!/bin/sh OLD_UMASK=`umask` umask 0027 mkdir -p /archive/datafile/GOODUS mkdir -p /oracle/db/admin/GOODUS/adump mkdir -p /oracle/db/admin/GOODUS/dpdump mkdir -p /oracle/db/admin/GOODUS/hdump mkdir -p /oracle/db/admin/GOODUS/pfile mkdir -p /oracle/db/cfgtoollogs/dbca/GOODUS umask ${OLD_UMASK} ORACLE_SID=GOODUS1; export ORACLE_SID PATH=$ORACLE_HOME/bin:$PATH; export PATH echo You should Add this entry in the /etc/oratab: GOODUS:/oracle/db/11g:Y /oracle/db/11g/bin/sqlplus /nolog @/oracle/db/admin/GOODUS/scripts/GOODUS1.sql

GOODUS1.sql (#처리된 sql 은 필요한 component 만 해제) set verify off ACCEPT sysPassword CHAR PROMPT 'Enter new password for SYS: ' HIDE ACCEPT systemPassword CHAR PROMPT 'Enter new password for SYSTEM: ' HIDE ACCEPT sysmanPassword CHAR PROMPT 'Enter new password for SYSMAN: ' HIDE ACCEPT dbsnmpPassword CHAR PROMPT 'Enter new password for DBSNMP: ' HIDE host /oracle/db/11g/bin/orapwd file=/oracle/db/11g/dbs/orapwGOODUS1 force=y host /oracle/db/11g/bin/srvctl add database -d GOODUS -o /oracle/db/11g -p /dev/rspfile_lv -n GOODUS host /oracle/db/11g/bin/srvctl add instance -d GOODUS -i GOODUS1 -n goodus1 host /oracle/db/11g/bin/srvctl add instance -d GOODUS -i GOODUS2 -n goodus2 host /oracle/db/11g/bin/srvctl disable database -d GOODUS @/oracle/db/admin/GOODUS/scripts/CreateDB.sql @/oracle/db/admin/GOODUS/scripts/CreateDBFiles.sql @/oracle/db/admin/GOODUS/scripts/CreateDBCatalog.sql #@/oracle/db/admin/GOODUS/scripts/JServer.sql #@/oracle/db/admin/GOODUS/scripts/context.sql #@/oracle/db/admin/GOODUS/scripts/xdb_protocol.sql #@/oracle/db/admin/GOODUS/scripts/ordinst.sql #@/oracle/db/admin/GOODUS/scripts/interMedia.sql #@/oracle/db/admin/GOODUS/scripts/cwmlite.sql #@/oracle/db/admin/GOODUS/scripts/spatial.sql #@/oracle/db/admin/GOODUS/scripts/labelSecurity.sql #@/oracle/db/admin/GOODUS/scripts/emRepository.sql #@/oracle/db/admin/GOODUS/scripts/apex.sql #@/oracle/db/admin/GOODUS/scripts/owb.sql @/oracle/db/admin/GOODUS/scripts/CreateClustDBViews.sql host echo "SPFILE='/dev/rspfile_lv" > /oracle/db/11g/dbs/initGOODUS1.ora @/oracle/db/admin/GOODUS/scripts/lockAccount.sql @/oracle/db/admin/GOODUS/scripts/postDBCreation.sql

CreateDB.sql SET VERIFY OFF connect "SYS"/"&&sysPassword" as SYSDBA set echo on spool /oracle/db/admin/GOODUS/scripts/CreateDB.log append

- 62 –

11gR2 RAC Installation Manual startup nomount pfile="/oracle/db/admin/GOODUS/scripts/init.ora"; CREATE DATABASE "GOODUS" MAXINSTANCES 32 MAXLOGHISTORY 1 MAXLOGFILES 320 MAXLOGMEMBERS 5 MAXDATAFILES 2048 DATAFILE '/dev/rsystem01_lv' SIZE 1000M AUTOEXTEND OFF EXTENT MANAGEMENT LOCAL SYSAUX DATAFILE '/dev/rsysaux_lv' SIZE 1000M AUTOEXTEND OFF DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE '/dev/rtemp01_lv' SIZE 2000M AUTOEXTEND OFF UNDO TABLESPACE "UNDOTBS1" DATAFILE '/dev/rudo01_lv' SIZE 2000M AUTOEXTEND OFF CHARACTER SET UTF8 NATIONAL CHARACTER SET AL16UTF16 LOGFILE GROUP 1 ('/dev/rcoredo01_lv') SIZE 500M, GROUP 2 ('/dev/rcoredo02_lv') SIZE 500M, GROUP 3 ('/dev/rcoredo03_lv') SIZE 500M, GROUP 4 ('/dev/rcoredo04_lv') SIZE 500M, GROUP 5 ('/dev/rcoredo05_lv') SIZE 500M USER SYS IDENTIFIED BY "&&sysPassword" USER SYSTEM IDENTIFIED BY "&&systemPassword"; spool off

CreateDBFiles.sql SET VERIFY OFF connect "SYS"/"&&sysPassword" as SYSDBA set echo on spool /oracle/db/admin/GOODUS/scripts/CreateDBFiles.log append CREATE UNDO TABLESPACE "UNDOTBS2" DATAFILE '/dev/rundo02_lv' SIZE 2000M AUTOEXTEND OFF; CREATE TABLESPACE "USERS" LOGGING DATAFILE '/dev/rusers_lv' SIZE 1000M AUTOEXTEND OFF EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO; ALTER DATABASE DEFAULT TABLESPACE "USERS"; spool off

CreateDBCatalog.sql SET VERIFY OFF connect "SYS"/"&&sysPassword" as SYSDBA set echo on spool /oracle/db/admin/GOODUS/scripts/CreateDBCatalog.log append @/oracle/db/11g/rdbms/admin/catalog.sql; @/oracle/db/11g/rdbms/admin/catblock.sql; @/oracle/db/11g/rdbms/admin/catproc.sql; @/oracle/db/11g/rdbms/admin/catoctk.sql; @/oracle/db/11g/rdbms/admin/owminst.plb; connect "SYSTEM"/"&&systemPassword" @/oracle/db/11g/sqlplus/admin/pupbld.sql; connect "SYSTEM"/"&&systemPassword" set echo on spool /oracle/db/admin/GOODUS/scripts/sqlPlusHelp.log append @/oracle/db/11g/sqlplus/admin/help/hlpbld.sql helpus.sql; spool off spool off

CreateClustDBViews.sql SET VERIFY OFF connect "SYS"/"&&sysPassword" as SYSDBA set echo on

- 63 –

11gR2 RAC Installation Manual spool /oracle/db/admin/GOODUS/scripts/CreateClustDBViews.log append @/oracle/db/11g/rdbms/admin/catclust.sql; spool off

lockAccount.sql SET VERIFY OFF set echo on spool /oracle/db/admin/GOODUS/scripts/lockAccount.log append BEGIN FOR item IN ( SELECT USERNAME FROM DBA_USERS WHERE ACCOUNT_STATUS IN ('OPEN', 'LOCKED', 'EXPIRED') AND USERNAME NOT IN ( 'SYS','SYSTEM') ) LOOP dbms_output.put_line('Locking and Expiring: ' || item.USERNAME); execute immediate 'alter user ' || sys.dbms_assert.enquote_name( sys.dbms_assert.schema_name( item.USERNAME),false) || ' password expire account lock' ; END LOOP; END; / spool off

postDBCreation.sql SET VERIFY OFF connect "SYS"/"&&sysPassword" as SYSDBA set echo on spool /oracle/db/admin/GOODUS/scripts/postDBCreation.log append execute DBMS_AUTO_TASK_ADMIN.disable(); select 'utl_recomp_begin: ' || to_char(sysdate, 'HH:MI:SS') from dual; execute utl_recomp.recomp_serial(); select 'utl_recomp_end: ' || to_char(sysdate, 'HH:MI:SS') from dual; select group# from v$log where group# =6; select group# from v$log where group# =7; select group# from v$log where group# =8; select group# from v$log where group# =9; select group# from v$log where group# =10; ALTER DATABASE ADD LOGFILE THREAD 2 GROUP 6 ('/dev/rcoredo06_lv') SIZE 500M, GROUP 7 ('/dev/rcoredo07_lv') SIZE 500M, GROUP 8 ('/dev/rcoredo08_lv') SIZE 500M, GROUP 9 ('/dev/rcoredo09_lv') SIZE 500M, GROUP 10 ('/dev/rcoredo10_lv') SIZE 500M; ALTER DATABASE ENABLE PUBLIC THREAD 2; host echo cluster_database=true >>/oracle/db/admin/GOODUS/scripts/init.ora; host echo remote_listener=goodus-scan:1521>>/oracle/db/admin/GOODUS/scripts/init.ora; connect "SYS"/"&&sysPassword" as SYSDBA set echo on create spfile='/dev/rspfile_lv' FROM pfile='/oracle/db/admin/GOODUS/scripts/init.ora'; shutdown immediate; host /oracle/db/11g/bin/srvctl enable database -d GOODUS; host /oracle/db/11g/bin/srvctl start database -d GOODUS; connect "SYS"/"&&sysPassword" as SYSDBA #host /oracle/db/11g/bin/emca -config dbcontrol db -silent -cluster -DB_UNIQUE_NAME GOODUS -PORT 1521 EM_HOME /oracle/db/11g -LISTENER LISTENER -CLUSTER_NAME goodus-cluster -SERVICE_NAME GOODUS -SID GOODUS -ORACLE_HOME /oracle/db/11g -HOST goodus1 -LISTENER_OH /oracle/grid -LOG_FILE /oracle/db/admin/GOODUS/scripts/emConfig.log; spool off

- 64 –

11gR2 RAC Installation Manual exit;

Init.ora ############################################################################## # Copyright (c) 1991, 2001, 2002 by Oracle Corporation ############################################################################## ########################################### # Cache and I/O ########################################### db_block_size=8192 ########################################### # Cluster Database ########################################### #cluster_database=true #remote_listener=goodus-scan:1521 ########################################### # Cursors and Library Cache ########################################### open_cursors=300 ########################################### # Database Identification ########################################### db_domain="" db_name=GOODUS ########################################### # File Configuration ########################################### control_files=("/dev/rcontrol01_lv", "/dev/rcontrol02_lv") ########################################### # Miscellaneous ########################################### compatible=11.2.0.0.0 diagnostic_dest=/oracle/db memory_target=52935262208 ########################################### # Processes and Sessions ########################################### processes=1000 sessions=1105 ########################################### # Security and Auditing ########################################### audit_file_dest=/oracle/db/admin/GOODUS/adump audit_trail=db remote_login_passwordfile=exclusive ########################################### # Shared Server ########################################### dispatchers="(PROTOCOL=TCP) (SERVICE=GOODUSXDB)" GOODUS1.instance_number=1 GOODUS2.instance_number=2 GOODUS2.thread=2 GOODUS1.thread=1 GOODUS1.undo_tablespace=UNDOTBS1 GOODUS2.undo_tablespace=UNDOTBS2

- 65 –

11gR2 RAC Installation Manual 9.3.

DATABASE Status

COMP_NAME ---------------------------------------Oracle Enterprise Manager Oracle Workspace Manager Oracle Database Catalog Views Oracle Database Packages and Types Oracle Real Application Clusters

9.4.

VERSION -----------------------------11.2.0.1.0 11.2.0.1.0 11.2.0.1.0 11.2.0.1.0 11.2.0.1.0

STATUS --------------------------------VALID VALID VALID VALID VALID

ASM Resource 제거

(oragrid 유저로 1 번 노드에서 수행) [oracle@goodus1:/oracle/grid]$ srvctl stop database -d GOODUS [oracle@goodus1:/oracle/grid]$ srvctl stop diskgroup -g data [oracle@goodus1:/oracle/grid]$ srvctl stop asm -n goodus1 [oracle@goodus1:/oracle/grid]$ srvctl stop asm -n goodus2 [oracle@goodus1:/oracle/grid]$ srvctl remove diskgroup -g data -f [oracle@goodus1:/oracle/grid]$ srvctl remove asm -f [oracle@goodus1:/oracle/grid]$ srvctl modify database -d goodus -z --> dependency 제거 , 안해주면 DB Startup 시 아래와 같은 에러 발생 PRCR-1079 : Failed to start resource ora.goodus.db CRS-2640: Required resource 'ora.DATA.dg' is missing. [oracle@goodus1:/oracle/db]$ srvctl start database -d GOODUS

9.5.

Network Setting

9.5.1. SCAN_LISTENER제거 (oragrid 유저로 1 번 노드에서 수행) [oracle@goodus1:/oracle/grid]$ srvctl stop scan_listener [oracle@goodus1:/oracle/grid]$ srvctl stop scan [oracle@goodus1:/oracle/grid]$ srvctl remove scan_listener -y [oracle@goodus1:/oracle/grid]$ sudo su Goodus1:/root># /oracle/grid/bin/srvctl remove scan -y

9.5.2. Remote Listener 제거 (Scan Listener 를 사용하지 않으므로, 제거) SQL> alter system set remote_listener='' sid='*'; System altered. SQL> show parameter remote NAME TYPE VALUE ------------------------------- ----------- -----------------------------remote_listener string

9.5.3. LISTENER.ORA 11gR2 부터는 listener.ora 는 $GRID_HOME/network/admin 에 위치하며, tnsnames.ora 는 $ORACLE_HOME/network/admin 의 것을 사용함. Listener Resource 는 grid 유저를 owner 로 함. Local Listener Registration SQL> alter system set local_listener='GOODUS' scope=both sid='GOODUS1'; SQL> alter system set local_listener='GOODUS' scope=both sid='GOODUS2';

- 66 –

11gR2 RAC Installation Manual [oracle@goodus1:/oracle/grid/network/admin]$ cat listener.ora LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON [oracle@goodus1:/oracle/grid/network/admin]$ cat endpoints_listener.ora LISTENER_GOODUS1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=goodus1vip)(PORT=1526))(ADDRESS=(PROTOCOL=TCP)(HOST=20.20.20.1)(PORT=1526)(IP=FIRST)))) [oracle@goodus1:/oracle/grid/network/admin]$ lsnrct status Listener Parameter File /oracle/grid/network/admin/listener.ora Listener Log File /oracle/grid/log/diag/tnslsnr/goodus1/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=20.20.20.1)(PORT=1526))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=20.20.20.3)(PORT=1526))) Services Summary... Service "GOODUS" has 1 instance(s). Instance "GOODUS1", status READY, has 1 handler(s) for this service... The command completed successfully [oracle@goodus2:/oracle/grid/network/admin]$ lsnrct status Listener Parameter File /oracle/grid/network/admin/listener.ora Listener Log File /oracle/grid/log/diag/tnslsnr/goodus2/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=20.20.20.2)(PORT=1526))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=20.20.20.4)(PORT=1526))) Services Summary... Service "GOODUS" has 1 instance(s). Instance "GOODUS2", status READY, has 1 handler(s) for this service... The command completed successfully Tnsnames.ora GOODUS = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 20.20.20.3)(PORT = 1526)) (ADDRESS = (PROTOCOL = TCP)(HOST = 20.20.20.4)(PORT = 1526)) (FAIL_OVER=ON) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = GOODUS) ) )

9.6.

Archive Log Mode 변경

(oracle user 로 1 번 노드에서 수행) SQL> alter system set cluster_database=false scope=spfile sid='*'; SQL> alter system set log_archive_format = 'arch_%t_%r_%s.arc' scope=spfile sid='*'; SQL> alter system set log_archive_dest_1 = 'location=/arch1' scope=spfile sid='GOODUS1'; SQL> alter system set log_archive_dest_1 = 'location=/arch2' scope=spfile sid='GOODUS2'; [oracle@goodus1:/oracle/db]$ srvctl stop database -d GOODUS SQL> startup mount SQL> alter database archivelog; SQL> alter database open;

- 67 –

11gR2 RAC Installation Manual SQL> alter system set cluster_database=true scope=spfile sid='*'; SQL> shutdown immediate; [oracle@goodus1:/oracle/db]$ srvctl start database -d GOODUS

9.7.

CRS Resource Status

[oracle@goodus1:/oracle/db]$ crsstat HA Resource ----------ora.LISTENER.lsnr ora.eons ora.gsd ora.goodus1.LISTENER_GOODUS1.lsnr ora.goodus1.gsd ora.goodus1.ons ora.goodus1.vip ora.goodus2.LISTENER_GOODUS2.lsnr ora.goodus2.gsd ora.goodus2.ons ora.goodus2.vip ora.goodus.db ora.net1.network ora.oc4j ora.ons

Target -----ONLINE ONLINE OFFLINE ONLINE OFFLINE ONLINE ONLINE ONLINE OFFLINE ONLINE ONLINE ONLINE ONLINE OFFLINE ONLINE

State ----ONLINE on ONLINE on OFFLINE ONLINE on OFFLINE ONLINE on ONLINE on ONLINE on OFFLINE ONLINE on ONLINE on ONLINE on ONLINE on OFFLINE ONLINE on

goodus1 goodus1 goodus1 goodus1 goodus1 goodus2 goodus2 goodus2 goodus1 goodus1 goodus1

[oracle@goodus1:/oracle/db]$ srvctl config database -d GOODUS Database unique name: GOODUS Database name: GOODUS Oracle home: /oracle/db/11g Oracle user: oracle Spfile: /dev/rspfile_lv Domain: Start options: open Stop options: immediate Database role: PRIMARY Management policy: AUTOMATIC Server pools: GOODUS Database instances: GOODUS1,GOODUS2 Disk Groups: Services: Database is administrator managed

9.8.

DB Parameter

show parameter NAME -----------------------------------O7_DICTIONARY_ACCESSIBILITY active_instance_count aq_tm_processes archive_lag_target asm_diskgroups asm_diskstring asm_power_limit asm_preferred_read_failure_groups audit_file_dest

TYPE ----------boolean integer integer integer string string integer string string

VALUE -----------------------------FALSE 0 0

1 /oracle/db/admin/GOODUS/adump

- 68 –

11gR2 RAC Installation Manual audit_sys_operations audit_syslog_level audit_trail background_core_dump background_dump_dest backup_tape_io_slaves bitmap_merge_area_size blank_trimming buffer_pool_keep buffer_pool_recycle cell_offload_compaction cell_offload_decryption cell_offload_parameters cell_offload_plan_display cell_offload_processing cell_partition_large_extents circuits client_result_cache_lag client_result_cache_size cluster_database cluster_database_instances cluster_interconnects commit_logging commit_point_strength commit_wait commit_write compatible control_file_record_keep_time control_files control_management_pack_access core_dump_dest cpu_count create_bitmap_area_size create_stored_outlines cursor_sharing cursor_space_for_time db_16k_cache_size db_2k_cache_size db_32k_cache_size db_4k_cache_size db_8k_cache_size db_block_buffers db_block_checking db_block_checksum db_block_size db_cache_advice db_cache_size db_create_file_dest db_create_online_log_dest_1 db_create_online_log_dest_2 db_create_online_log_dest_3 db_create_online_log_dest_4 db_create_online_log_dest_5 db_domain db_file_multiblock_read_count db_file_name_convert db_files db_flash_cache_file db_flash_cache_size

boolean string string string string boolean integer boolean string string string boolean string string boolean string integer big integer big integer boolean integer string string integer string string string integer string string string integer integer string string boolean big integer big integer big integer big integer big integer integer string string integer string big integer string string string string string string string integer string integer string big integer

FALSE DB partial /oracle/db/diag/rdbms/goodus/GOODUS1/trace FALSE 1048576 FALSE

ADAPTIVE TRUE AUTO TRUE DEFAULT 3000 0 TRUE 2

1

11.2.0.0.0 7 /dev/rk2coredo39_lv, /dev/rk2coredo40_lv DIAGNOSTIC+TUNING /oracle/db/diag/rdbms/goodus/GOODUS1/cdump 8 8388608 EXACT FALSE 0 0 0 0 0 0 FALSE TYPICAL 8192 ON 10G

16 1000 0

- 69 –

11gR2 RAC Installation Manual db_flashback_retention_target db_keep_cache_size db_lost_write_protect db_name db_recovery_file_dest db_recovery_file_dest_size db_recycle_cache_size db_securefile db_ultra_safe db_unique_name db_writer_processes dbwr_io_slaves ddl_lock_timeout deferred_segment_creation dg_broker_config_file1 dg_broker_config_file2 dg_broker_start diagnostic_dest disk_asynch_io dispatchers distributed_lock_timeout dml_locks dst_upgrade_insert_conv enable_ddl_logging event fal_client fal_server fast_start_io_target fast_start_mttr_target fast_start_parallel_rollback file_mapping fileio_network_adapters filesystemio_options fixed_date gcs_server_processes global_context_pool_size global_names global_txn_processes hash_area_size hi_shared_memory_address hs_autoregister ifile instance_groups instance_name instance_number instance_type java_jit_enabled java_max_sessionspace_size java_pool_size java_soft_sessionspace_limit job_queue_processes large_pool_size ldap_directory_access ldap_directory_sysauth license_max_sessions license_max_users license_sessions_warning listener_networks local_listener

integer big integer string string string big integer big integer string string string integer integer integer boolean string string boolean string boolean string integer integer boolean boolean string string string integer integer string boolean string string string integer string boolean integer integer integer boolean file string string integer string boolean integer big integer integer integer big integer string string integer integer integer string string

1440 0 NONE GOODUS 0 0 PERMITTED OFF GOODUS 1 0 0 TRUE /oracle/db/11g/dbs/dr1GOODUS.dat /oracle/db/11g/dbs/dr2GOODUS.dat FALSE /oracle/db TRUE 60 33120 TRUE FALSE

0 240 LOW FALSE asynch 2 FALSE 1 131072 0 TRUE

GOODUS1 1 RDBMS TRUE 0 320M 0 1 320M NONE no 0 0 0 GOODUS

- 70 –

11gR2 RAC Installation Manual lock_name_space lock_sga log_archive_config log_archive_dest log_archive_dest_1 log_archive_dest_state_1 log_archive_duplex_dest log_archive_format log_archive_local_first log_archive_max_processes log_archive_min_succeed_dest log_archive_start log_archive_trace log_buffer log_checkpoint_interval log_checkpoint_timeout log_checkpoints_to_alert log_file_name_convert max_dispatchers max_dump_file_size max_enabled_roles max_shared_servers memory_max_target memory_target nls_calendar nls_comp nls_currency nls_date_format nls_date_language nls_dual_currency nls_iso_currency nls_language nls_length_semantics nls_nchar_conv_excp nls_numeric_characters nls_sort nls_territory nls_time_format nls_time_tz_format nls_timestamp_format nls_timestamp_tz_format object_cache_max_size_percent object_cache_optimal_size olap_page_pool_size open_cursors open_links open_links_per_instance optimizer_capture_sql_plan_baselines optimizer_dynamic_sampling optimizer_features_enable optimizer_index_caching optimizer_index_cost_adj optimizer_mode optimizer_secure_view_merging optimizer_use_invisible_indexes optimizer_use_pending_statistics optimizer_use_sql_plan_baselines os_authent_prefix os_roles

string boolean string string string string string string boolean integer integer boolean integer integer integer integer boolean string integer string integer integer big integer big integer string string string string string string string string string string string string string string string string string integer integer big integer integer integer integer boolean integer string integer integer string boolean boolean boolean boolean string boolean

FALSE

location=/arch1 enable arch_%t_%r_%s.arc TRUE 4 1 FALSE 0 22716416 0 1800 FALSE

unlimited 150 0 0 BINARY

AMERICAN BYTE FALSE

AMERICA

10 102400 0 3500 4 4 FALSE 2 11.2.0.1 0 100 ALL_ROWS TRUE FALSE FALSE TRUE ops$ FALSE

- 71 –

11gR2 RAC Installation Manual parallel_adaptive_multi_user parallel_automatic_tuning parallel_degree_limit parallel_degree_policy parallel_execution_message_size parallel_force_local parallel_instance_group parallel_io_cap_enabled parallel_max_servers parallel_min_percent parallel_min_servers parallel_min_time_threshold parallel_server parallel_server_instances parallel_servers_target parallel_threads_per_cpu permit_92_wrap_format pga_aggregate_target plscope_settings plsql_ccflags plsql_code_type plsql_debug plsql_optimize_level plsql_v2_compatibility plsql_warnings pre_page_sga processes query_rewrite_enabled query_rewrite_integrity rdbms_server_dn read_only_open_delayed recovery_parallelism recyclebin redo_transport_user remote_dependencies_mode remote_listener remote_login_passwordfile remote_os_authent remote_os_roles replication_dependency_tracking resource_limit resource_manager_cpu_allocation resource_manager_plan result_cache_max_result result_cache_max_size result_cache_mode result_cache_remote_expiration resumable_timeout rollback_segments sec_case_sensitive_logon sec_max_failed_login_attempts sec_protocol_error_further_action sec_protocol_error_trace_action sec_return_server_release_banner serial_reuse service_names session_cached_cursors session_max_open_files sessions

boolean boolean string string integer boolean string boolean integer integer integer string boolean integer integer integer boolean big integer string string string boolean integer boolean string boolean integer string string string boolean integer string string string string string boolean boolean boolean boolean integer string integer big integer string integer integer string boolean integer string string boolean string string integer integer integer

TRUE FALSE CPU MANUAL 16384 FALSE GOODUS1 FALSE 160 0 0 AUTO TRUE 2 64 2 TRUE 5G IDENTIFIERS:NONE INTERPRETED FALSE 2 FALSE DISABLE:ALL FALSE 5000 TRUE enforced FALSE 0 on TIMESTAMP EXCLUSIVE FALSE FALSE TRUE FALSE 8 5 52448K MANUAL 0 0 TRUE 10 CONTINUE TRACE FALSE disable GOODUS 500 10 7528

- 72 –

11gR2 RAC Installation Manual sga_max_size sga_target shadow_core_dump shared_memory_address shared_pool_reserved_size shared_pool_size shared_server_sessions shared_servers skip_unusable_indexes smtp_out_server sort_area_retained_size sort_area_size spfile sql92_security sql_trace sqltune_category standby_archive_dest standby_file_management star_transformation_enabled statistics_level streams_pool_size tape_asynch_io thread timed_os_statistics timed_statistics trace_enabled tracefile_identifier transactions transactions_per_rollback_segment undo_management undo_retention undo_tablespace use_indirect_data_buffers use_sigio user_dump_dest utl_file_dir workarea_size_policy xml_db_events

10.

big integer big integer string integer big integer big integer integer integer boolean string integer integer string boolean boolean string string string string string big integer boolean integer integer boolean boolean string integer integer string integer string boolean boolean string string string string

16096M 0 partial 0 256M 5G 0 TRUE 0 65536 /dev/rk2coredo38_lv FALSE FALSE DEFAULT ?/dbs/arch MANUAL FALSE TYPICAL 0 TRUE 1 0 TRUE TRUE 8280 5 AUTO 21600 UNDOTBS1 FALSE TRUE /oracle/db/diag/rdbms/goodus/GOODUS1/trace AUTO enable

마치며

이상으로, 11gR2 RAC 를 RAWDEVICE 를 이용하여 구성하여 보았습니다. 11g R2 RAC 에 비록 GNS, GPnP, SCAN, ACFS 등 여러 개념이 새로 나왔지만, 특히나 이해가 어려운 부분이 네트 웍 환경 설정에 관한 부분 인 듯 합니다. SCAN 을 이용하여 모든 CLIENT 에서 접속을 단순화 하고 서버측에서 LOAD BALANCING 을 하겠다는 것은 일견 편리한 듯 보이지만, 국내에서 주로 사용하는 최대 4 노드 이하의 RAC 환경에서 크게 이점이 있는 부분인지는 고민이 필요할 듯 합니다. 이 문서상에서 최대한 기존에 사용 중이던, 10g RAC 환경과 유사하게 scan 과 gns 를 제거하고, rawdevice 로 환경 을 구성하였습니다. 이 문서에선 언급되지 않았지만, CFS 를 이용하여 OCR 과 VOTE 를 생성하고, 차후 RAWDEVICE 로 전환하는 것도 크게 다르지 않기 때문에 기존과 같이 RAWDEVICE 로 11gR2 RAC 를 구축하려는 분들께 조금이나마 도움이 되길 바랍니다.

- 73 –

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF