rhel5.5如何安装oracle11gasm
这篇文章主要介绍了rhel5.5如何安装oracle11g asm,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
创新互联建站专业为企业提供固始网站建设、固始做网站、固始网站设计、固始网站制作等企业网站建设、网页设计与制作、固始企业网站模板建站服务,10多年固始做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。
在64位rhel5.5上安装oracle11g,使用自动存储管理(asm)
#cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
IPADDR=192.168.11.100
NETMASK=255.255.255.0
#/etc/init.d/network restart
#vi /etc/hosts
192.168.11.100 nine.orcl.ma nine
#cat /etc/sysconfig/network
HOSTNAME=nine.orcl.ma
#hostname
nine.orcl.ma
#vi /etc/fstab
tmpfs /dev/shm tmpfs defaults,size=2g 0 0
#mount -o remount /dev/shm
需要安装以下package
binutils-2.17.50.0.6-6.el5 (x86_64)
compat-libstdc++-33-3.2.3-61(x86_64)
compat-libstdc++-33-3.2.3-61 (i386)
elfutils-libelf-0.125-3.el5 (x86_64)
elfutils-libelf-devel-0.125-3 (x86_64)
gcc-4.1.2-42.el5 (x86_64)
gcc-c++-4.1.2-42.el5 (x86_64)
glibc-2.5-24 (x86_64)
glibc-2.5-24 (i686)
glibc-devel-2.5-24 (x86_64)
glibc-devel-2.5-24 (i386)
glibc-headers-2.5-24 (x86_64)
ksh-20060214-1.7 (x86_64)
libaio-0.3.106-3.2 (x86_64)
libaio-0.3.106-3.2 (i386)
libaio-devel-0.3.106-3.2 (x86_64)
libaio-devel-0.3.106-3.2 (i386)
libgcc-4.1.2-42.el5 (i386)
libgcc-4.1.2-42.el5 (x86_64)
libstdc++-4.1.2-42.el5 (x86_64)
libstdc++-4.1.2-42.el5 (i386)
libstdc++-devel-4.1.2-42 (x86_64)
make-3.81-3.el5 (x86_64)
sysstat-7.0.2-1 (x86_64)
glibc-common-2.5-24 (x86_64)
elfutils-libelf-develstatic-0.125-3 (x86_64)
kernel-headers-2.6.18-92 (x86_64)
libgomp-4.1.2-42(x86_64)
unixODBC-2.2.12 (x86_64)
unixODBC-2.2.12 (i386)
unixODBC-devel-2.2.12 (x86_64)
unixODBC-devel-2.2.12 (i386)
添加oracle,grid用户
#groupadd oinstall
#groupadd dba
#groupadd oper
#groupadd asmadmin
#groupadd asmdba
#groupadd asmoper
#useradd -g oinstall -G asmadmin,asmdba,asmoper,dba grid
#useradd -g oinstall -G dba,asmdba,oper oracle
#passwd grid
#passwd oracle
#id oracle
#id grid
#id nobody
#vi /etc/sysctl.conf
kernel.shmmax = 1073741824
kernel.shmall = 2097152
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
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
#vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
创建安装目录
#mkdir -p /u01/app/11.2.0/grid
#mkdir -p /u01/app/grid
#mkdir -p /u01/app/oracle
#chown grid:oinstall /u01/app/11.2.0/grid
#chown grid:oinstall /u01/app/grid
#chown oracle:oinstall /u01/app/oracle
#chmod -R 775 /u01/
#chown -R grid:oinstall /u01
使用udev绑定磁盘
#for i in b c d e ;
do
echo"KERNEL==\"sd*\", BUS==\"scsi\",PROGRAM==\"/sbin/scsi_id -g -u -s %p\", RESULT==\"`/sbin/scsi_id-g -u -s /block/sd$i`\", NAME=\"sd$i\", OWNER=\"oracle\",GROUP=\"oinstall\", MODE=\"0660\"" >>/etc/udev/rules.d/91-oracle-asmdevices.rules
done
#start_udev
编辑.bash_profile文件
#vi /home/oracle/.bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export TEMP=/tmp
export TEPDIR=/tmp
export ORACLE_SID=nine
export PATH=$ORACLE_HOME/bin:$PATH
#vi /home/grid/.bash_profile
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export TEMP=/tmp
export TEPDIR=/tmp
export ORACLE_SID=+ASM
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:/sbin:/bin:/usr/sbin:/usr/bin
感谢你能够认真阅读完这篇文章,希望小编分享的“rhel5.5如何安装oracle11g asm”这篇文章对大家有帮助,同时也希望大家多多支持创新互联,关注创新互联行业资讯频道,更多相关知识等着你来学习!
新闻标题:rhel5.5如何安装oracle11gasm
标题路径:http://ybzwz.com/article/ihssip.html