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.