码迷,mamicode.com
首页 > 数据库 > 详细

Oracle Linux 6.5安装Oracle 11gr2

时间:2016-10-21 23:59:55      阅读:511      评论:0      收藏:0      [点我收藏+]

标签:mit   ade   模块   sysctl   server   std   rtu   div   off   

终于开始安装ASM和RAC的行程了.

 

Linux下准备工作

 

vi /etc/selinux/config-------永久关闭selinux

SELINUX=disabled--------然后重启服务器

 

chkconfig iptables off 重启永久关闭防火墙   

 

安装包

mount /dev/cdrom /mnt 
cd /mnt/cdrom/Server/Packages 
rpm -Uvh binutils-2*x86_64*   
rpm -Uvh glibc-2*x86_64* nss-softokn-freebl-3*x86_64*  
rpm -Uvh glibc-2*i686* nss-softokn-freebl-3*i686*   
rpm -Uvh compat-libstdc++-33*x86_64*   
rpm -Uvh glibc-common-2*x86_64*   
rpm -Uvh glibc-devel-2*x86_64*   
rpm -Uvh glibc-devel-2*i686*   
rpm -Uvh glibc-headers-2*x86_64*  
rpm -Uvh elfutils-libelf-0*x86_64*   
rpm -Uvh elfutils-libelf-devel-0*x86_64* 
rpm -Uvh gcc-4*x86_64*   
rpm -Uvh gcc-c++-4*x86_64*   
rpm -Uvh ksh-*x86_64*   
rpm -Uvh libaio-0*x86_64*   
rpm -Uvh libaio-devel-0*x86_64*   
rpm -Uvh libaio-0*i686*   
rpm -Uvh libaio-devel-0*i686*   
rpm -Uvh libgcc-4*x86_64*   
rpm -Uvh libgcc-4*i686*   
rpm -Uvh libstdc++-4*x86_64*   
rpm -Uvh libstdc++-4*i686*   
rpm -Uvh libstdc++-devel-4*x86_64*   
rpm -Uvh make-3.81*x86_64*   
rpm -Uvh numactl-devel-2*x86_64*   
rpm -Uvh sysstat-9*x86_64*   
rpm -Uvh compat-libstdc++-33*i686*   
rpm -Uvh compat-libcap*

 

查询是否安装如下包

rpm -q binutils compat-libstdc++-33 compat-gcc-34-c++ elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel make sysstat numactl-devel unixODBC unixODBC-devel openmotif22 openmotif compat-db libXp 

输出如下:

 

binutils-2.20.51.0.2-5.36.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686

package compat-gcc-34-c++ is not installed


elfutils-libelf-0.152-1.el6.x86_64
elfutils-libelf-devel-0.152-1.el6.x86_64
gcc-4.4.7-4.el6.x86_64
gcc-c++-4.4.7-4.el6.x86_64
glibc-2.12-1.132.el6.x86_64
glibc-2.12-1.132.el6.i686
glibc-common-2.12-1.132.el6.x86_64
glibc-devel-2.12-1.132.el6.x86_64
glibc-devel-2.12-1.132.el6.i686
glibc-headers-2.12-1.132.el6.x86_64
kernel-headers-2.6.32-431.el6.x86_64
ksh-20120801-10.el6.x86_64
libaio-0.3.107-10.el6.x86_64
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6.x86_64
libaio-devel-0.3.107-10.el6.i686
libgcc-4.4.7-4.el6.x86_64
libgcc-4.4.7-4.el6.i686
libgomp-4.4.7-4.el6.x86_64
libstdc++-4.4.7-4.el6.x86_64
libstdc++-4.4.7-4.el6.i686
libstdc++-devel-4.4.7-4.el6.x86_64
make-3.81-20.el6.x86_64
sysstat-9.0.4-22.el6.x86_64
numactl-devel-2.0.7-8.el6.x86_64

package unixODBC is not installed
package unixODBC-devel is not installed
package openmotif22 is not installed

openmotif-2.3.3-6.1.el6_4.x86_64

package compat-db is not installed


libXp-1.0.0-15.1.el6.x86_64

 

继续安装包

# rpm -ivh compat-db-4.6.21-15.el6.x86_64.rpm compat-db42-4.2.52-15.el6.x86_64.rpm compat-db43-4.3.29-15.el6.x86_64.rpm   
# rpm -ivh compat-gcc-34-c++-3.4.6-19.el6.x86_64.rpm compat-gcc-34-3.4.6-19.el6.x86_64.rpm   
# rpm -ivh unixODBC-2.2.14-12.el6_3.x86_64.rpm unixODBC-devel-2.2.14-12.el6_3.x86_64.rpm   
# rpm -ivh openmotif-2.3.3-6.1.el6_4.x86_64.rpm openmotif22-2.2.3-19.el6.x86_64.rpm libXp-1.0.0-15.1.el6.x86_64.rpm

 

在每一个节点上添加安装Oracle Grid的用户、组和家目录,并设置权限。

 /usr/sbin/groupadd -g 1000 oinstall

 /usr/sbin/groupadd -g 1020 asmadmin

 /usr/sbin/groupadd -g 1021 asmdba

 /usr/sbin/groupadd -g 1022 asmoper

 /usr/sbin/groupadd -g 1031 dba

/usr/sbin/groupadd -g 1032 oper

 useradd -u 1100 -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid

 useradd -u 1101 -g oinstall -G dba,asmdba,oper oracle

 mkdir -p /u01/app/11.2.0/grid

 mkdir -p /u01/app/grid

 chown -R grid:oinstall /u01

 mkdir /u01/app/oracle

chown oracle:oinstall /u01/app/oracle

 chmod -R 775 /u01/

 

 

修改文件参数

# vi /etc/sysctl.conf
fs.aio-max-nr = 1048576 
fs.file-max = 6815744   
kernel.shmall = 2097152   
kernel.shmmax = 2147483648   
kernel.shmmni = 4096   
kernel.sem = 250 32000 100 128   
net.ipv4.ip_local_port_range = 9000 65500   
net.core.rmem_default = 4194304   
net.core.rmem_max = 4194304   
net.core.wmem_default = 262144   
net.core.wmem_max = 1048586

 

sysctl -p

 

文件描述符

cat >> /etc/security/limits.conf << EOF 
oracle  soft  nproc  2047   
oracle  hard  nproc  16384   
oracle  soft  nofile  1024   
oracle  hard  nofile  65536   
oracle  soft  stack  10240   

 

修改登录模块

cat >> /etc/pam.d/login << EOF 
session required /lib64/security/pam_limits.so   
EOF

 

 cd /mnt/install_DVD

 cd Packages

 ll | grep preinstall

-rw-r--r-- 1 root root 15524 Jan 16 2013 oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm

 rpm -ivh oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm

 

在virtualbox再虚拟一个eth1.满足服务器要求

  • 每个服务器节点至少需要2块网卡,一块对外网络接口,一块私有网络接口(心跳)。

Oracle Linux 6.5安装Oracle 11gr2

标签:mit   ade   模块   sysctl   server   std   rtu   div   off   

原文地址:http://www.cnblogs.com/ericnie/p/5986388.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!