Dnes je: 20. května 2012
| Příprava a instalace ASM |
Instalace ASMLibPro instalaci ASM je potřeba doinstalovat ovladače, které můžete stáhnout ze stránek Oracle.Jedná se o 3 rpm balíky. Pro mou verzi OS to jsou tyto. - Support files (oracleasm-support-2.1.3-1.el5.i386.rpm) - Userspace library (oracleasmlib-2.0.4-1.el5.i386.rpm) - Kernel driver (oracleasm-2.6.18-164.el5-2.0.5-1.el5.i686.rpm) Dejte si pozor ať stáhnete a naistalujete správné balíky podle vašeho jádra systému. Verzi jádra si můžete vypsat pomocí příkazu uname. [root@centos53 tmp]# uname -r 2.6.18-164.el5 [root@centos53 tmp]# rpm -Uvh oracleasm-support-2.1.3-1.el5.i386.rpm oracleasm-2.6.18-164.el5-2.0.5-1.el5.i686.rpm oracleasmlib-2.0.4-1.el5.i386.rpm Preparing... ############################# [100%] 1:oracleasm-support ############################# [ 33%] 2:oracleasm-2.6.18-164.el ############################# [ 67%] 3:oracleasmlib ############################# [100%] [root@centos53 tmp]# /etc/init.d/oracleasm configure Configuring the Oracle ASM library driver. This will configure the on-boot properties of the Oracle ASM library driver. The following questions will determine whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets ('[]'). Hitting <ENTER> without typing an answer will keep that current value. Ctrl-C will abort. Default user to own the driver interface []: oracle Default group to own the driver interface []: oinstall Start Oracle ASM library driver on boot (y/n) [n]: y Scan for Oracle ASM disks on boot (y/n) [y]: y Writing Oracle ASM library driver configuration: done Initializing the Oracle ASMLib driver: [ OK ] Scanning the system for Oracle ASMLib disks: [ OK ] [root@centos53 tmp]# Knihovny máme již doinstalované a přistoupíme k vlastní tvorbě ASM disků. K tomu slouží program oracleasm. [root@centos53 tmp]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1 Marking disk "VOL1" as an ASM disk: [ OK ] [root@centos53 tmp]# /etc/init.d/oracleasm createdisk VOL2 /dev/sdb2 Marking disk "VOL2" as an ASM disk: [ OK ] [root@centos53 tmp]# /etc/init.d/oracleasm createdisk VOL3 /dev/sdb3 Marking disk "VOL3" as an ASM disk: [ OK ] [root@centos53 tmp]# /etc/init.d/oracleasm listdisks VOL1 VOL2 VOL3 Podle dokumentace nastavíme ještě parametry jádra, abychom splnili požadavky pro instalaci Oracle. V dokumentaci sekce „Configuring Kernel Parameters“. [root@centos53 ~]# vi /etc/sysctl.conf # Oracle 11g kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 262144 [root@centos53 ~]# vi /etc/security/limits.conf #Oracle 11g oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 [root@centos53 ~]# vi /etc/pam.d/login #Oracle 11g session required /lib/security/pam_limits.so [root@centos53 /]# cat /etc/redhat-release CentOS release 5.3 (Final)
|
Partnerské internetové stránky:
www.oracledba.cz www.asktom.cz www.tomas-solar.cz