RHEL6.4上ORACLE 10g的安装
一、概述
根据Oracle官方文档的建议,在机器内存小于1G的情况下,swap分区大小应该
设置为内存的2倍大,若内存大于2G则swap分区设置为内存大小一样。
为防止Oracle安装过程中出现乱码,建议使用英文作为系统语言,进行Oracle的
安装工作。
二、oracle安装前的准备
1.配置yum源
由于下面oracle软件包的安装时用的yum命令安装,在使用yum命令安装软件的时候,必须提前配置yum源,下面就其具体的安装方法进行详细的说明。 a.创建CDROM加载目录
# mkdir /media/rhel6 b.加载CDROM
放入安装光盘,加载光驱。 # mount /dev/cdrom /media/rhel6 c.备份rhel-source.repo文件
# cp /etc/yum.repos.d/rhel-source.repo /etc/yum.repos.d/bak d.编辑rhel-source.repo文件
# vi /etc/yum.repos.d/rhel-source.repo 向rhel-source.repo文件添加内容如下: [Server] name=Server
baseurl=file:///media/rhel6/Server
enabled=1 gpgcheck=0
[HighAvailability] name=HighAvailability
baseurl=file:///media/rhel6/HighAvailability enabled=1 gpgcheck=0
[LoadBalancer] name=LoadBalancer
baseurl=file:///media/rhel6/LoadBalancer enabled=1 gpgcheck=0
[ScalableFileSystem] name=ScalableFileSystem
baseurl=file:///media/rhel6/ScalableFileSystem enabled=1 gpgcheck=0
[ResilientStorage] name=ResilientStorage
baseurl=file:///media/rhel6/ResilientStorage enabled=1 gpgcheck=0
2.安装依赖的软件包
[oracle@lndb ~]# rpm -q gcc make binutils openmotif gcc-4.4.7-3.el6.x86_64 make-3.81-20.el6.x86_64
binutils-2.20.51.0.2-5.36.el6.x86_64 openmotif-2.3.3-5.el6_3.x86_64 --------------------------------------
[root@CombaHms Server]# rpm -q gcc make binutils openmotif setarch compat-db compat-gcc compat-gcc-c++ compat-libstdc++ compat-libstdc++-devel libXp gcc-4.4.7-3.el6.x86_64 make-3.81-20.el6.x86_64
binutils-2.20.51.0.2-5.36.el6.x86_64 openmotif-2.3.3-5.el6_3.x86_64 package setarch is not installed compat-db-4.6.21-15.el6.x86_64 package compat-gcc is not installed package compat-gcc-c++ is not installed package compat-libstdc++ is not installed package compat-libstdc++-devel is not installed libXp-1.0.0-15.1.el6.x86_64 libXp-1.0.0-15.1.el6.i686
[root@CombaHms Server]# yum install compat-libstdc* compat-gcc* libXp* libXt* libstdc++-devel* glibc-devel*
3.配置oracle安装环境
a.建oracle用户和组
[root@CombaHms Server]# /usr/sbin/groupadd oinstall [root@CombaHms Server]# /usr/sbin/groupadd dba
[root@CombaHms Server]# /usr/sbin/useradd -m -g oinstall -G dba oracle
[root@CombaHms Server]# passwd oracle Changing password for user oracle. New UNIX password:
BAD PASSWORD: it is too short Retype new UNIX password:
passwd: all authentication tokens updated successfully.
b.创建oracle目录,并给予权限
[root@CombaHms Server]# mkdir -p /export/home/oracle/product/10.2.0/db_1 [root@CombaHms Server]# mkdir -p /export/home/oracle/product/10.2.0/oradata [root@CombaHms Server]# mkdir -p /export/home/oracle/install [root@CombaHms Server]# chown -R oracle:oinstall /export/home/oracle [root@CombaHms Server]# chmod -R 775 /export/home/oracle
c.修改系统内核参数
[root@CombaHms Server]# vi /etc/sysctl.conf # For install oracle kernel.shmmni = 4096
kernel.sem = 250 32000 100 128 fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 262144 net.core.rmem_max = 262144 net.core.wmem_default = 262144 net.core.wmem_max = 262144
相关推荐: