Print Friendly, PDF & Email

 
REQUEST

I want to ensure that the Oracle database prerequisites packages are installed.

 
SOLUTION

For Oracle Enterprise Linux (OEL) there are default packages that simplify an Oracle database installation, eg oracle-rdbms-server-12cR1-preinstall or oracle-rdbms-server-11gR2-preinstall. They are used to install all prerequisite packages and to set kernel parameters up.
Unlike OEL, in RHEL and CentOS there are no such packages and you have to check everything manually.

The dbs_prepkgs.sh script helps to install all prerequisite packages for an Oracle database. It produces a list of installed packages and generates yum command for missing ones. The script doesn’t modify any kernel parameters as they can be set up during a database installation by the fixup script.

NOTE: To run downloaded script you should convert it to linux format by

[root@dbpilot.net .scripts]# chmod 700 dbs_prepkgs.sh
[root@dbpilot.net .scripts]# dos2unix dbs_prepkgs.sh
dos2unix: converting file dbs_prepkgs.sh to Unix format ...
#!/bin/bash
##################################################################################
## $Header 13:32 31.01.2018
## Victor Khalturin
## dbpilot.net
##
## dbs_prepkgs.sh - Prerequisites Packages 
##
## The script checks if required database packages are installed. 
## It supports several Oracle databases and Red Hat OS releases.
## The script does not check values of the kernel parameters as 
## it can be set/fixed during a database installation by the fixup script.
##
## Reference:
## Master Note of Linux OS Requirements for Database Server (Doc ID 851598.1)
##################################################################################

DO_HELP () {
echo
echo " ${0} dbr= os="
echo 
echo " dbr - Database release. Supported values: 10gR1 10gR2 11gR1 11gR2 12cR1 12cR2"
echo " os  - Operating system. Supported values: rhel4 rhel5 rhel6 rhel7"
echo 
exit
}

DO_ERROR () {
echo
case "${1}" in
   UNKNOWN )         echo " Unknown parameter [${2}]" ;;
   NOT_SUPPORTED )   echo " Not supported [dbr=${DATABASE_RELEASE} os=${OPERATING_SYSTEM}] [$(uname -i)]" ;;
esac

DO_HELP
}

## *******************************************************
## ** Get script parameters
## *******************************************************

SCRIPT_ARGUMENTS=("$@")

for argument in "${SCRIPT_ARGUMENTS[@]}";
do
   case $(echo "${argument}" | tr '[:lower:]' '[:upper:]') in 

      DBR=* )   DATABASE_RELEASE=$(echo ${argument} | sed 's/[a-zA-Z]*=//g') ;;
      OS=*  )   OPERATING_SYSTEM=$(echo ${argument} | sed 's/[a-zA-Z]*=//g') ;;
      *     )   DO_ERROR UNKNOWN "${argument}" ;;
   esac
done

## Do not proceed if one of the parameter is empty 
if [[ -z "${DATABASE_RELEASE}" || -z "${OPERATING_SYSTEM}" ]];
then
   DO_HELP
fi

## *******************************************************
## ** Red Hat 4 x86
## *******************************************************

10GR1_RHEL4_X86 () {

DOC_ID="Requirements for Installing Oracle 10.1.0.x RDBMS on RHEL 4 x86 platform (Doc ID 392940.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. Required minimum RAM on RHEL 4 x86 is 512MiB
 b. Swap disk space proportional to the system's physial memory as follows:
    1GiB or Equal to the size of RAM if RAM is between 512MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 8192MiB
    0.75 times the size of RAM if RAM is more than 8192MiB
 c. Kernel 2.6.9-5.EL (minimum)\n"

PACKAGES_ARRAY=("glibc-kernheaders-2.4-9.1.87 glibc-kernheaders"
"glibc-headers-2.3.4-2 glibc-headers"
"glibc-devel-2.3.4-2 glibc-devel"
"libstdc++-devel-3.4.3-9.EL4 libstdc++-devel"
"gcc-3.4.3-9.EL4 gcc"
"gcc-c++-3.4.3-9.EL4 gcc-c++"
"sysstat-5.0.5-1 sysstat"
"openmotif21-2.1.30-11.RHEL4.2 openmotif21"
"libaio-0.3.102-1 libaio"
"libaio-devel-0.3.102-1 libaio-devel")

}

10GR2_RHEL4_X86 () {

DOC_ID="Requirements for Installing Oracle 10gR2 RDBMS on RHEL 4 x86 platform (Doc ID 343431.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. Required minimum RAM on RHEL 4 x86 is 1024MiB
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 8192MiB
    0.75 times the size of RAM if RAM is more than 8192MiB
 c. Kernel 2.6.9-5.EL or higher\n"

PACKAGES_ARRAY=("binutils-2.15.92.0.2-18 binutils"
"compat-libstdc++-33.2.3-47.3 compat-libstdc++-33"
"elfutils-libelf-0.97-5 elfutils-libelf"
"elfutils-libelf-devel-0.97-5 elfutils-libelf-devel"
"gcc-3.4.5-2 gcc"
"gcc-c++-3.4.5-2 gcc-c++"
"glibc-2.3.4-2.19 glibc"
"glibc-common-2.3.4-2.19 glibc-common"
"glibc-devel-2.3.4-2.19 glibc-devel"
"glibc-headers-2.3.4-2.19 glibc-headers"
"libaio-devel-0.3.105-2 libaio-devel"
"libaio-0.3.105-2 libaio"
"libgcc-3.4.5 libgcc"
"libstdc++-3.4.5-2 libstdc++"
"libstdc++-devel-3.4.5-2 libstdc++-devel"
"make-3.80-5 make"
"sysstat-5.0.5 sysstat"
"unixODBC-2.2.11 unixODBC"
"unixODBC-devel-2.2.11 unixODBC-devel"
"compat-db-4.1.25-9 compat-db"
"compat-libstdc++-296-2.96-132.7.2 compat-libstdc++-296"
"control-center-2.8.0-12 control-center"
"gnome-libs-1.4.1.2.90-44.1 gnome-libs"
"pdksh-5.2.14-30 pdksh"
"xorg-x11-deprecated-libs-6.8.1-23.EL xorg-x11-deprecated-libs"
"openmotif21-2.1.30-11.RHEL4.2 openmotif21"
"xorg-x11 xorg-x11"
"xorg-x11-devel xorg-x11-devel")

}

11GR1_RHEL4_X86 () {

DOC_ID="Requirements for Installing Oracle 11gR1 32-bit on RHEL 4 (Doc ID 430653.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. Required minimum RAM on RHEL 4 x86 is 1024MiB
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 512MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 8192MiB
    0.75 times the size of RAM if RAM is more than 8192MiB
 c. Kernel 2.6.9-34 or higher\n"

PACKAGES_ARRAY=("elfutils-libelf-devel-0.97-5 elfutils-libelf-devel"
"glibc-devel-2.3.4-2.19 glibc-devel"
"glibc-kernheaders-2.4-9.1.98.EL glibc-kernheaders"
"glibc-headers-2.3.4-2.19 glibc-headers"
"gcc-3.4.5-2 gcc"
"libstdc++-devel-3.4.5-2 libstdc++-devel"
"gcc-c++-3.4.5-2 gcc-c++"
"libaio-devel-0.3.105-2 libaio-devel"
"sysstat-5.0.5 sysstat"
"unixODBC-devel-2.2.11 unixODBC-devel")

}

