Install Oracle database 11g on CentOS6.5

本文提供了一套详细的步骤指南,用于在指定系统上安装OracleDatabase11gR2,包括预安装软件、环境配置以及数据库安装过程。

Preface

Oracle Database 11g ---> g represents Grid

Oracle Database 12c ---> c represents Cloud

If you couldn't surf the internet in vmware, please don’t hesitate to tell me.

By the way, Followings is to be done need root privileges. 

 I recommend that you would update your operating system(# yum update)before doing these

Install the prerequisite packages: 

# yum install  binutils   \

compat-libstdc++* \

elfutils-libelf* \

elfutils-libelf-devel* \

elfutils-libelf-devel-static* \

gcc \

gcc-c++* \

glibc* \

glibc-common* \

glibc-devel* \

glibc-headers* \

kernel-headers \

pdksh \

libaio \

libaio-devel \

libgcc* \

libgomp* \

libstdc++* \

libstdc++-devel* \

make \

numactl-devel* \

sysstat* \

unixODBC* \

unixODBC-devel* 


Install the Oracle preinstall

# cd /etc/yum.repos.d

# wget https://public-yum.oracle.com/public-yum-ol6.repo

Flag 1:

# yum install oracle-rdbms-server-11gR2-preinstall

if error :

   # wget https://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

   go to Flag 1.

Make directories as you like,  for example,

# mkdir -p /opt/app/oracle

# chown -R oracle:oinstall /opt/app/oracle

# passwd oracle

Modify the  /home/oracle/.bash_profile file: 

# su - oracle

# vim ~/.bash_profile

# Configuring the oracle database 11gR2’s environment (This is a comment)

umask 022

export TMPDIR=/tmp

export ORACLE_BASE=/opt/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11gR2/dbhome_1

export LD_LIBRARY=$ORACLE_HOME/lib:/lib:/lib64:/usr/lib:/usr/lib64

PATH=$PATH:$HOME/bin

export PATH=$ORACLE_HOME/bin:$PATH

export ORACLE_SID=orcl

Modify the  /etc/profile file

# vim /etc/profile

# Configuring Oracle Database(This is a comment)

if [ $USER = "oracle" ]; then

       if [ $SHELL = "/bin/ksh" ]; then

                ulimit -p 16384

                ulimit -n 65536

       else

                  ulimit -u 16384 -n 65536

       fi

fi

Install the Oracle Database 

unzip the oracle installation packages, then 

# cd database 

# ./runInstaller

 Just Waiting to be completed.


转载于:https://my.oschina.net/swuly302/blog/184622

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值