HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid...

21
HOW-TO Install Grid infrastructure 11gR2 on AIX 6.1

Transcript of HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid...

Page 1: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

HOW-TO Install Grid infrastructure 11gR2 on

AIX 6.1

Page 2: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 2

Objet :

Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1.

Historique :

Version Date Modifications Rédacteur Vérificateur Approbateur

1.0 10/10/2011 laurenceb

Documents de référence :

Description du document Nom du document N°

Page 3: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 3

SOMMAIRE

1 INTRODUCTION ............................................................................................................................... 4

2 PREREQUIS système ........................................................................................................................ 5

2.1 RAM ......................................................................................................................................... 5

2.2 SWAP ....................................................................................................................................... 5

2.3 Version de l’OS ........................................................................................................................ 5

2.4 Packages .................................................................................................................................. 5

2.5 APAR ........................................................................................................................................ 6

2.5.1 IZ41855 ............................................................................................................................ 6

2.5.2 IZ52319 ............................................................................................................................ 7

2.5.3 IZ51456 ............................................................................................................................ 8

2.6 Paramètres Noyeau TCP et UDP .............................................................................................. 8

2.7 Asynchronous Input Output Processes ................................................................................... 8

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

2.9 System Block Size Allocation ................................................................................................. 10

2.10 SSH LoginGraceTime Parameter for AIX ................................................................................ 10

2.11 Shell limits ............................................................................................................................. 11

2.12 User Process Parameters ....................................................................................................... 11

2.13 Network Tuning Parameters ................................................................................................. 11

2.14 Network Time Protocol Setting ............................................................................................. 13

3 Prérequis Env. du propriétaire du logiciel Oracle ......................................................................... 13

3.1 Oracle Grid Infrastructure & ASM ......................................................................................... 13

3.2 Disque candidat ASM ............................................................................................................ 13

4 INSTALLATION D’ORACLE GRID INFRASTRUCTURE ....................................................................... 14

Page 4: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 4

1 INTRODUCTION

L’objet de ce document est l’installation d’Oracle Grid Infrastructure dans le but d’utiliser la

fonctionnalité ASM.

Sources :

http://community.oraclepressbooks.com/downloads/tcoug-top-10-asm-questions.pdf

http://download.oracle.com/docs/cd/E11882_01/install.112/e17210.pdf

Page 5: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 5

2 PREREQUIS SYSTEME

2.1 RAM

4g de ram sont nécessaire pour l’installation, pour vérifier la quantité de RAM sur la machine :

root/ $/usr/sbin/lsattr -E -l sys0 -a realmem

realmem 5242880 Amount of usable physical memory in Kbytes False

2.2 SWAP

1,5 Go minimum

Entre 4 et 16Go de RAM Equivalent en swap

Plus de 16Go 16Go de SWAP

root/ $lsps -a

Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum

hd6 hdisk0 rootvg 5344MB 37 yes yes lv 0

2.3 Version de l’OS

Vérification du niveau de version de l’OS :

root/ $oslevel -r

6100-06

La version de l’OS doit être au minimum : 5.3.

2.4 Packages

lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.libperfstat \

bos.perf.perfstat bos.perf.proctools rsct.basic.rte rsct.compat.clients.rte \

xlC.aix61.rte

Résultat :

root/ $lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.libperfstat \

> bos.perf.perfstat bos.perf.proctools rsct.basic.rte rsct.compat.clients.rte \

> xlC.aix61.rte

Fileset Level State Description

----------------------------------------------------------------------------

Path: /usr/lib/objrepos

bos.adt.base 6.1.6.15 COMMITTED Base Application Development Toolkit

bos.adt.lib 6.1.2.0 COMMITTED Base Application Development Libraries

bos.adt.libm 6.1.6.0 COMMITTED Base Application Development Math Library

Page 6: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 6

bos.perf.libperfstat 6.1.6.15 COMMITTED Performance Statistics Library Interface

bos.perf.perfstat 6.1.6.15 COMMITTED Performance Statistics Interface

bos.perf.proctools 6.1.6.15 COMMITTED Proc Filesystem Tools

rsct.basic.rte 3.1.0.4 COMMITTED RSCT Basic Function

rsct.compat.clients.rte 3.1.0.0 COMMITTED RSCT Event Management Client Function

xlC.aix61.rte 11.1.0.1 COMMITTED XL C/C++ Runtime for AIX 6.1

Path: /etc/objrepos

bos.adt.base 6.1.6.15 COMMITTED Base Application Development Toolkit

bos.perf.libperfstat 6.1.6.15 COMMITTED Performance Statistics Library Interface

bos.perf.perfstat 6.1.4.0 COMMITTED Performance Statistics Interface