11GR2_RHEL4_X86 () {

DOC_ID="Requirements for Installing Oracle 11gR2 RDBMS on RHEL (and OEL) 4 x86 (Doc ID 880211.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. Required minimum RAM on RHEL 4 x86 is 1024MiB
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 512MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 16GiB
    16GiB if RAM is greater than 16GiB
 c. Kernel 2.6.9-78 or newer\n"

PACKAGES_ARRAY=("binutils-2.15.92.0.2-25 binutils "
"compat-libstdc++-33-3.2.3-47.3 compat-libstdc++-33"
"elfutils-libelf-0.97.1-5 elfutils-libelf"
"glibc-2.3.4-2.41 glibc"
"glibc-common-2.3.4-2.41 glibc-common"
"libaio-0.3.105-2 libaio"
"libgcc-3.4.6-10 libgcc"
"libstdc++-3.4.6-10 libstdc++"
"make-3.80-7.EL4 make"
"pdksh-5.2.14-30.6 pdksh"
"unixODBC-2.2.11-1.RHEL4.1 unixODBC"
"elfutils-libelf-devel-0.97.1-5.i386 elfutils-libelf-devel i386"
"glibc-headers-2.3.4-2.41.i386 glibc-headers i386"
"glibc-kernheaders-2.4-9.1.103.EL.i386 glibc-kernheaders i386"
"glibc-devel-2.3.4-2.41.i386 glibc-devel i386"
"gcc-3.4.6-10.i386 gcc i386"
"libstdc++-devel-3.4.6-10.i386 libstdc++-devel i386"
"gcc-c++-3.4.6-10.i386 gcc-c++ i386"
"libaio-devel-0.3.105-2.i386 libaio-devel i386"
"sysstat-5.0.5-19.el4.i386 sysstat i386"
"unixODBC-devel-2.2.11-1.RHEL4.1.i386 unixODBC-devel i386")

}

## *******************************************************
## ** Red Hat 4 x86-64
## *******************************************************

10GR1_RHEL4_X86_64 () {

DOC_ID="Requirements for Installing Oracle 10g (10.1.0.x) RDBMS on RHEL 4 on AMD64/EM64T (Linux x86-64) (Doc ID 390900.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. Required minimum RAM on RHEL 4 x86-64 is 512MiB
 b. Swap disk space proportional to the system's physial memory as follows:
    2 times the size of RAM if RAM is between 512MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 8192MiB
    0.75 times the size of RAM if RAM is more than 8192MiB
 c. Kernel 2.6.9-11.EL (minimum)\n"

PACKAGES_ARRAY=("glibc-kernheaders-2.4-9.1.87 glibc-kernheaders"
"glibc-headers-2.3.4-2.9 glibc-headers"
"glibc-devel-2.3.4-2.9 glibc-devel"
"glibc-devel-2.3.4-2.9.i386 glibc-devel i386"
"libstdc++-devel-3.4.3-22.1 libstdc++-devel"
"gcc-3.4.3-22.1 gcc"
"gcc-c++-3.4.3-22.1 gcc-c++"
"sysstat-5.0.5-1 sysstat"
"glibc-devel-2.3.4-2.9.i386 glibc-devel i386")

}

10GR2_RHEL4_X86_64 () {

DOC_ID="Requirements for Installing Oracle 10gR2 RDBMS on RHEL 4 on AMD64/EM64T (Doc ID 339510.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. Required minimum RAM on RHEL 4 x86-64 is 1GiB
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 8192MiB
    0.75 times the size of RAM if RAM is more than 8192MiB
 c. Kernel 2.6.9-11.EL or newer\n"

PACKAGES_ARRAY=("binutils-2.15.92.0.2-13.0.0.0.2.x86_64 binutils"
"libaio-0.3.103-3 libaio"
"libaio-0.3.103-3.i386 libaio i386"
"compat-db-4.1.25-9 compat-db"
"compat-libstdc++-33-3.2.3-47.3 compat-libstdc++-33"
"control-center-2.8.0-12 control-center"
"gcc-3.4.3-22.1 gcc"
"gcc-c++-3.4.3-22.1 gcc-c++"
"glibc-2.3.4-2 glibc"
"glibc-common-2.3.4-2 glibc-common"
"glibc-kernheaders-2.4-9.1.87 glibc-kernheaders"
"glibc-headers-2.3.4-2.9 glibc-headers"
"glibc-devel-2.3.4-2.9.i386 glibc-devel i386"
"gnome-libs-1.4.1.2.90-44.1 gnome-libs"
"libstdc++-3.4.3-22.1 libstdc++"
"libstdc++-devel-3.4.3-22.1 libstdc++-devel"
"make-3.80-5 make"
"pdksh-5.2.14-30 pdksh"
"sysstat-5.0.5-1 sysstat"
"xscreensaver-4.18-5.rhel4.2 xscreensaver")

}

11GR1_RHEL4_X86_64 () {

DOC_ID="Requirements for Installing Oracle 11gR1 RDBMS on RHEL 4 on AMD64/EM64T (Doc ID 437123.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. Required minimum RAM on RHEL 4 x86-64 is 1GiB
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 8192MiB
    0.75 times the size of RAM if RAM is more than 8192MiB
 c. Kernel 2.6.9-34 or greater\n"

PACKAGES_ARRAY=("compat-libstdc++-33-3.2.3 compat-libstdc++-33"
"elfutils-libelf-devel-0.97-5 elfutils-libelf-devel"
"glibc-devel-2.3.4-2.19 glibc-devel"
"glibc-devel-2.3.4-2.19.i386 glibc-devel i386"
"glibc-kernheaders-2.4-9.1.98.EL glibc-kernheaders"
"glibc-headers-2.3.4-2.19 glibc-headers"
"libstdc++-devel-3.4.5-2 libstdc++-devel"
"gcc-3.4.5-2 gcc"
"gcc-c++-3.4.5-2 gcc-c++"
"libaio-0.3.105-2 libaio"
"libaio-0.3.105-2.i386 libaio i386"
"libaio-devel-0.3.105-2 libaio-devel"
"sysstat-5.0.5-7.rhel4 sysstat")

}

