操作系统
Red Hat Enterprise Linux Server release 6.5 (Santiago)
依赖包
gcc make binutils openmotif setarch compat-db compat-gcc-34 compat-gcc-34-c++ compat-libstdc++-33 compat-libstdc++-296 libaio
安装准备
Ø检查/etc/hosts文件
vi /etc/hosts
127.0.0.1 dbserver localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
请确认本机器的机器名已在hosts中配置,否则在安装阶段会报[INS-20802] Oracle Net Configuration Assistant Failed错误。
Ø挂载本地安装源
cd /etc/yum.repos.d
cp rhel-source.repo rhel-source.repo~
mkdir /mnt/os
mount /dev/cdrom /mnt/os
vi rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=file:///mnt/os
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
yum clean all
yum makecache
Ø安装依赖包
yum install gcc make binutils openmotif setarch compat-db compat-gcc-34 compat-gcc-34-c++ compat-libstdc++-33 compat-libstdc++-296
Ø关闭selinux
setenforce 0
Ø系统参数设置
以下系统参数仅限于生产环境配置,若在虚拟机或者测试环境安装可忽略本步设置
vi /etc/security/limits.conf
增加如下的配置
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
vi /etc/sysctl.conf
调整参数值如下所示
kernel.sem = 256 32000 100 128
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
fs.file-max = 65536
Ø创建oracle用户及组
groupadd dba
groupadd oinstall
useradd -g oinstall -G dba oracle
Ø安装目录规划
/opt/oracle/database
chmod u+x runInstaller
chmod u+x install/*
chmod u+x install/.oui
mkdir -p /opt/oracle/app/oracle/oradata
Ø设置bash_profile文件
vi /home/oracle/.bash_profile
ORACLE_HOME=/opt/oracle/product
export ORACLE_HOME
ORACLE_SID=lcfa
export ORACLE_SID
PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
export PATH
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
export LANG="en_US.UTF-8"
Ø开始安装
export DISPLAY=10.0.2.2:0.0
./runInstaller
原文链接:https://www.f2er.com/oracle/212996.html