rsct.basic.rte 3.1.0.4 COMMITTED RSCT Basic Function

2.5 APAR

root/ $oslevel -s

6100-06-05-1115

root/ $instfix -i -k "IZ41855 IZ51456 IZ52319"

There was no data for IZ41855 in the fix database.

There was no data for IZ51456 in the fix database.

There was no data for IZ52319 in the fix database.

2.5.1 IZ41855

lslpp -l bos.mp64

Page 7: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 7

2.5.2 IZ52319

Page 8: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 8

2.5.3 IZ51456

2.6 Paramètres Noyeau TCP et UDP

root/ $/usr/sbin/no -a | fgrep ephemeral

tcp_ephemeral_high = 65500

tcp_ephemeral_low = 9000

udp_ephemeral_high = 65500

udp_ephemeral_low = 9000

Pour modifier les valeurs :

# /usr/sbin/no -p -o tcp_ephemeral_low=9000 -o tcp_ephemeral_high=65500

# /usr/sbin/no -p -o udp_ephemeral_low=9000 -o udp_ephemeral_high=65500

2.7 Asynchronous Input Output Processes

La valeur recommandé pour aio_maxreqs est 64 (65536). Pour vérifier cette valeur :

# ioo -o aio_maxreqs

aio_maxreqs = 65536

Page 9: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 9

2.8 Tuning Virtual Memory Manager (VMM)

root/ $vmstat -v

1310720 memory pages

1254672 lruable pages

318215 free pages

1 memory pools

390667 pinned pages

80.0 maxpin percentage

3.0 minperm percentage

90.0 maxperm percentage

13.0 numperm percentage

164232 file pages

0.0 compressed percentage

0 compressed pages

13.0 numclient percentage

90.0 maxclient percentage

164232 client pages

0 remote pageouts scheduled

10693 pending disk I/Os blocked with no pbuf

158566 paging space I/Os blocked with no psbuf

2228 filesystem I/Os blocked with no fsbuf

0 client filesystem I/Os blocked with no fsbuf

33576 external pager filesystem I/Os blocked with no fsbuf

63.2 percentage of memory used for computational pages

Ou :

vmo -L strict_maxclient -L strict_maxperm -L minperm% -L maxperm% -L maxclient% -L

lru_file_repage

Page 10: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 10

2.9 System Block Size Allocation

Augmenter l’espace alloué à ARG/ENV : 128. La taille est spécifié en nombre de block de 4k.

Exemple :

/usr/sbin/chdev -l sys0 -a ncargs='128'

2.10 SSH LoginGraceTime Parameter for AIX

vi /etc/ssh/sshd_config

Modifier :

#LoginGraceTime 2m

Par :

LoginGraceTime 0

Page 11: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 11

2.11 Shell limits

Pour l’utilisateur « root » :

Ajouter les lignes suivantes dans le fichier /etc/security/limits.conf :

default:

fsize = -1

core = 2097151

cpu = -1

data = -1

rss = -1

stack = -1

nofiles = -1

Verifier le nombre maximal de processuss autorisé pour l’utilisateur propriétaire du logiciel Oracle :

gucci /home/oragrid > /usr/sbin/lsattr -E -l sys0 -a maxuproc

maxuproc 16384 Maximum number of PROCESSES allowed per user True

Si nécessaire, modifier la valeur :

/usr/sbin/chdev -l sys0 -a maxuproc=16384

2.12 User Process Parameters

Vérifier le nombre maximal de procéssus autorisé pour les utilisateurs propriétaire du logiciel Oracle,

la valeur doit être égal ou supérieur à 2048.

Dans un env. de production cette valeur doit être de 128 + somme de PROCESSES et

PARALLEL_MAX_SERVERS pour chaque base de données.

Pour vérifier cette valeur :

smit chgsys

2.13 Network Tuning Parameters

Les recommendations Oracle sont les suivantes :

Page 12: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 12

Pour vérifier ces valeurs :

root/ $no -a |grep ipqmaxlen

ipqmaxlen = 100

root/ $no -a |grep rfc1323

rfc1323 = 0

root/ $no -a |grep sb_max

sb_max = 1048576

root/ $no -a |grep cp_recvspace

tcp_recvspace = 16384

root/ $no -a |grep tcp_sendspace

tcp_sendspace = 16384

root/ $no -a |grep udp_recvspace

udp_recvspace = 42080

root/ $no -a |grep udp_sendspace

udp_sendspace = 9216

Pour modifier ces valeurs :

CF. http://download.oracle.com/docs/cd/E11882_01/install.112/e17210.pdf

� Configuring Network Tuning Parameters

Page 13: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 13

2.14 Network Time Protocol Setting

CF. http://download.oracle.com/docs/cd/E11882_01/install.112/e17210.pdf

