您好,登錄后才能下訂單哦!
這篇文章主要介紹了rhel5.5如何安裝oracle11g asm,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。
在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”這篇文章對大家有幫助,同時也希望大家多多支持億速云,關注億速云行業資訊頻道,更多相關知識等著你來學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。