11GR2_RHEL4_X86_64 () {

DOC_ID="Requirements for Installing Oracle 11gR2 RDBMS on RHEL (and OEL) 4 on AMD64/EM64T (Doc ID 880942.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. Required minimum RAM on RHEL 4 x86-64 is 1GiB
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    1.0 times the size of RAM if RAM is between 2049MiB and 16GiB
    16GiB if RAM is more than 16GiB
 c. Kernel 2.6.9-78.EL or newer\n"

PACKAGES_ARRAY=("binutils-2.15.92.0.2-25 binutils"
"compat-libstdc++-33-3.2.3-47.3 compat-libstdc++-33"
"compat-libstdc++-33-3.2.3-47.3.i386 compat-libstdc++-33 i386"
"elfutils-libelf-0.97.1-5 elfutils-libelf"
"expat-1.95.7-4 expat"
"glibc-2.3.4-2.41 glibc"
"glibc-2.3.4-2.41.i686 glibc"
"glibc-common-2.3.4-2.41 glibc-common"
"libaio-0.3.105-2.i386 libaio i386"
"libgcc-3.4.6-10 libgcc"
"libgcc-3.4.6-10.i386 libgcc i386"
"libstdc++-3.4.6-10 libstdc++"
"libstdc++-3.4.6-10.i386 libstdc++ i386"
"make-3.80-7.EL4 make"
"pdksh-5.2.14-30.6 pdksh"
"unixODBC-2.2.11-1.RHEL4.1 unixODBC"
"unixODBC-2.2.11-1.RHEL4.1.i386 unixODBC i386"
"elfutils-libelf-devel-0.97.1-5 elfutils-libelf-devel"
"glibc-headers-2.3.4-2.41 glibc-headers"
"glibc-kernheaders-2.4-9.1.103.EL glibc-kernheaders"
"glibc-devel-2.3.4-2.41 glibc-devel"
"gcc-3.4.6-10 gcc"
"libaio-0.3.105-2 libaio"
"libaio-devel-0.3.105-2 libaio-devel"
"libaio-devel-0.3.105-2.i386 libaio-devel i386"
"libstdc++-devel-3.4.6-10 libstdc++-devel"
"gcc-c++-3.4.6-10 gcc-c++"
"sysstat-5.0.5-19.el4 sysstat"
"unixODBC-devel-2.2.11-1.RHEL4.1 unixODBC-devel"
"unixODBC-devel-2.2.11-1.RHEL4.1.i386 unixODBC-devel i386"
"numactl-0.6.4 numactl")

}

## *******************************************************
## ** Red Hat 5 x86
## *******************************************************

10GR2_RHEL5_X86 () {

DOC_ID="Requirements For Installing Oracle 10gR2 On RHEL/OL 5 (x86) (Doc ID 419646.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. Required minimum RAM on RHEL 5 x86 is 1GiB
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 8192MiB
    0.75 times the size of RAM if RAM is more than 8192MiB
 c. Kernel 2.6.18-8\n"

PACKAGES_ARRAY=("binutils-2.17.50.0.6-2.el5 binutils"
"compat-libstdc++-33-3.2.3-61 compat-libstdc++-33"
"elfutils-libelf-0.125-3.el5 elfutils-libelf"
"elfutils-libelf-devel-0.125 elfutils-libelf-devel"
"gcc-4.1.1-52 gcc"
"gcc-c++-4.1.1-52 gcc-c++"
"glibc-2.5-12 glibc"
"glibc-common-2.5-12 glibc-common"
"glibc-devel-2.5-12 glibc-devel"
"glibc-headers-2.5-12 glibc-headers"
"libaio-0.3.106 libaio"
"libaio-devel-0.3.106 libaio-devel"
"libgcc-4.1.1-52 libgcc"
"libstdc++-4.1.1 libstdc++"
"libstdc++-devel-4.1.1-52.e15 libstdc++-devel"
"make-3.81-1.1 make"
"sysstat-7.0.0 sysstat"
"unixODBC-2.2.11 unixODBC"
"unixODBC-devel-2.2.11 unixODBC-devel"
"libXp-1.0.0-8 libXp")

}

11GR1_RHEL5_X86 () {

DOC_ID="Requirements for Installing Oracle 11gR1 32bit RDBMS on RHEL 5 & OL 5 (Doc ID 438765.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. Required minimum RAM on RHEL 5 x86 is 1GiB
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 512MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 8192MiB
    0.75 times the size of RAM if RAM is more than 8192MiB
 c. Kernel 2.6.18-8.el5 or higher\n"

PACKAGES_ARRAY=("gcc-4.1.1-52 gcc"
"gcc-c++-4.1.1-52 gcc-c++"
"libaio-devel-0.3.106 libaio-devel"
"sysstat-7.0.0 sysstat"
"make-3.81-1.1 make"
"unixODBC-2.2.11-7.1.i386 unixODBC i386"
"unixODBC-devel-2.2.11-7.1.i386 unixODBC-devel i386"
"kernel-headers-2.6 kernel-headers"
"elfutils-libelf-devel-static-0.125-3.el5 elfutils-libelf-devel-static"
"libgomp-4.1.1-52.el5.2 libgomp"
"binutils-2.17.50.0.6-2.el5 binutils"
"glibc-2.5-12 glibc"
"glibc-common-2.5-12 glibc-common"
"glibc-devel-2.5-12 glibc-devel"
"glibc-headers-2.5-12 glibc-headers-"
"libaio-0.3.106 libaio"
"libgcc-4.1.1-52 libgcc"
"libstdc++-4.1.1 libstdc++"
"libstdc++-devel-4.1.1-52.e15 libstdc++"
"compat-libstdc++-33-3.2.3-61 compat-libstdc++-33   "
"elfutils-libelf-devel-0.125 elfutils-libelf-devel"
"elfutils-libelf-0.125-3.el5 elfutils-libelf")

}

11GR2_RHEL5_X86 () {

DOC_ID="Requirements for Installing Oracle 11gR2 RDBMS on RHEL (and OL) 5 on 32-bit x86 (Doc ID 880936.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. Required minimum RAM on RHEL 5 x86 is 1GiB
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    1.0 times the size of RAM if RAM is between 2049MiB and 16GiB
    16GiB if RAM is more than 16GiB
 c. Kernel 2.6.18-92 or newer\n"

PACKAGES_ARRAY=("binutils-2.17.50.0.6-2.el5 binutils"
"compat-libstdc++-33-3.2.3-61 compat-libstdc++-33"
"elfutils-libelf-0.125-3.el5 elfutils-libelf"
"glibc-2.5-24 glibc"
"glibc-common-2.5-12 glibc-common"
"ksh-20060214-1.7 ksh"
"libaio-0.3.106 libaio"
"libgcc-4.1.2-42.el5 libgcc"
"libstdc++-4.1.2-42 libstdc++"
"make-3.81-1.1 make"
"elfutils-libelf-devel-0.125-3.el5.i386 elfutils-libelf-devel i386"
"elfutils-libelf-devel-static-0.125-3.el5.i386 elfutils-libelf-devel-static i386"
"kernel-headers-2.6.18-92.el5.i386 kernel-headers i386"
"glibc-headers-2.5-24.i386 glibc-headers i386"
"glibc-devel-2.5-24.i386 glibc-devel i386"
"libstdc++-devel-4.1.2-42.el5.i386 libstdc++-devel i386"
"libgomp-4.1.2-42.el5.i386 libgomp i386"
"gcc-4.1.2-42.el5.i386 gcc i386"
"gcc-c++-4.1.2-42.el5.i386 gcc-c++ i386"
"libaio-devel-0.3.106-3.2.i386 libaio-devel i386"
"sysstat-7.0.2-1.el5.i386 sysstat i386"
"unixODBC-2.2.14.i386 unixODBC- i386"
"unixODBC-devel-2.2.14.i386 unixODBC-devel i386")

}

## *******************************************************
## ** Red Hat 5 x86-64
## *******************************************************

10GR2_RHEL5_X86_64 () {

DOC_ID="Requirements For Installing Oracle 10gR2 On RHEL 5/OL 5 (Doc ID 421308.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. Required minimum RAM on RHEL 5 x86-64 is 1GiB
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 8192MiB
    0.75 times the size of RAM if RAM is more than 8192MiB
 c. Kernel 2.6.18-8 or later\n"

PACKAGES_ARRAY=("binutils-2.17.50.0.6-2 binutils"
"compat-db-4.2.52-5.1 compat-db"
"compat-libstdc++-296-2.96-138.i386 compat-libstdc++-296 i386"
"compat-libstdc++-33-3.2.3-61 compat-libstdc++-33"
"compat-libstdc++-33-3.2.3-61.i386 compat-libstdc++-33 i386"
"control-center-2.16.0-14 control-center"
"gcc-4.1.1-52 gcc"
"gcc-c++-4.1.1-52 gcc-c++"
"glibc-2.5-12 glibc"
"glibc-2.5-12.i686 glibc"
"glibc-common-2.5-12 glibc-common"
"glibc-devel-2.5-12 glibc-devel"
"glibc-devel-2.5-12.i386 glibc-devel i386"
"glibc-headers-2.5-12 glibc-headers"
"ksh-20060214-1.4 ksh"
"libaio-0.3.106-3.2 libaio"
"libgcc-4.1.1-52.i386 libgcc i386"
"libgcc-4.1.1-52 libgcc"
"libgnome-2.16.0-6 libgnome"
"libgnomeui-2.16.0-5 libgnomeui"
"libgomp-4.1.1-52 libgomp"
"libstdc++-4.1.1-52 libstdc++"
"libstdc++-devel-4.1.1-52 libstdc++-devel"
"libXp-1.0.0-8.i386 libXp i386"
"libXtst-1.0.1-3.1(i386) libXtst i386"
"make-3.81-1.1 make"
"sysstat-7.0.0-3 sysstat")

}

11GR1_RHEL5_X86_64 () {

DOC_ID="Requirements for Installing Oracle 11gR1 RDBMS on RHEL 5 on AMD64/EM64T (Doc ID 438766.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. Required minimum RAM on RHEL 5 x86-64 is 1GiB
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 8192MiB
    0.75 times the size of RAM if RAM is more than 8192MiB
 c. Kernel 2.6.18-53.EL\n"

PACKAGES_ARRAY=("binutils-2.17.50.0.6-2.el5 binutils"
"elfutils-libelf-0.125-3.el5 elfutils-libelf"
"glibc-2.5-12 glibc"
"glibc-2.5-12.i686.rpm glibc"
"glibc-common-2.5-12 glibc-common"
"libaio-0.3.106-3.2 libaio"
"libaio-0.3.106-3.2.i386 libaio i386"
"libgcc-4.1.1-52.el5 libgcc"
"libgcc-4.1.1-52.el5.i386 libgcc i386"
"libstdc++-4.1.1-52.el5 libstdc++"
"libstdc++-4.1.1-52.el5.i386 libstdc++ i386"
"make-3.81-1.1 make"
"compat-libstdc++-33-3.2.3-61 compat-libstdc++-33"
"compat-libstdc++-33-3.2.3-61.i386 compat-libstdc++-33 i386"
"elfutils-libelf-devel-0.125-3.el5 elfutils-libelf-devel"
"elfutils-libelf-devel-static-0.125-3.el5 elfutils-libelf-devel-static"
"libgomp-4.1.1-52.el5 libgomp"
"libgcc-4.1.1-52.el5 libgcc"
"libstdc++-devel-4.1.1-52.el5 libstdc++-devel"
"gcc-c++-4.1.1-52.el5 gcc-c++"
"glibc-headers-2.5-12 glibc-headers"
"glibc-devel-2.5-12 glibc-devel"
"glibc-devel-2.5-12.i386 glibc-devel i386"
"libaio-devel-0.3.106-3.2 libaio-devel"
"sysstat-7.0.0-3.el5 sysstat"
"kernel-headers-2.6.18-8.el5 kernel-headers"
"unixODBC-2.2.11-7.1.i386 unixODBC i386"
"unixODBC-devel-2.2.11-7.1.i386 unixODBC-devel i386")

}

11GR2_RHEL5_X86_64 () {

DOC_ID="Requirements for Installing Oracle 11gR2 RDBMS on RHEL (and OL) 5 on AMD64/EM64T (Doc ID 880989.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. At least 1GiB of physical RAM. Recommended 2GiB or more.
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 16GiB
    16GiB if RAM is more than 16GiB
 c. Kernel 2.6.18-92 or newer\n"

PACKAGES_ARRAY=("binutils-2.17.50.0.6-6.el5 binutils"
"compat-libstdc++-33-3.2.3-61 compat-libstdc++-33"
"compat-libstdc++-33-3.2.3-61.i386 compat-libstdc++-33 i386"
"elfutils-libelf-0.125-3.el5 elfutils-libelf"
"glibc-2.5-24 glibc"
"glibc-2.5-24.i686 glibc"
"glibc-common-2.5-24 glibc-common"
"ksh-20060214-1.7 ksh"
"libaio-0.3.106-3.2 libaio"
"libaio-0.3.106-3.2.i386 libaio i386"
"libgcc-4.1.2-42.el5.i386 libgcc i386"
"libgcc-4.1.2-42.el5 libgcc"
"libstdc++-4.1.2-42.el5 libstdc++"
"libstdc++-4.1.2-42.el5.i386 libstdc++ i386"
"make-3.81-3.el5 make"
"unixODBC-2.2.14 unixODBC"
"unixODBC-2.2.14.i386 unixODBC i386"
"unixODBC-devel-2.2.14 unixODBC-devel"
"unixODBC-devel-2.2.14.i386 unixODBC-devel i386"
"elfutils-libelf-devel-0.125-3 elfutils-libelf-devel"
"elfutils-libelf-devel-static-0.125-3 elfutils-libelf-devel-static"
"gcc-4.1.2-42.el5 gcc"
"gcc-c++-4.1.2-42.el5 gcc-c++"
"glibc-devel-2.5-24 glibc-devel"
"glibc-devel-2.5-24.i386 glibc-devel i386"
"glibc-headers-2.5-24 glibc-headers"
"kernel-headers-2.6.18-92 kernel-headers"
"libgomp-4.1.2-42 libgomp"
"libstdc++-devel-4.1.2-42 libstdc++-devel"
"libaio-devel-0.3.106-3.2 libaio-devel"
"libaio-devel-0.3.106-3.2.i386 libaio-devel i386"
"sysstat-7.0.2-1 sysstat")

}