� Network Time Protocol Setting

3 PREREQUIS ENV. DU PROPRIETAIRE DU LOGICIEL

ORACLE

3.1 Oracle Grid Infrastructure & ASM

� Modifier le mode de cration de fichier mask (umask) à 022 dans le fichier .profile.

� Vérifier / Modifier les paramètres « ulimit » pour « file descriptors » et « processes ».

Dans le cas ou l’utilisateur est le propriétaire « ASM » :

Création d’un répertoire « ORACLE_BASE » (Oracle Flexible Architecture) :

/u01/app/« owner »

Attention : il ne fait pas créér le « home » de l’utilisateur sous « ORACLE_BASE ».

3.2 Disque candidat ASM

gucci /lv01/app/oragrid > lspv

hdisk0 00086ffabf08dcaf rootvg active

hdisk1 00086ffac0b99514 oracle active

hdisk2 00086ffa8708984c prada_wpar active

hdisk3 00086ffad41637bb grid active

hdisk4 none None

hdisk5 none None

Ici les diques utilisés sont « hdisk4 » et « hdisk5 ». Pour les rendrent « candidat » ASM, il suffit

d’effectuer les opérations suivantes :

chown oragrid:oinstall /dev/rhdisk4

chmod 660 /dev/rhdisk4

chown oragrid:oinstall /dev/rhdisk5

chmod 660 /dev/rhdisk5

Page 14: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 14

4 INSTALLATION D’ORACLE GRID INFRASTRUCTURE

gucci /sources/oracle/DATABASE/AIX5L/Oracle11g/11.2.0.2/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 on all nodes? [y/n] (n) y

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 190 MB. Actual 2325 MB Passed

Checking swap space: must be greater than 150 MB. Actual 5344 MB Passed

Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-10-05_11-41-58AM. Please

wait ...

Executer “rootpre.sh” si nécéssaire.

Page 15: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 15

Sélectionner « Skip software update », cliquer sur « next ».

Sélectionner « Configure Oracle Grid infrastructure for standalone Server », cliquer sur « next ».

Page 16: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 16

Sélectionner « French », cliquer sur « Next ».

Entrer le nom du groupe de disque et sélectionner le ou les disques candidat désiré. Le

« Redundancy » ici est « external », cette fonctionnalité est déjà présente au niveau de la baie.

Page 17: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 17

Entrer un mot de passe pour les utilisateurs « sys » et « asmsnmp », cliquer sur « Next ».

Selectionner les groupes « dba », « osoper » et « osasm », cliquer sur « Next ».

Page 18: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 18

Vérifier / modifier le répertoire « ORACLE_BASE » et le répertoire d’installation des binaires du

logiciel oracle, cliquer sur « Next ».

Les prerequis à l’installation sont vérifié, dans le cas d’un prerequis manquant corriger l’érreur.

Page 19: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 19

Cliquer sur « Install ».

Page 20: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 20

Executer le fichier en tant qu’utilisateur “root”.

Running Oracle 11g root script...

The following environment variables are set as:

ORACLE_OWNER= oragrid

ORACLE_HOME= /lv01/app/oragrid/product/11.2.0

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]:

The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]:

The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]:

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 script.

Now product-specific root actions will be performed.

Using configuration parameter file: /lv01/app/oragrid/product/11.2.0/crs/install/crsconfig_params

Creating trace directory

LOCAL ADD MODE

Creating OCR keys for user 'oragrid', privgrp 'oinstall'..

Operation successful.

LOCAL ONLY MODE

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'system'..

Operation successful.

CRS-4664: Node gucci successfully pinned.

Adding daemon to inittab

Page 21: HOW-TO Install Oracle Grid Infrastructure 11gR2 on AIX · Installation d’Oracle Grid Infrastructure 11gR2 sur AIX 6.1. ... Running Oracle 11g root script ... HOW-TO Install Oracle

Page | 21

ACFS-9300: ADVM/ACFS distribution files found.

ACFS-9307: Installing requested ADVM/ACFS software.

ACFS-9359: The AIX ODM entry for 'acfsctl' was successfully added.

ACFS-9359: The AIX ODM entry for 'advmctl' was successfully added.

ACFS-9359: The AIX ODM entry for 'advmvol' was successfully added.

ACFS-9308: Loading installed ADVM/ACFS drivers.

ACFS-9327: Verifying ADVM/ACFS devices.

ACFS-9309: ADVM/ACFS installation correctness verified.

gucci 2011/10/06 09:14:35

/lv01/app/oragrid/product/11.2.0/cdata/gucci/backup_20111006_091435.olr

Successfully configured Oracle Grid Infrastructure for a Standalone Server

L’installation est terminée, cliquer sur “close”.