top of page
  • Admin

Quick installation of Oracle DBMS versions 11G and older in Linux (without installing the UEK kernel

You were given a server with a minimum set of packages and you need to quickly install the DBMS, for this:


The article does not describe the process of configuring repositories, it is assumed that either the default or organization repositories are used.


1. Download the preinstall package for the required version of the DBMS from the oracle repository

For example, we install on CentOS Linux release 7.6 DBMS 12.2, therefore download the package:

Installation directory /opt/oracle

1. Create directory for distributions:


mkdir -p /opt/oracle/distr

2. Copy the package and archive from the DBMS to the created directory:


# cd /opt/oracle/distr
# ls -la

Preinstall - configure server installing oracle

3. Create a folder to unpack the rpm file and unpack it


# mkdir ./rpm
# cd ./rpm/
# rpm2cpio ../oracle-database-server-12cR2-preinstall-1.0-4.el7.x86_64.rpm  | cpio -idmv

Preinstall - configure server installing oracle

4. We look at the package dependencies for their further installation


# cd ../
# rpm -qpR oracle-database-server-12cR2-preinstall-1.0-4.el7.x86_64.rpm  | egrep -v 'rpmlib|^/|=|uek' | awk '{ printf "%s \\ \n", $1 '}

Copy the output lines and paste into the yum prompt


# yum install \

Preinstall - configure server installing oracle

Preinstall - configure server installing oracle

5. Create oracle account, oinstall group and kernel configuration


# cd /opt/oracle/distr/rpm/etc/sysconfig/oracle-database-server-12cR2-preinstall/
# chmod +x ./oracle-database-server-12cR2-preinstall-verify
# ./oracle-database-server-12cR2-preinstall-verify


Preinstall - configure server installing oracle

6. Checking the set kernel parameters, the presence of the oracle user


# su - oracle
# exit
# cat /etc/sysctl.conf
# uname -a


Preinstall - configure server installing oracle

At the same time, the kernel does not change to UEK


Profile

Create a copy of the default profile

cp ~/.bash_profile ~/.ora_<version>


Edit the file by adding the following lines

vi .ora_<virsion>


PATH=$PATH:$HOME/bin


export PATH


# Oracle Settings

TMP=/tmp; export TMP

TMPDIR=$TMP; export TMPDIR


ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/12.1.0;

export ORACLE_HOME

ORACLE_SID=db1; export ORACLE_SID

TNS_ADMIN=/u01/app/oracle/product/12.1.0/network/admin; export TNS_ADMIN

PATH=/usr/sbin:$PATH; export PATH

PATH=$ORACLE_HOME/bin:$PATH; export PATH


LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH

CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH


if [ $USER = "oracle" ]; then

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

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi


ps: replace paths with correct ones

Unpack the archive from the DBMS to any directory


Run the installation from the command line with the command


./runInstaller -ignorePrereq -waitforcompletion -silent \

-responseFile ${ORACLE_HOME}/install/response/db_install.rsp \

oracle.install.option=INSTALL_DB_SWONLY \

ORACLE_HOSTNAME=localhost \

UNIX_GROUP_NAME=oinstall \

INVENTORY_LOCATION=/home/oracle/app/ \

SELECTED_LANGUAGES=en,en_GB \

ORACLE_HOME=${ORACLE_HOME} \

ORACLE_BASE=/home/oracle/app/ \

oracle.install.db.InstallEdition=EE \

oracle.install.db.OSDBA_GROUP=dba \

oracle.install.db.OSBACKUPDBA_GROUP=dba \

oracle.install.db.OSDGDBA_GROUP=dba \

oracle.install.db.OSKMDBA_GROUP=dba \

oracle.install.db.OSRACDBA_GROUP=dba \

SECURITY_UPDATES_VIA_MYORACLESUPPORT=false \

DECLINE_SECURITY_UPDATES=true


or in graphical mode

./runInstaller


91 views0 comments

Recent Posts

See All

Comments


bottom of page