Use Oracle Preinstallation RPM on RHEL (non UEK)

With Oracle’s « Preinstallation RPM » you can easily prepare Oracle Database 12c and 11g installations on Oracle Linux. But these RPMs will not work unless you’re working with a « UEK kernel ». The article below shows a tip to use this RPM on a « Redhat Kernel » anyway.
 

 

 Download Oracle Preinstallation RPM on Public YUM.

On http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64
    oracle-rdbms-server-11gR2-preinstall-1.0-3.el6.x86_64.rpm     27-Mar-2012 06:50     14.7 K
    oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64.rpm     08-Jun-2012 01:16     15.1 K
    oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm     24-Dec-2012 23:33     15.2 K
    oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64.rpm     21-Nov-2013 10:00     16.9 K
    oracle-rdbms-server-12cR1-preinstall-1.0-8.el6.x86_64.rpm     24-Apr-2013 01:26     14.8 K
    oracle-rdbms-server-12cR1-preinstall-1.0-11.el6.x86_64.rpm    21-Nov-2013 10:01     15.4 K

At present time :

wget http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64.rpm
wget http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/oracle-rdbms-server-12cR1-preinstall-1.0-11.el6.x86_64.rpm

Extract RPM :

[root ~]# mkdir -p oracle-rdbms-server-11gR2-preinstall-1.0-9
[root ~]# cd oracle-rdbms-server-11gR2-preinstall-1.0-9
[root oracle-rdbms-server-11gR2-preinstall-1.0-9]# rpm2cpio ../oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64.rpm | cpio -idmv
./etc/rc.d/init.d/oracle-rdbms-server-11gR2-preinstall-firstboot
./etc/sysconfig/oracle-rdbms-server-11gR2-preinstall
./etc/sysconfig/oracle-rdbms-server-11gR2-preinstall/oracle-rdbms-server-11gR2-preinstall-verify
./etc/sysconfig/oracle-rdbms-server-11gR2-preinstall/oracle-rdbms-server-11gR2-preinstall.param
./usr/bin/oracle-rdbms-server-11gR2-preinstall-verify
./var/log/oracle-rdbms-server-11gR2-preinstall
./var/log/oracle-rdbms-server-11gR2-preinstall/results
86 blocks
[root oracle-rdbms-server-11gR2-preinstall-1.0-9]# ll
total 12
drwxr-xr-x 4 root root 4096 Aug 26 12:01 etc
drwxr-xr-x 3 root root 4096 Aug 26 12:01 usr
drwxr-xr-x 3 root root 4096 Aug 26 12:01 var
[root ~]# mkdir oracle-rdbms-server-12cR1-preinstall-1.0-11
[root ~]# cd oracle-rdbms-server-12cR1-preinstall-1.0-11
[root oracle-rdbms-server-12cR1-preinstall-1.0-11]# rpm2cpio ../oracle-rdbms-server-12cR1-preinstall-1.0-11.el6.x86_64.rpm | cpio -idmv
./etc/rc.d/init.d/oracle-rdbms-server-12cR1-preinstall-firstboot
./etc/sysconfig/oracle-rdbms-server-12cR1-preinstall
./etc/sysconfig/oracle-rdbms-server-12cR1-preinstall/oracle-rdbms-server-12cR1-preinstall-verify
./etc/sysconfig/oracle-rdbms-server-12cR1-preinstall/oracle-rdbms-server-12cR1-preinstall.param
./usr/bin/oracle-rdbms-server-12cR1-preinstall-verify
./var/log/oracle-rdbms-server-12cR1-preinstall
./var/log/oracle-rdbms-server-12cR1-preinstall/results
79 blocks
[root oracle-rdbms-server-12cR1-preinstall-1.0-11]# ll
total 12
drwxr-xr-x 4 root root 4096 Aug 26 12:00 etc
drwxr-xr-x 3 root root 4096 Aug 26 12:00 usr
drwxr-xr-x 3 root root 4096 Aug 26 12:00 var

List packages required by the RPM :

[root ~]# rpm -qpR oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64.rpm 2>/dev/null | egrep -v 'rpmlib|^/|=|uek' | awk '{ printf "%s \\ \n", $1 '}
bc \
bind-utils \
binutils \
compat-libcap1 \
compat-libstdc++-33 \
ethtool \
gcc \
gcc-c++ \
glibc \
glibc-devel \
initscripts \
ksh \
libaio \
libaio-devel \
libgcc \
libstdc++ \
libstdc++-devel \
make \
module-init-tools \
nfs-utils \
openssh-clients \
pam \
procps \
smartmontools \
sysstat \
util-linux-ng \
xorg-x11-utils \
xorg-x11-xauth \
[root ~]# rpm -qpR oracle-rdbms-server-12cR1-preinstall-1.0-11.el6.x86_64.rpm 2>/dev/null | egrep -v 'rpmlib|^/|=|uek' | awk '{ printf "%s \\ \n", $1 '}
bc \
bind-utils \
binutils \
compat-libcap1 \
compat-libstdc++-33 \
ethtool \
gcc \
gcc-c++ \
glibc \
glibc-devel \
initscripts \
ksh \
libaio \
libaio-devel \
libgcc \
libstdc++ \
libstdc++-devel \
make \
module-init-tools \
nfs-utils \
openssh-clients \
pam \
procps \
smartmontools \
sysstat \
util-linux-ng \
xorg-x11-utils \
xorg-x11-xauth \

Install required packages :

[root ~]# yum -y install \
bc \
bind-utils \
binutils \
compat-libcap1 \
compat-libstdc++-33 \
ethtool \
gcc \
gcc-c++ \
glibc \
glibc-devel \
initscripts \
ksh \
libaio \
libaio-devel \
libgcc \
libstdc++ \
libstdc++-devel \
make \
module-init-tools \
nfs-utils \
openssh-clients \
pam \
procps \
smartmontools \
sysstat \
util-linux-ng \
xorg-x11-utils \
xorg-x11-xauth

Configure your Oracle server :

[root oracle-rdbms-server-11gR2-preinstall]# cd ./etc/sysconfig/oracle-rdbms-server-11gR2-preinstall
[root oracle-rdbms-server-11gR2-preinstall]# chmod 744 oracle-rdbms-server-11gR2-preinstall-verify
[root oracle-rdbms-server-11gR2-preinstall]# ./oracle-rdbms-server-11gR2-preinstall-verify

Verify that modifications are made:

oinstall and dba groups
oracle user
/var/log/oracle-rdbms-server-11gR2-preinstall/results/orakernel.log
   /etc/security/limits.conf file
   /etc/sysctl.conf file
   /boot/grub/grub.conf file

 
 
 
 
 
 
 
 
 
 

1 réflexion sur “Use Oracle Preinstallation RPM on RHEL (non UEK)”

  1. Hi, This article is great and lean.
    Very useful when someone want to take the benefit of the oracle pre-installation package without a « Oracle Linux VM ».
    It works like a charm on my RHEL 7 when installing Oracle 12c R2.
    THanks a lot.

Les commentaires sont fermés.