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