Wednesday, 1 April 2015

Simplifying Oracle Pre- installation Task on Oracle Linux 6

To simplify the database pre-installation task, from Oracle 11gR2 and 12C on Oracle Linux the DBA can install a new tool which provided by Oracle for Oracle Linux 4,5,6.
In this article I will show how to install  oracle-rdbms-server-12cR1-preinstall or oracle-rdbms-server-11gR2-preinstall RPM 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.
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.
As an authorized user (for example, root), retrieve the file that configures repository locations:
    # cd /etc/yum.repos.d
    # wget http://public-yum.oracle.com/public-yum-ol6.repo
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
Here is an sample of public-yum-old6.repo with the changed lines in boldface
[ol6_latest]
name=Oracle Linux $releasever Latest ($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

[ol6_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
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].
Next, install the oracle-rdbms-server-11gR2-preinstall RPM using the yum install command.
    # yum install oracle-rdbms-server-11gR2-preinstall
At this point, the system is ready for the installation of Oracle Database
For futher information about this tool you can check at http://public-yum.oracle.com/