How to simplify the installation of Oracle Database 12c or 11g on Oracle Linux 6 by
installing the oracle-rdbms-server-12cR1-preinstall or oracle-rdbms-server-11gR2-
preinstall RPM package, which automatically performs a number of tasks, such as
installing required software packages, resolving package dependencies, and modifying
kernel parameters.
Before installing Oracle Database 12c or 11g on a system, you need to preconfigure the
operating environment since the database requires certain software
Want to comment on this
packages, package versions, and tweaks to kernel parameters. (Be
article? Post the link
sure to review the appropriate Oracle Database installation guide to
on Facebook's OTN
familiarize yourself with hardware, software, and operating system
Garage page. Have a
requirements.)
similar article to share?
Bring it up on Facebook
or Twitter and let's
discuss.
Note: This article applies to Oracle Linux 6. A previous article, "How
I Simplified Oracle Database Installation on Oracle Linux," covered performing a similar task on
versions of Oracle Linux 5.
On Oracle Linux, I discovered that there is a remarkably easy way to address these installation
prerequisites: First, depending on your database version, install either the RPM package called
oracle-rdbms-server-12cR1-preinstall or oracle-rdbms-server-11gR2-preinstall.
This RPM performs a number of preconfiguration steps, including the following:
Automatically downloading and installing any additional software packages and specific
package versions needed for installing Oracle Grid Infrastructure and Oracle Database 12
c Release 1 (12.1) or 11g Release 2 (11.2.0.3), with package dependencies resolved via
yum or up2date capabilities.
Creating the user oracle and the groups oinstall (for OraInventory) and dba (for
OSDBA), which are used during database installation. (For security purposes, this user has
no password by default and cannot log in remotely. To enable remote login, please set a
password using the passwd tool.)
Setting hard and soft shell resource limits in /etc/security/limits.conf, such as the
locked-in memory address space, the number of open files, the number of processes, and
core file size.
The remainder of this article steps through the procedure that I used for installing oracle-
rdbms-server-11gR2-preinstall on Oracle Linux via the Oracle public yum repository. The
same steps outlined in the following section can be used for either version of the preinstall RPM
package. I started with a system running Oracle Linux Release 6 Update 4 for x86_64, a 64-bit
version of Oracle Linux that I downloaded from the Oracle software delivery cloud (requires
registration or login). First, I set up a yum configuration file that pointed to the correct repository,
and then I installed the oracle-rdbms-server-11gR2-preinstall RPM from that repository.
Here are the steps for preconfiguring a system for Oracle Database installation using oracle-
rdbms-server-11gR2-preinstall. Remember, the steps are the same when using the oracle-
rdbms-server-12cR1-preinstall package; you simply need to change the name of the RPM
package during the yum installation step.
1. As an authorized user (for example, root), retrieve the file that configures repository
locations:
2.
3. # cd /etc/yum.repos.d
4.
5. # wget http://public-yum.oracle.com/public-yum-ol6.repo
6.
7. Using a text editor, modify the file, changing the field enabled=0 to enabled=1 to reflect
repositories that correspond to the machine's operating system release.
[ol6_latest]
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
[ol6_UEK_latest]
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/
$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1
Because the target system is running Oracle Linux Release 6 Update 4 for x86_64, which
installs the Oracle Unbreakable Enterprise Kernel by default, there are two repositories to
enable, [ol6_latest] and [ol6_UEK_latest].
8. Next, install the oracle-rdbms-server-11gR2-preinstall RPM using the yum
install command. If you are using Oracle Database 12c, then you would type yum
install.
The output in Listing 1 shows how the installation checks dependencies and then
downloads and installs the required packages.
Resolving Dependencies
Dependencies Resolved
========================================================================
========
========================================================================
========
Installing:
oracle-rdbms-server-11gR2-preinstall
x86_64 1.0-6.el6
ol6_latest 15 k
Transaction Summary
========================================================================
========
Install 15 Package(s)
Installed size: 61 M
------------------------------------------------------------------------
--------
Running rpm_check_debug
Running Transaction
Installing : mpfr-2.4.1-6.el6.x86_64
1/15
Installing : libstdc++-devel-4.4.6-4.el6.x86_64
2/15
Installing : cpp-4.4.6-4.el6.x86_64
3/15
Installing : ppl-0.10.2-11.el6.x86_64
4/15
Installing : cloog-ppl-0.15.7-1.2.el6.x86_64
5/15
Installing : kernel-uek-headers-2.6.32-300.32.1.el6uek.x86_64
6/15
Installing : glibc-headers-2.12-1.80.el6_3.4.x86_64
7/15
Installing : glibc-devel-2.12-1.80.el6_3.4.x86_64
8/15
Installing : gcc-4.4.6-4.el6.x86_64
9/15
Installing : gcc-c++-4.4.6-4.el6.x86_64
10/15
Installing : compat-libstdc++-33-3.2.3-69.el6.x86_64
11/15
Installing : libaio-devel-0.3.107-10.el6.x86_64
12/15
Installing : ksh-20100621-16.el6.x86_64
13/15
Installing : compat-libcap1-1.10-1.x86_64
14/15
Installing : oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
15/15
Verifying : gcc-4.4.6-4.el6.x86_64
1/15
Verifying : compat-libcap1-1.10-1.x86_64
2/15
Verifying : ksh-20100621-16.el6.x86_64
3/15
Verifying : glibc-devel-2.12-1.80.el6_3.4.x86_64
4/15
Verifying : libaio-devel-0.3.107-10.el6.x86_64
5/15
Verifying : oracle-rdbms-server-11gR2-preinstall-1.0-6.el6.x86_64
6/15
Verifying : gcc-c++-4.4.6-4.el6.x86_64
7/15
Verifying : glibc-headers-2.12-1.80.el6_3.4.x86_64
8/15
Verifying : libstdc++-devel-4.4.6-4.el6.x86_64
9/15
Verifying : compat-libstdc++-33-3.2.3-69.el6.x86_64
10/15
Verifying : mpfr-2.4.1-6.el6.x86_64
11/15
Verifying : kernel-uek-headers-2.6.32-300.32.1.el6uek.x86_64
12/15
Verifying : cpp-4.4.6-4.el6.x86_64
13/15
Verifying : ppl-0.10.2-11.el6.x86_64
14/15
Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64
15/15
Installed:
oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-6.el6
Dependency Installed:
cloog-ppl.x86_64 0:0.15.7-1.2.el6
compat-libcap1.x86_64 0:1.10-1
compat-libstdc++-33.x86_64 0:3.2.3-69.el6
cpp.x86_64 0:4.4.6-4.el6
gcc.x86_64 0:4.4.6-4.el6
gcc-c++.x86_64 0:4.4.6-4.el6
glibc-devel.x86_64 0:2.12-1.80.el6_3.4
glibc-headers.x86_64 0:2.12-1.80.el6_3.4
kernel-uek-headers.x86_64 0:2.6.32-300.32.1.el6uek
ksh.x86_64 0:20100621-16.el6
libaio-devel.x86_64 0:0.3.107-10.el6
libstdc++-devel.x86_64 0:4.4.6-4.el6
mpfr.x86_64 0:2.4.1-6.el6
ppl.x86_64 0:0.10.2-11.el6
Complete!
The yum installation logs messages about kernel changes in the file /var/log/oracle-
rdbms-server-11gR2-preinstall/results/orakernel.log, and it makes backups of
current system settings in the directory /var/log/oracle-rdbms-server-11gR2-
preinstall/backup.
9. At this point, the system is ready for the installation of Oracle Database. For example, to
install Oracle Database 11g Release 2, follow the directions in Chapter 4, "Installing
Oracle Database," of the Database Installation Guide for Linux."
Here are the steps I followed while installing Oracle Database 11g Release 2 in my test
environment. Make sure you review all documentation and follow recommended best
practices before installing into your production environment.
a. As root, create a parent directory in a file system that has sufficient space to be
the target location for the downloaded files:
b.
c. # mkdir /home/OraDB11g
d.
e. # cd /home/OraDB11g
f.
The amount of disk space needed in the file system varies according to the
specific installation type, but roughly twice the size of the zip archives, or 5 GB,
is enough to house the software and data files.
g. Into this target directory, download the installation media files from the Oracle
Database Software Downloads page on Oracle Technology Network.
n. Log in as the user oracle. Change directory to the database directory and enter
the following command to run the Oracle Universal Installer:
o.
p. $ cd /home/OraDB11g/database
q.
r. $ ./runInstaller
s.
The Oracle Universal Installer performs a number of checks, verifying that the necessary
OS packages and versions are installed. In addition, it checks kernel parameters set by the
oracle-rdbms-server-11gR2-preinstall installation. During the kernel settings
check, the installer might flag a few settings as "failed," and you should investigate these
failures. In some cases, you still might be able to continue with the database installation.
If you check kernel settings in /etc/sysctl.conf, you'll see that oracle-rdbms-
server-11gR2-preinstall has modified and added the necessary settings to ensure the
minimum requirements are met, as defined in section 2.10.1, "Displaying and Changing
Kernel Parameter Values," in Chapter 2, "Oracle Database Preinstallation Requirements,"
of the Oracle Database Installation Guide 11g Release2 (11.2) for Linux. Below is the
list of requirements:
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
If necessary, you can (as root) edit the file /etc/sysctl.conf to specify a setting
manually, for example:
# vi /etc/sysctl.conf
# /sbin/sysctl -p
The Oracle Universal Installer performs additional checks, such as verifying the glibc
version, sufficient disk space, environmental variable and path settings, and sufficient
physical memory and swap space. Generally, installing oracle-rdbms-server-11gR2-
preinstall takes care of the prerequisites so that you can proceed directly with
installing the database.
Final Thoughts
Installing the oracle-rdbms-server-12cR1-preinstall and oracle-rdbms-server-11gR2-
preinstall RPMs can save time when installing Oracle Database 12c and 11g on Oracle Linux.
These RPMs address most Oracle Database installation prerequisites and greatly simplify the
installation process.
See Also
Here are the resources referenced earlier in this document:
Chapter 4, "Installing Oracle Database," of the Database Installation Guide for Linux:
http://docs.oracle.com/cd/E11882_01/install.112/e24321/inst_task.htm#BABBBHJH
And here are some additional resources from the Oracle Database Documentation Library
(http://www.oracle.com/pls/db112/homepage). Relevant subsections from the Oracle Database
Installation Guide 11g Release 2 (11.2) for Linux
(http://download.oracle.com/docs/cd/E11882_01/install.112/e16763/toc.htm) with currently valid
URLs are as follows:
"About the Oracle RDBMS Pre-Install and Oracle Validated RPMs" from Chapter 1,
"Overview of Oracle Database Installation":
http://download.oracle.com/docs/cd/E11882_01/install.112/e16763/install_overview.htm
#BABDBHCJ
Chapter 2, "Oracle Database Preinstallation Requirements":
http://download.oracle.com/docs/cd/E11882_01/install.112/e16763/pre_install.htm#BAB
FDGHJ
Also see the blog entry "Oracle RDBMS Server 11gR2 Pre-Install RPM for Oracle Linux 6 has
been released": https://blogs.oracle.com/linux/entry/oracle_rdbms_server_11gr2_pre
Michele Casey is the Director of Product Management for Oracle Linux. She has worked with
commercial Linux distributions and open source projects as a product manager since 2006. She
has also held positions as a system administrator, project manager, and technical support
engineer.
Follow us:
Blog | Facebook | Twitter | YouTube