12CR1_RHEL5_X86_64 () {

DOC_ID="Requirements for Installing Oracle Database 12.1 on RHEL5 or OL5 64-bit (x86-64) (Doc ID 1529433.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. At least 1GiB of physical RAM. Recommended 2GiB or more.
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 16GiB
    16GiB if RAM is more than 16GiB
 c. Oracle Linux 5 Update 6 with the Unbreakable Enterprise kernel: 2.6.32-100.0.19 or later
    Oracle Linux 5 Update 6 with the Red Hat compatible kernel: 2.6.18-238.0.0.0.1.el5 or later
    Red Hat Enterprise Linux 5 Update 6 2.6.18-238.0.0.0.1.el5 or later
    Red Hat Enterprise Linux 5 Update 6 with the Unbreakable Enterprise Kernel: 2.6.32-100.0.19 or later\n"

PACKAGES_ARRAY=("binutils-2.17.50.0.6 binutils"
"compat-libstdc++-33-3.2.3 compat-libstdc++-33"
"glibc-2.5-58 glibc"
"ksh ksh"
"libaio-0.3.106 libaio"
"libgcc-4.1.2 libgcc"
"libstdc++-4.1.2 libstdc++"
"libXext-1.0.1 libXext"
"libXtst-1.0.1 libXtst"
"libX11-1.0.3 libX11"
"libXau-1.0.1 libXau"
"libXi-1.0.1 libXi"
"make-3.81 make"
"gcc-4.1.2 gcc"
"gcc-c++-4.1.2 gcc-c++"
"glibc-devel-2.5-58 glibc-devel"
"libaio-devel-0.3.106 libaio-devel"
"libstdc++-devel-4.1.2 libstdc++-devel"
"sysstat-7.0.2 sysstat"
"compat-libstdc++-33-3.2.3.i386 compat-libstdc++-33 i386"
"glibc-2.5-58.i386 glibc i386"
"glibc-devel-2.5-58.i386 glibc-devel i386"
"libaio-0.3.106.i386 libaio i386"
"libaio-devel-0.3.106.i386 libaio-devel i386"
"libgcc-4.1.2.i386 libgcc i386"
"libstdc++-4.1.2.i386 libstdc++ i386"
"libXext-1.0.1.i386 libXext i386"
"libXtst-1.0.1.i386 libXtst i386"
"libX11-1.0.3.i386 libX11 i386"
"libXau-1.0.1.i386 libXau i386"
"libXi-1.0.1.i386 libXi i386")

}

## *******************************************************
## ** Red Hat 6 x86-64
## *******************************************************

11GR2_RHEL6_X86_64 () {

DOC_ID="Requirements for Installing Oracle 11gR2 RDBMS on RHEL6 or OL6 64-bit (x86-64) (Doc ID 1441282.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. At least 1GiB of physical RAM.
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 16GiB
    16GiB if RAM is more than 16GiB
 c. RHEL6 servers must be running kernel 2.6.32-71.el6 or higher.
    OL6 servers must also be running kernel 2.6.32-71.el6 or higher version
    Unbreakable Enterprise Kernel 1 (UEK1, kernel version 2.6.32-100.28.5)
    Unbreakable Enterprise Kernel 2 (UEK2, kernel version 2.6.39)\n"

PACKAGES_ARRAY=("binutils-2.20.51.0.2-5.11.el6 binutils"
"compat-libstdc++-33-3.2.3-69.el6 compat-libstdc++-33"
"glibc-2.12-1.7.el6 glibc"
"ksh-*.el6 ksh"
"libaio-0.3.107-10.el6 libaio"
"libgcc-4.4.4-13.el6 libgcc"
"libstdc++-4.4.4-13.el6 libstdc++"
"make-3.81-19.el6 make"
"compat-libcap1-1.10-1 compat-libcap1"
"gcc-4.4.4-13.el6 gcc"
"gcc-c++-4.4.4-13.el6 gcc-c++"
"glibc-devel-2.12-1.7.el6 glibc-devel"
"libaio-devel-0.3.107-10.el6 libaio-devel"
"libstdc++-devel-4.4.4-13.el6 libstdc++-devel"
"sysstat-9.0.4-11.el6 sysstat"
"compat-libstdc++-33-3.2.3-69.el6.i686 compat-libstdc++-33 i686"
"glibc-2.12-1.7.el6.i686 glibc i686"
"glibc-devel-2.12-1.7.el6.i686 glibc-devel i686"
"libaio-0.3.107-10.el6.i686 libaio i686"
"libaio-devel-0.3.107-10.el6.i686 libaio-devel i686"
"libgcc-4.4.4-13.el6.i686 libgcc i686"
"libstdc++-4.4.4-13.el6.i686 libstdc++ i686"
"libstdc++-devel-4.4.4-13.el6.i686 libstdc++-devel i686"
"cpp-4.4.4-13.el6 cpp"
"glibc-headers-2.12-1.7.el6 glibc-headers"
"mpfr-2.4.1-6.el6 mpfr")

}

12CR1_RHEL6_X86_64 () {

DOC_ID="Requirements for Installing Oracle Database 12.1 on RHEL6 or OL6 64-bit (x86-64) (Doc ID 1529864.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. At least 1GiB of physical RAM. Recommended 2GiB or more.
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 16GiB
    16GiB if RAM is more than 16GiB
 c. Oracle Linux 6 with the Unbreakable Enterprise kernel: 2.6.39-200.24.1.el6uek.x86_64 or later
    Oracle Linux 6 with the Red Hat Compatible kernel: 2.6.32-71.el6.x86_64 or later
    Red Hat Enterprise Linux 6: 2.6.32-71.el6.x86_64 or later
    Red Hat Enterprise Linux 6 with the Unbreakable Enterprise Kernel: 2.6.32-100.28.5.el6.x86_64 or later\n"

PACKAGES_ARRAY=("binutils-2.20.51.0.2-5.11.el6 binutils"
"glibc-2.12-1.7.el6 glibc"
"libgcc-4.4.4-13.el6 libgcc"
"libstdc++-4.4.4-13.el6 libstdc++"
"libaio-0.3.107-10.el6 libaio"
"libXext-1.1 libXext"
"libXtst-1.0.99.2 libXtst"
"libX11-1.3 libX11"
"libXau-1.0.5 libXau"
"libxcb-1.5 libxcb"
"libXi-1.3 libXi"
"make-3.81-19.el6 make"
"sysstat-9.0.4-11.el6 sysstat"
"compat-libcap1-1.10-1 compat-libcap1"
"compat-libstdc++-33-3.2.3-69.el6 compat-libstdc++-33"
"gcc-4.4.4-13.el6 gcc"
"gcc-c++-4.4.4-13.el6 gcc-c++"
"glibc-devel-2.12-1.7.el6 glibc-devel"
"ksh ksh"
"libstdc++-devel-4.4.4-13.el6 libstdc++-devel"
"libaio-devel-0.3.107-10.el6 libaio-devel"
"cloog-ppl-0.15.7-1.2.el6 cloog-ppl"
"cpp-4.4.6-4.el6 cpp"
"glibc-headers-2.12-1.80.el6 glibc-headers"
"kernel-headers-2.6.32-279.el6 kernel-headers"
"mpfr-2.4.1-6.el6 mpfr"
"ppl-0.10.2-11.el6 ppl"
"redhat-release-6Server-1.noarch(only_for_RHEL) redhat-release-6Server-1"
"compat-libstdc++-33-3.2.3-69.el6.i686 compat-libstdc++-33 i686"
"glibc-2.12-1.7.el6.i686 glibc i686"
"glibc-devel-2.12-1.7.el6.i686 glibc-devel i686"
"libgcc-4.4.4-13.el6.i686 libgcc i686"
"libstdc++-4.4.4-13.el6.i686 libstdc++ i686"
"libstdc++-devel-4.4.4-13.el6.i686 libstdc++-devel i686"
"libaio-0.3.107-10.el6.i686 libai i686"
"libaio-devel-0.3.107-10.el6.i686 libaio-devel i686"
"libXext-1.1.i686 libXext i686"
"libXtst-1.0.99.2.i686 libXtst i686"
"libX11-1.3.i686 libX11 i686"
"libXau-1.0.5.i686 libXau i686"
"libxcb-1.5.i686 libxcb i686"
"libXi-1.3.i686 libXi i686")

}

