Dnes je: 20. května 2012

Ostatní

Autor knihy

Oracle Database 11g - Hotová řešení

Kdo je online

Právě připojeni - hostů: 8 

Přihlásit se




Instalace Grid Infrastructure

Ve verzi databáze Oracle 11R2 se setkáte s novým pojmem a to je Grid infrastructure. Grid infrastructure je software, který vám umožní využívat výhody Enterprise grid architektury. V případě, že chcete používat ASM nebo novou vlastnost Oracle Restart musíte si ji nainstalovat do vlastního ORACLE_HOME. Je to samostatný balík na OTN. Pro linux 32b se jedná  o soubor Oracle Database 11g Release 2 Grid Infrastructure (11.2.0.1.0) for Linux x86 (linux_11gR2_grid.zip), který má necelý 1GB.

Soubor si stáhněte na server a rozbalte. Vytvoří se vám adresář grid.

[oracle@localhost download]$ cd grid/
[oracle@localhost grid]$ ls
doc  install  response  rpm  runcluvfy.sh  runInstaller  sshsetup  stage  welcome.html

Spusťte instalátor. Zvolte si volbu Standalone server.

[oracle@localhost grid]$ ./runInstaller
grid_1
grid_1 grid_1

Následně si zvolte jazyk.

grid_2
grid_2 grid_2

V dalším kroku zadáte jméno diskové skupiny a označíte disky, které mají ke skupině náležet.

grid_3
grid_3 grid_3

Zvolte si heslo, aby odpovídalo bezpečnostním pravidlům, která jsou standardní v databázi 11g.

grid_4
grid_4 grid_4


Můžete si libovolně přiřadit ASM skupiny konkrétním skupinám v operačním systému. Já jsem to ponechal vše k jedné.
grid_5
grid_5 grid_5


Dostal jsem informační hlášku, se kterou jsem souhlasil a můžete pokračovat dál.
grid_5_1
grid_5_1 grid_5_1


Nastavte ORACLE_BASE a ORACLE_HOME.
grid_6
grid_6 grid_6


Následuje umístění inventory.
grid_7
grid_7 grid_7


Instalátor si zkontroluje, zda máte nastavené veškeré parametry. Jsou-li někde parametry, které neodpovídají, změní se status na Failed. Já jsem musel ještě dodatečně doinstalovat balík pdksh. Nainstaloval jsem ho z druhé session a dal tlačítko Check again.

grid_8
grid_8 grid_8


[root@centos ContentsXML]# yum install pdksh
...
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package pdksh.i386 0:5.2.14-36.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved
================================================================================
Package         Arch           Version                    Repository      Size
================================================================================
Installing:
pdksh           i386           5.2.14-36.el5              base           198 k

Transaction Summary
================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 198 k
Is this ok [y/N]: y
Downloading Packages:
pdksh-5.2.14-36.el5.i386.rpm                             | 198 kB     00:00
...
Installed:
pdksh.i386 0:5.2.14-36.el5

Complete!


Zůstali zde již jen ty parametry, které se mohou zafixovat přímo z instalátoru. Stiskněte tlačítko Fix & Check again. Objeví se vám nové okno, ve kterém jste informováni jaký skript musíte spustit, aby se potřebné parametry změnily.
grid_9
grid_9 grid_9



Mám otevřenou session, kde jsem přihlášený jako root, takže spustím jen potřebný skript.

[root@centos ContentsXML]# /tmp/CVU_11.2.0.1.0_oracle/runfixup.sh
Response file being used is :/tmp/CVU_11.2.0.1.0_oracle/fixup.response
Enable file being used is :/tmp/CVU_11.2.0.1.0_oracle/fixup.enable
Log file location: /tmp/CVU_11.2.0.1.0_oracle/orarun.log
Setting Kernel Parameters...
kernel.sem = 250 32000 100 128
fs.file-max = 6553600
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),504(asm)


Vrátil jsem se zpět do instalátoru a zůstala zde jen informace o nedostatečné velikosti paměti swap a RAM. Jelikož jsem si databázi instalovat na notebooku ve vmware nemám k dispozici více paměti proto budu tuto hlásku ignorovat tlačítkem Ignore All a pokračuji v instalaci.
grid_10
grid_10 grid_10


Souhrnná obrazovka a můžete stisknout tlačítko Finish.
grid_11
grid_11 grid_11


Instalace neběží nijak dlouho.
grid_12
grid_12 grid_12


Na konci instalace je potřeba ještě zpustit dva skripty pod rootem.

[root@localhost download]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.



Kdyby jste měli nějaké problémy s instalaci, zde je docela dobrý link z metalinku.
How to Proceed from Failed 11gR2 Grid Infrastructure (CRS) Installation [ID 942166.1]

Já jsem to muset pomocí doporučení zafixovat.

[root@centos install]# ./roothas.pl -verbose -delete -force
2010-01-07 17:50:28: Checking for super user privileges
2010-01-07 17:50:28: User has super user privileges
2010-01-07 17:50:28: Parsing the host name
Using configuration parameter file: ./crsconfig_params
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Delete failed, or completed with errors.
Failure at scls_scr_getval with code 1
Internal Error Information:
Category: -2
Operation: opendir
Location: scrsearch1
Other: cant open scr home dir scls_scr_getval
System Dependent Information: 2

CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
/u01/app/oracle/product/11.2.0/grid/bin/acfsdriverstate: line 51: /lib/acfstoolsdriver.sh: No such file or directory
/u01/app/oracle/product/11.2.0/grid/bin/acfsdriverstate: line 51: exec: /lib/acfstoolsdriver.sh: cannot execute: No such file or directory
Successfully deconfigured Oracle Restart stack

Poté skript root.sh prošel bez problémů.

[root@centos install]# /u01/app/oracle/product/11.2.0/grid/root.sh
2010-01-07 17:52:50: Checking for super user privileges
2010-01-07 17:52:50: User has super user privileges
2010-01-07 17:52:50: Parsing the host name
Using configuration parameter file: /u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'oracle', privgrp 'oinstall'..
Operation successful.
CRS-4664: Node centos successfully pinned.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
ADVM/ACFS is not supported on centos-release-5-4.el5.centos.1
centos     2010/01/07 17:53:26     /u01/app/oracle/product/11.2.0/grid/cdata/centos/backup_20100107_175326.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
Updating inventory properties for clusterware
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 1498 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.



V tuto chvili jste nainstalovali Grig infrastructure. Dalším krokem je instalace ASM instance.

 

Anketa

Využívají vaše databáze pro ukládání souborů ASM? (automatic storage management)
 

Certifikát Oracle Certifikát Oracle Certifikát Oracle Certifikát Oracle Certifikát Oracle Certifikát Oracle

Partnerské internetové stránky:
www.oracledba.cz www.asktom.cz www.tomas-solar.cz