[Oracle DataBase Server 12.1 Installation on Oracle Linux 6.7]: Installing Mandatory Packages


The Oracle database requires that some components be installed in the system. Packages can be downloaded from a public repository (from the internet) or taken from the disk where the operating system distribution is located.

I must note that actually, the server should not have internet access! To install packages, you need to set up a local repository and get the necessary packages from it. Moreover, ideally, there should be no unnecessary packages on the server.


Option 1: Installing packages from Oracle Linux DVD (Not recommended):

# mkdir /mnt/cdrom
# mount -t iso9660 -o ro /dev/cdrom /mnt/cdrom


# vi /etc/yum.repos.d/oracleLinuxRepoDVD.repo


[OEL67_DVD]
name=Oracle Enterprise Linux DVD
baseurl=file:///mnt/cdrom/Server/
gpgcheck=0
enabled=1


Option 2: Installing packages from Oracle Linux repository on the internet:

This step should be performed if the file system does not have a file describing where Oracle Linux should get the necessary packages. If installing from start to finish according to this instruction, it does not need to be performed.

# vi /etc/yum.repos.d/oracleLinuxRepoINTERNET.repo


[OEL_INTERNET]
name=Oracle Enterprise Linux $releasever - $basearch
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1


# yum repolist


Updating packages

# yum update -y


Installing mandatory packages


Offtopic: (Recommended to skip! Just for information) You can run the following command and skip most of the steps for installing the necessary packages and properly setting up the environment for Oracle installation. # yum install -y oracle-validated By running this command, Oracle will install all necessary packages, create the required users, and make changes to configuration files. There is only one downside, it may not do everything exactly as you want. That is, the environment will be prepared "by default". Offtopic: END



The following packages must be installed: (http://docs.oracle.com/cd/E16655_01/install.121/e17718/toc.htm#BABGGEBA)

binutils-2.20.51.0.2-5.11.el6 (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6.i686
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (i686)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6.i686
ksh
libgcc-4.4.4-13.el6 (i686)
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6.i686
libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6.i686
libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6.i686
make-3.81-19.el6
sysstat-9.0.4-11.el6 (x86_64)



View packages in the repository with the following command:

# yum search all binutils


Install all necessary packages with one command:

# yum install -y \
binutils.x86_64 \
compat-libcap1.x86_64 \
compat-libstdc++-33.i686 \
compat-libstdc++-33.x86_64 \
gcc.x86_64 \
gcc-c++.x86_64 \
glibc.i686 \
glibc.x86_64 \
glibc-devel.i686 \
glibc-devel.x86_64 \
ksh.x86_64 \
libgcc.i686 \
libgcc.x86_64 \
libstdc++.i686 \
libstdc++.x86_64 \
libstdc++-devel.i686 \
libstdc++-devel.x86_64 \
libaio.i686 \
libaio.x86_64 \
libaio-devel.i686 \
libaio-devel.x86_64 \
make.x86_64 \
sysstat.x86_64


The following package is needed to start the graphical console

# yum install -y \
xdpyinfo


Additional packages that are not necessary for database installation:

# yum install -y \
vim \
wget \
xinetd \
screen \
ntp \
unzip


Installing rlwrap

rlwrap is a package that allows you to store command history in SQL*PLUS and RMAN in Linux (it must be specified as a separate line in the bash profile). By installing this package, you will be able to use the up and down arrow keys to view command history, proper backspace functionality, etc.

# yum install -y \
readline-devel.x86_64


If the site is unavailable, you can try the rlwrap installation option from github below, but it has not been tested yet !!!

# cd /tmp
# wget http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.37.tar.gz


If the above site does not work, the source code can be taken from here:

https://github.com/hanslub42/rlwrap


# tar zxvf rlwrap-0.37.tar.gz
# cd rlwrap-0.37
# ./configure
# make && make check && make install


Installing rlwrap from github (not tested!)


# yum install -y git
# cd /tmp
# git clone --depth=1 https://github.com/hanslub42/rlwrap

# cd rlwrap/


# yum install automake
# autoreconf --install
# automake  --add-missing
# ./configure
# make && make check && make install