12CR2_RHEL6_X86_64 () {

DOC_ID="Requirements for Installing Oracle Database 12.2 on OL6 or RHEL6 64-bit (x86-64) (Doc ID 2196074.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. At least 1GiB of physical RAM. Recommended 2GiB or more.
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 16GiB
    16GiB if RAM is more than 16GiB
 c. Oracle Linux 6.4 with the Unbreakable Enterprise kernel 2: 2.6.39-400.211.1.el6uek.x86_64or later
    Oracle Linux 6.4 with the Red Hat Compatible kernel: 2.6.32-358.el6.x86_64 or later
    Red Hat Enterprise Linux 6.4: 2.6.32-358.el6.x86_64 or later\n"

PACKAGES_ARRAY=("binutils-2.20.51.0.2-5.36.el6 binutils"
"glibc-2.12-1.107.el6 glibc"
"libgcc-4.4.7-3.el6 libgcc"
"libstdc++-4.4.7-3.el6 libstdc++"
"libaio-0.3.107-10.el6 libaio"
"libXtst-1.2.1-2.el6 libXtst"
"libX11-1.5.0-4.el6 libX11"
"libXau-1.0.6-4.el6 libXau"
"libxcb-1.8.1-1.el6 libxcb"
"libXi-1.3 libXi"
"make-3.81-20.el6 make"
"sysstat-9.0.4-20.el6 sysstat"
"compat-libcap1-1.10-1 compat-libcap1"
"compat-libstdc++-33-3.2.3-69.el6 compat-libstdc++-33"
"glibc-devel-2.12-1.107.el6 glibc-devel"
"ksh ksh"
"libstdc++-devel-4.4.7-3.el6 libstdc++-devel"
"libaio-devel-0.3.107-10.el6 libaio-devel"
"cloog-ppl-0.15.7-1.2.el6 cloog-ppl"
"cpp-4.4.6-4.el6 cpp"
"glibc-headers-2.12-1.80.el6 glibc-headers"
"kernel-headers-2.6.32-279.el6 kernel-headers"
"mpfr-2.4.1-6.el6 mpfr"
"ppl-0.10.2-11.el6 ppl"
"redhat-release-6Server-1.noarch(only_for_RHEL) redhat-release-6Server-1"
"compat-libstdc++-33-3.2.3-69.el6.i686 compat-libstdc++-33 i686"
"glibc-2.12-1.107.el6.i686 glibc i686"
"glibc-devel-2.12-1.107.el6.i686 glibc-devel i686"
"libgcc-4.4.7-3.el6.i686 libgcc i686"
"libstdc++-4.4.7-3.el6.i686 libstdc++ i686"
"libstdc++-devel-4.4.7-3.el6.i686 libstdc++-devel i686"
"libaio-0.3.107-10.el6.i686 libaio i686"
"libaio-devel-0.3.107-10.el6.i686 libaio-devel i686"
"libXtst-1.2.1-2.el6.i686 libXtst i686"
"libX11-1.5.0-4.el6.i686 libX11 i686"
"libXau-1.0.6-4.el6.i686 libXau i686"
"libxcb-1.8.1-1.el6.i686 libxcb i686"
"libXi-1.6.1-3.el6.i686 libXi i686")

}

## *******************************************************
## ** Red Hat 7 x86-64
## *******************************************************
11GR2_RHEL7_X86_64 () {

DOC_ID="Requirements for Installing Oracle 11.2.0.4 RDBMS on OL7 or RHEL7 64-bit (x86-64) (Doc ID 1962100.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. At least 1GiB of physical RAM.
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 16GiB
    16GiB if RAM is more than 16GiB
 c. Oracle Linux 7 with Unbreakable Enterprise Kernel : 3.8.13-33.el7uek.x86_64 or later
    Oracle Linux 7 with the Red Hat Compatible kernel : 3.10.0-54.0.1.el7.x86_64 or later
    Red Hat Enterprise Linux 7 : 3.10.0-54.0.1.el7.x86_64 or later\n"

PACKAGES_ARRAY=("compat-libstdc++-33-3.2.3 compat-libstdc++-33"
"binutils-2.23.52.0.1-12.el7.x86_64 binutils"
"compat-libcap1-1.10-3.el7.x86_64 compat-libcap1"
"gcc-4.8.2-3.el7.x86_64 gcc"
"gcc-c++-4.8.2-3.el7.x86_64 gcc-c++"
"glibc-2.17-36.el7.x86_64 glibc"
"glibc-devel-2.17-36.el7.x86_64 glibc-devel"
"ksh ksh"
"libaio-0.3.109-9.el7.x86_64 libaio"
"libaio-devel-0.3.109-9.el7.x86_64 libaio-devel"
"libgcc-4.8.2-3.el7.x86_64 libgcc"
"libstdc++-4.8.2-3.el7.x86_64 libstdc++"
"libstdc++-devel-4.8.2-3.el7.x86_64 libstdc++-devel"
"libXi-1.7.2-1.el7.x86_64 libXi"
"libXtst-1.2.2-1.el7.x86_64 libXtst"
"make-3.82-19.el7.x86_64 make"
"sysstat-10.1.5-1.el7.x86_64 sysstat"
"cpp-4.8.2-16.el7.x86_64 cpp"
"glibc-headers-2.17-55.el7.x86_64 glibc-headers"
"mpfr-3.1.1-4.el7.x86_64 mpfr")

}

12CR1_RHEL7_X86_64 () {

DOC_ID="Requirements for Installing Oracle Database 12.1 on RHEL7 or OL7 64-bit (x86-64) (Doc ID 1961997.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. At least 1GiB of physical RAM. Recommended 2GiB or more.
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 16GiB
    16GiB if RAM is more than 16GiB
 c. Oracle Linux 7 with the Unbreakable Enterprise kernel: 3.8.13-33.el7uek.x86_64 or later
    Oracle Linux 7 with the Red Hat Compatible kernel: 3.10.0-54.0.1.el7.x86_64 or later
    Red Hat Enterprise Linux 7 - 3.10.0-54.0.1.el7.x86_64 or later\n"

PACKAGES_ARRAY=("binutils-2.23.52.0.1-12.el7.x86_64 binutils"
"compat-libcap1-1.10-3.el7.x86_64 compat-libcap1"
"gcc-4.8.2-3.el7.x86_64 gcc"
"gcc-c++-4.8.2-3.el7.x86_64 gcc-c++"
"glibc-2.17-36.el7.i686 glibc i686"
"glibc-2.17-36.el7.x86_64 glibc"
"glibc-devel-2.17-36.el7.i686 glibc-devel i686"
"glibc-devel-2.17-36.el7.x86_64 glibc-devel"
"ksh ksh"
"libaio-0.3.109-9.el7.i686 libaio i686"
"libaio-0.3.109-9.el7.x86_64 libaio"
"libaio-devel-0.3.109-9.el7.i686 libaio-devel i686"
"libaio-devel-0.3.109-9.el7.x86_64 libaio-devel"
"libgcc-4.8.2-3.el7.i686 libgcc i686"
"libgcc-4.8.2-3.el7.x86_64 libgcc"
"libstdc++-4.8.2-3.el7.i686 libstdc++ i686"
"libstdc++-4.8.2-3.el7.x86_64 libstdc++"
"libstdc++-devel-4.8.2-3.el7.i686 libstdc++-devel"
"libstdc++-devel-4.8.2-3.el7.x86_64 libstdc++-devel"
"libXi-1.7.2-1.el7.i686 libXi i686"
"libXi-1.7.2-1.el7.x86_64 libXi"
"libXtst-1.2.2-1.el7.i686 libXtst i686"
"libXtst-1.2.2-1.el7.x86_64 libXtst"
"make-3.82-19.el7.x86_64 make"
"sysstat-10.1.5-1.el7.x86_64 sysstat")

}

