This guide describes the issues we encountered while installing Oracle on Redhat FC6 (which is not certified by Oracle). We found a related guide for Redhat Enterprise 4 here and another one for FC7 here.
Preparation
First, download “Oracle Database 11g Release 1 (11.1.0.6.0)
Standard Edition, Standard Edition One, and Enterprise Edition” for linux x86 from this page (1.7GB). Installation will take up approx 3.3 GB + 1.5 GB for some sample database.
The installation program won’t run as root, so you have to be an ordinary user. It will, however try to access /etc/oraInst.loc (an act which few ordinary users are allowed to). So lets say your ordinary user is testdb then, as root, run:
touch /etc/oraInst.loc
chown testdb /etc/oraInst.loc
chgrp testdb /etc/oraInst.loc
To start the installation program run:
unzip linux_11gR1_database.zip
cd database
./runInstaller
When checks fails
After having done most of the installation, the installer began doing some checks. Two of these failed for us. The description was:
Output generated from configuration assistant "Oracle Net Configuration Assistant":
Command = /mnt/sdc/testdb/oracle/product/11.1.0/db_1/bin/netca /orahome /mnt/sdc/testdb/oracle/product/11.1.0/db_1 /orahnam OraDb11g_home1 /instype typical /inscomp client,oraclenet,javavm,server,ano /insprtcl tcp /cfg local /authadp NO_VALUE /nodeinfo NO_VALUE /responseFile /mnt/sdc/testdb/oracle/product/11.1.0/db_1/network/install/netca_typ.rsp
UnsatisfiedLinkError exception loading native library: njni11
Configuration assistant “Oracle Net Configuration Assistant” failed
—————————————————————————–
The “/mnt/sdc/testdb/oracle/product/11.1.0/db_1/cfgtoollogs/configToolFailedCommands” script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.—————————————————————————–Output generated from configuration assistant “Oracle Net Configuration Assistant”:
Command = /mnt/sdc/testdb/oracle/product/11.1.0/db_1/bin/netca /orahome /mnt/sdc/testdb/oracle/product/11.1.0/db_1 /orahnam OraDb11g_home1 /instype typical /inscomp client,oraclenet,javavm,server,ano /insprtcl tcp /cfg local /authadp NO_VALUE /nodeinfo NO_VALUE /responseFile /mnt/sdc/testdb/oracle/product/11.1.0/db_1/network/install/netca_typ.rsp
UnsatisfiedLinkError exception loading native library: njni11
Configuration assistant “Oracle Net Configuration Assistant” failed
—————————————————————————–
The “/mnt/sdc/testdb/oracle/product/11.1.0/db_1/cfgtoollogs/configToolFailedCommands” script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.—————————————————————————–
The .../configToolFailedCommands file included the following explanation:
UnsatisfiedLinkError exception loading native library: njni11
java.lang.UnsatisfiedLinkError: jniGetOracleHome
at oracle.net.common.NetGetEnv.jniGetOracleHome(Native Method)
at oracle.net.common.NetGetEnv.getOracleHome(Unknown Source)
at oracle.net.ca.NetCA.main(Unknown Source)
Oracle Net Services configuration failed. The exit code is -1
While not very informative UnsatisfiedLinkError and Jni (Java Native Interface) indicated that the issue had something to do with a C/Java binding of some sort. In the Enterprise 4 guide (see top of this note) a list of required packages (with very specific version numbers) were listed. Among those was libaio and libaio-devel, which contains Kernel Asynchronous I/O (AIO) Support for Linux.
This is definitely C territory and would need some binding to be made available to Java. So we decided to install these packages. As root, run
yum install libaio-devel libaio
And everything seems to be spinning.
Pending warnings
We still have an unresolved warning on not having enough swap space. Got plenty of the to add a swapfile it it becomes an issue.