加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ORACLE11g安装手册(一)

发布时间:2020-12-12 16:06:02 所属栏目:百科 来源:网络整理
导读:操作系统 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/host

操作系统

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读