--root用户执行
vi /etc/sysctl.conf
#Install oracle setting
fs.aio-max-nr = 1048576
fs.file-max = 6815744
#kernel.shmall = 2097152
#kernel.shmmax = 4294967295
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
--完成后,运行以下命令激活更改:
/sbin/sysctl -p
vi /etc/security/limits.conf
#Install oracle setting
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
--对oracle用户创建asm磁盘
groupadd -g 1000 oinstall
groupadd -g 1300 dba
groupadd -g 1301 oper
--修改oracle用数组属性
usermod -u 1101 -g oinstall -G dba,oper -c "Oracle Software Owner" oracle
fdisk /dev/sdb
--输入 n p 1 默认值 默认值 w
--查询磁盘分区
/sbin/fdisk -l
--安装系统包:oracleasm-support oracleasm-2.6.18-164.el5oracleasmlib
rpm -ivh *.rpm
/etc/init.d/oracleasm configure
--输入
oracle -> oinstall -> y -> y
/etc/init.d/oracleasm createdisk data01 /dev/sdb1
/etc/init.d/oracleasm createdisk data02 /dev/sdc1
/etc/init.d/oracleasm createdisk data03 /dev/sdd1
/etc/init.d/oracleasm createdisk data04 /dev/sde1
/etc/init.d/oracleasm createdisk fra01 /dev/sdf1
/etc/init.d/oracleasm createdisk fra02 /dev/sdg1
/etc/init.d/oracleasm createdisk fra03 /dev/sdh1
/etc/init.d/oracleasm createdisk fra04 /dev/sdi1
--查询创建的asm磁盘
oracleasm listdisks