Contens 5.8 安装 oracle grid infrastruture(使用asmlib制作asm disk)

Contens 5.8 安装 oracle grid infrastruture(使用asmlib制作asm disk)

 

软件支持包

http://docs.oracle.com/cd/E11882_01/install.112/e24321/pre_install.htm#i1011296

binutils-2.17.50.0.6

compat-libstdc++-33-3.2.3

elfutils-libelf-0.125

elfutils-libelf-devel-0.125

gcc-4.1.2

gcc-c++-4.1.2

glibc-2.5-24

glibc-common-2.5

glibc-devel-2.5

glibc-headers-2.5

ksh-20060214

libaio-0.3.106

libaio-devel-0.3.106

libgcc-4.1.2

libstdc++-4.1.2

libstdc++-devel 4.1.2

make-3.81

sysstat-7.0.2

 

执行安装

yum install binutils compat-libstdc++ elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibcglibc-common glibc-devel glibc-headers ksh-20060214 libaio libaio-devel libgcc libstdc++- libstdc++-devel make-3.81 sysstat

 

内存要求

RAM>=1.5G  oracle grid

RAM>=2.5G  oracle grid + oracle database

RAM>=4G   oracle grid + oracle rac

 

硬盘要求

至少5.5G磁盘空间

至少1G /tmp 磁盘空间

如果/tmp不足1G,你可以设置grid环境变量 /tmpdir

sudo mkdir /u01/app/tmp

sudo chmod a+wr /u01/app/tmp

export TMP=/u01/app/tmp

export TMPDIR=/u01/app/tmp

 

建立组、用户、修改密码、用户资源限制、内核参数、用户环境变量

建立组

/usr/sbin/groupadd oinstall

/usr/sbin/groupadd –g 502 dba

/usr/sbin/groupadd –g 503 oper

/usr/sbin/groupadd –g 504 asmadmin

/usr/sbin/groupadd –g 505 asmoper

/usr/sbin/groupadd –g 506 asmdba

建立用户

/usr/sbin/useradd –u 8001 –g oinstall –G asmadmin,asmdba,asmoper,dba grid

修改密码

passwd grid

用户资源限制

vi /etc/security/limits.conf

grid              soft    nproc   2047
grid              hard    nproc   16384
grid              soft    nofile  1024
grid              hard    nofile  65536
grid              soft    stack   10240

内核参数

vi /etc/sysctl.conf

fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 524288
kernel.shmmax = 1073741824
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576

sysctl –p 立即生效

建立目录

mkdir –p /u01/app/grid

mkdir –p /u01/app/oraInventory

mkdir –p /u01/app/11.2.0

chown –R grid:oinstall /u01/app/grid

chown –R grid:oinstall /u01/app/oraInventory

chown –R grid:oinstall /u01/app/11.2.0

chmod 775 /u01/app/grid

chmod 775 /u01/app/oraInventory

chmod 775 /u01/app/11.2.0

grid用户环境变量

vi .bash_profile

export ORACLE_BASE=/u01/app/grid

export ORACLE_HOME=/u01/app/11.2.0

export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:

export ORACLE_SID=+ASM

umask 022

 

ASM DISK

查看内核版本

[root@doudou-32bit grid]# uname -r

2.6.18-348.3.1.el5

下载asmlib版本

http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html

oracleasm-2.6.18-348.3.1.el5-2.0.5-1.el5.i686.rpm

oracleasm-2.6.18-348.3.1.el5debug-2.0.5-1.el5.i686.rpm

oracleasm-2.6.18-348.3.1.el5PAE-2.0.5-1.el5.i686.rpm

oracleasm-2.6.18-348.3.1.el5xen-2.0.5-1.el5.i686.rpm

oracleasmlib-2.0.4-1.el5.i386.rpm

oracleasm-support-2.1.8-1.el5.i386.rpm

 

配置ASM磁盘管理用户

[root@doudou-32bit ~]# /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 []: grid

Default group to own the driver interface []: asmadmin    

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  ]

 

格式化分区

fdisk /dev/sda

n

p

1

回车

回车

w

 

[root@doudou-32bit ~]# /etc/init.d/oracleasm createdisk DISK1 /dev/sda1

Marking disk "DISK1" as an ASM disk: [  OK  ]

其余省略……..

[root@doudou-32bit grid]# /etc/init.d/oracleasm listdisks

DISK1

DISK2

DISK3

DISK4

DISK5

DISK6

DISK7

DISK8

 

export DISPLAY=192.168.1.1:0.0 (xmanger 图形安装)

[grid@doudou-32bit grid]$ ./runInstaller

。。。。。图形安装过程省略

 

Oracle grid infrastructrue卸载

./deinstall

你可能感兴趣的:(Contens 5.8 安装 oracle grid infrastruture(使用asmlib制作asm disk))