This is an old revision of the document!
Table of Contents
Installing_Oracle_11.2.0.1_on_RedHat_5.4_Linux_x86_64
To install on CentOS, you have to trick the Oracle installer into thinking it is installing on Redhat.<br /> Edit these files:<br /> /etc/issue and /etc/redhat-release<br /> and replace the CentOS with this line:<br />
0@@
From root on the machine:
Make sure the kernel version meets the minimum Oracle requirements
Required kernel version: 2.6.18 uname -rm
Add or modify the following parameters in /etc/sysctl.conf
You could leave this alone and the installer will generate a fixup script which will modify those that need modifying.
1@@
Run /sbin/sysctl -a | grep <param-name> to check the current value and /sbin/sysctp -p to make the changes take effect.
The following lines have to be added to /etc/security/limits.conf
2@@
Check required packages are installed
This is a list of the packages that must be installed for the Oracle installation to succeed
3@@
At root prompt, type yum info <package_name> or rpm -qa | grep <package_name> to see whether it is installed, and yum -y install <package_name> to install the package.
Create the software owner and groups
4@@
Ensure SELINUX is disabled in /etc/selinux/config
5@@
Log in as oracle
Add the following to the .bash_profile
Although only the ORACLE_BASE (and temp dirs) is recommended, you can set the other variables if you know them and want them in the profile.
They will be set automatically when oraenv is called so after installation, you could just set the SID and call oraenv.
6@@
Then log out and in again for the changes to take effect
Set the DISPLAY variable to allow the installer to display on your computer
Now this part can either work first time or can be tricky! See “Fixing X11 display issues” further down more more info. export DISPLAY=<your IP address»0.0
getting xclock to work
if this doesn't work, forget trying to run the Oracle installer xclock
Make sure that X11 forwarding is enabled in PuTTY (or whatever you use)
In PuTTY, this setting is found in Connections:SSH:X11
startx If this doesn't work, is X installed? yum search xorg-x11
yum info xorg-x11
7@@
or
8@@
vi /etc/ssh/sshd_config Make sure these settings are uncommented and set
9@@
10@@
means TMP is set to a directory with bad permissions, create a tmp subdirectory under oracle's own account and use that
11@@
Copy/download the Oracle software to the server
12@@
Now we should have a single directory called 'database' owned by oracle
13@@
If you see this, you are probably running the installer from an account that does not have the authority to start an X session.<br /> Did you “su - oracle” from a root session?<br /> exit your oracle session going back to root, type:
14@@
then “su - oracle” again. Works wonders.