12CR2_RHEL7_X86_64 () {

DOC_ID="Requirements for Installing Oracle 12.2 RDBMS on OL7 or RHEL7 64-bit (x86-64) (Doc ID 2197176.1)"
DOC_ID_PADDING=$(eval printf '%0.1s' "-"{1..$((${#DOC_ID} + 4))})

SYSTEM_REQUIREMENTS="
 Each system must meet the following minimum requirements:
 a. At least 1GiB of physical RAM. Recommended 2GiB or more.
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 16GiB
    16GiB if RAM is more than 16GiB
 c. Oracle Linux 7 with the Unbreakable Enterprise kernel 3: 3.8.13-35.3.1.el7uek.x86_64 or later
    Oracle Linux 7 with the Red Hat Compatible kernel: 3.10.0-54.0.1.el7.x86_64 or later
    Red Hat Enterprise Linux 7: 3.10.0-54.0.1.el7.x86_64 or later\n"

PACKAGES_ARRAY=("binutils-2.23.52.0.1-12.el7 binutils"
"compat-libcap1-1.10-3.el7 compat-libcap1"
"glibc-2.17-36.el7.i686 glibc i686"
"glibc-2.17-36.el7 glibc"
"glibc-devel-2.17-36.el7.i686 glibc-devel i686"
"glibc-devel-2.17-36.el7 glibc-devel"
"ksh ksh"
"libaio-0.3.109-9.el7.i686 libaio i686"
"libaio-0.3.109-9.el7 libaio"
"libaio-devel-0.3.109-9.el7.i686 libaio-devel i686"
"libaio-devel-0.3.109-9.el7 libaio-devel"
"libX11-1.6.0-2.1.el7.i686 libX11 i686"
"libX11-1.6.0-2.1.el7 libX11"
"libXau-1.0.8-2.1.el7.i686 libXau i686"
"libXau-1.0.8-2.1.el7 libXau"
"libXi-1.7.2-1.el7.i686 libXi i686"
"libXi-1.7.2-1.el7 libXi"
"libXtst-1.2.2-1.el7.i686 libXtst i686"
"libXtst-1.2.2-1.el7 libXtst"
"libgcc-4.8.2-3.el7.i686 libgcc i686"
"libgcc-4.8.2-3.el7 libgcc"
"libstdc++-4.8.2-3.el7.i686 libstdc++ i686"
"libstdc++-4.8.2-3.el7 libstdc++"
"libstdc++-devel-4.8.2-3.el7.i686 libstdc++-devel i686"
"libstdc++-devel-4.8.2-3.el7 libstdc++-devel"
"libxcb-1.9-5.el7.i686 libxcb i686"
"libxcb-1.9-5.el7 libxcb"
"make-3.82-19.el7 make"
"net-tools-2.0-0.17.20131004git.el7 net-tools"
"smartmontools-6.2-4.el7 smartmontools"
"sysstat-10.1.5-1.el7 sysstat")

}

## *******************************************************
## ** Define variables by executing a procedure
## *******************************************************
DEFINE_VARIABLES=$(echo ${DATABASE_RELEASE}_${OPERATING_SYSTEM}_$(uname -i) | tr '[:lower:]' '[:upper:]')
eval "${DEFINE_VARIABLES}" 2>/dev/null

if [[ -z "${PACKAGES_ARRAY}" ]];
then 
   DO_ERROR NOT_SUPPORTED
fi

## *******************************************************
## ** Print hardware and software requirements
## *******************************************************
clear
clear
echo
echo " ${DOC_ID_PADDING}"
echo " - ${DOC_ID} -"
echo " ${DOC_ID_PADDING}"
printf "${SYSTEM_REQUIREMENTS}\n"

## *******************************************************
## ** Print prerequisites and packages installed
## *******************************************************

## ---------------------------------------------
## 001 [R] - libstdc++-devel-4.4.4-13.el6 i686
## --- [A] - libstdc++-devel-4.8.5-11.el7 i686
## ---------------------------------------------

separating_line="\033[34;1m--------------------------------------------------------------\033[0m"
echo -e " ${separating_line}"

packages_count=$((${#PACKAGES_ARRAY[@]} - 1))

for package in $(eval echo "{0..${packages_count}}");
do
   full_package_name=$(echo ${PACKAGES_ARRAY[${package}]} | awk '{print $1}')
   short_package_name=$(echo ${PACKAGES_ARRAY[${package}]} | awk '{print $2}')
   architecture=$(echo ${PACKAGES_ARRAY[${package}]} | awk '{print $3}')
   
   if [[ -z "${architecture}" ]];
   then
      architecture=$(uname -i)
   fi
   
   printf " %03d [R] - ${full_package_name} ${architecture}\n" $((${package} + 1))
   package_existence=$(rpm -qa --queryformat '%{NAME}-%{VERSION}-%{RELEASE} %{ARCH}\n' | grep ^${short_package_name}-[0-9\.]*- | egrep ${architecture})
   
   if [[ -z "${package_existence}" ]];
   then
      packages_to_be_installed="${packages_to_be_installed} ${short_package_name}.${architecture}"
	  printf " --- [N] - \n"
   else
      printf " --- [A] - ${package_existence}\n"
   fi

   printf " ${separating_line}\n"

done

if [[ ! -z "${packages_to_be_installed}" ]];
then
   echo
   echo " yum install${packages_to_be_installed}"
   echo " yum install tigervnc tigervnc-server zip unzip wget mlocate iotop"
   echo
fi

echo -e " ------------------------------------------------------------------------------"
echo -e " - Master Note of Linux OS Requirements for Database Server (Doc ID 851598.1) -"
echo -e " ------------------------------------------------------------------------------"
echo

##################################################################################
## End of the script
## $Header 13:32 31.01.2018
##################################################################################

The script output

[root@dbpilot.net .scripts]# ls
dbs_prepkgs.sh
[root@dbpilot.net .scripts]# ./dbs_prepkgs.sh

 ./dbs_prepkgs.sh dbr= os=

 dbr - Database release. Supported values: 10gR1 10gR2 11gR1 11gR2 12cR1 12cR2
 os  - Operating system. Supported values: rhel4 rhel5 rhel6 rhel7
[root@dbpilot.net .scripts]# ./dbs_prepkgs.sh dbr=12cR2 os=rhel6

 -------------------------------------------------------------------------------------------------------
 - Requirements for Installing Oracle Database 12.2 on OL6 or RHEL6 64-bit (x86-64) (Doc ID 2196074.1) -
 -------------------------------------------------------------------------------------------------------

 Each system must meet the following minimum requirements:
 a. At least 1GiB of physical RAM. Recommended 2GiB or more.
 b. Swap disk space proportional to the system's physial memory as follows:
    1.5 times the size of RAM if RAM is between 1024MiB and 2048MiB
    Equal to the size of RAM if RAM is between 2049MiB and 16GiB
    16GiB if RAM is more than 16GiB
 c. Oracle Linux 6.4 with the Unbreakable Enterprise kernel 2: 2.6.39-400.211.1.el6uek.x86_64or later
    Oracle Linux 6.4 with the Red Hat Compatible kernel: 2.6.32-358.el6.x86_64 or later
    Red Hat Enterprise Linux 6.4: 2.6.32-358.el6.x86_64 or later

 --------------------------------------------------------------
 001 [R] - binutils-2.20.51.0.2-5.36.el6 x86_64
 --- [A] - binutils-2.25.1-22.base.el7 x86_64
 --------------------------------------------------------------
 002 [R] - glibc-2.12-1.107.el6 x86_64
 --- [A] - glibc-2.17-157.el7 x86_64
 --------------------------------------------------------------
 003 [R] - libgcc-4.4.7-3.el6 x86_64
 --- [A] - libgcc-4.8.5-11.el7 x86_64
 --------------------------------------------------------------
 004 [R] - libstdc++-4.4.7-3.el6 x86_64
 --- [A] - libstdc++-4.8.5-11.el7 x86_64
 --------------------------------------------------------------
 005 [R] - libaio-0.3.107-10.el6 x86_64
 --- [A] - libaio-0.3.109-13.el7 x86_64
 --------------------------------------------------------------
 006 [R] - libXtst-1.2.1-2.el6 x86_64
 --- [A] - libXtst-1.2.2-2.1.el7 x86_64
 --------------------------------------------------------------
 007 [R] - libX11-1.5.0-4.el6 x86_64
 --- [A] - libX11-1.6.3-3.el7 x86_64
 --------------------------------------------------------------
 008 [R] - libXau-1.0.6-4.el6 x86_64
 --- [A] - libXau-1.0.8-2.1.el7 x86_64
 --------------------------------------------------------------
 009 [R] - libxcb-1.8.1-1.el6 x86_64
 --- [A] - libxcb-1.11-4.el7 x86_64
 --------------------------------------------------------------
 010 [R] - libXi-1.3 x86_64
 --- [A] - libXi-1.7.4-2.el7 x86_64
 --------------------------------------------------------------
 011 [R] - make-3.81-20.el6 x86_64
 --- [A] - make-3.82-23.el7 x86_64
 --------------------------------------------------------------
 012 [R] - sysstat-9.0.4-20.el6 x86_64
 --- [A] - sysstat-10.1.5-11.el7 x86_64
 --------------------------------------------------------------
 013 [R] - compat-libcap1-1.10-1 x86_64
 --- [A] - compat-libcap1-1.10-7.el7 x86_64
 --------------------------------------------------------------
 014 [R] - compat-libstdc++-33-3.2.3-69.el6 x86_64
 --- [A] - compat-libstdc++-33-3.2.3-72.el7 x86_64
 --------------------------------------------------------------
 015 [R] - glibc-devel-2.12-1.107.el6 x86_64
 --- [A] - glibc-devel-2.17-157.el7 x86_64
 --------------------------------------------------------------
 016 [R] - ksh x86_64
 --- [A] - ksh-20120801-26.el7 x86_64
 --------------------------------------------------------------
 017 [R] - libstdc++-devel-4.4.7-3.el6 x86_64
 --- [A] - libstdc++-devel-4.8.5-11.el7 x86_64
 --------------------------------------------------------------
 018 [R] - libaio-devel-0.3.107-10.el6 x86_64
 --- [A] - libaio-devel-0.3.109-13.el7 x86_64
 --------------------------------------------------------------
 019 [R] - cloog-ppl-0.15.7-1.2.el6 x86_64
 --- [N] -
 --------------------------------------------------------------
 020 [R] - cpp-4.4.6-4.el6 x86_64
 --- [A] - cpp-4.8.5-11.el7 x86_64
 --------------------------------------------------------------
 021 [R] - glibc-headers-2.12-1.80.el6 x86_64
 --- [A] - glibc-headers-2.17-157.el7 x86_64
 --------------------------------------------------------------
 022 [R] - kernel-headers-2.6.32-279.el6 x86_64
 --- [A] - kernel-headers-3.10.0-514.el7 x86_64
 --------------------------------------------------------------
 023 [R] - mpfr-2.4.1-6.el6 x86_64
 --- [A] - mpfr-3.1.1-4.el7 x86_64
 --------------------------------------------------------------
 024 [R] - ppl-0.10.2-11.el6 x86_64
 --- [N] -
 --------------------------------------------------------------
 025 [R] - redhat-release-6Server-1.noarch(only_for_RHEL) x86_64
 --- [N] -
 --------------------------------------------------------------
 026 [R] - compat-libstdc++-33-3.2.3-69.el6.i686 i686
 --- [N] -
 --------------------------------------------------------------
 027 [R] - glibc-2.12-1.107.el6.i686 i686
 --- [A] - glibc-2.17-157.el7 i686
 --------------------------------------------------------------
 028 [R] - glibc-devel-2.12-1.107.el6.i686 i686
 --- [A] - glibc-devel-2.17-157.el7 i686
 --------------------------------------------------------------
 029 [R] - libgcc-4.4.7-3.el6.i686 i686
 --- [A] - libgcc-4.8.5-11.el7 i686
 --------------------------------------------------------------
 030 [R] - libstdc++-4.4.7-3.el6.i686 i686
 --- [A] - libstdc++-4.8.5-11.el7 i686
 --------------------------------------------------------------
 031 [R] - libstdc++-devel-4.4.7-3.el6.i686 i686
 --- [A] - libstdc++-devel-4.8.5-11.el7 i686
 --------------------------------------------------------------
 032 [R] - libaio-0.3.107-10.el6.i686 i686
 --- [A] - libaio-0.3.109-13.el7 i686
 --------------------------------------------------------------
 033 [R] - libaio-devel-0.3.107-10.el6.i686 i686
 --- [A] - libaio-devel-0.3.109-13.el7 i686
 --------------------------------------------------------------
 034 [R] - libXtst-1.2.1-2.el6.i686 i686
 --- [A] - libXtst-1.2.2-2.1.el7 i686
 --------------------------------------------------------------
 035 [R] - libX11-1.5.0-4.el6.i686 i686
 --- [A] - libX11-1.6.3-3.el7 i686
 --------------------------------------------------------------
 036 [R] - libXau-1.0.6-4.el6.i686 i686
 --- [A] - libXau-1.0.8-2.1.el7 i686
 --------------------------------------------------------------
 037 [R] - libxcb-1.8.1-1.el6.i686 i686
 --- [A] - libxcb-1.11-4.el7 i686
 --------------------------------------------------------------
 038 [R] - libXi-1.6.1-3.el6.i686 i686
 --- [A] - libXi-1.7.4-2.el7 i686
 --------------------------------------------------------------

 yum install cloog-ppl.x86_64 ppl.x86_64 redhat-release-6Server-1.x86_64 compat-libstdc++-33.i686
 yum install tigervnc tigervnc-server zip unzip wget mlocate iotop

 ------------------------------------------------------------------------------
 - Master Note of Linux OS Requirements for Database Server (Doc ID 851598.1) -
 ------------------------------------------------------------------------------

 
 

Version  : 15:59 31.01.2018
Database : Oracle database 10g – 12c