In this step by step tutorial I’m going to show you the installation of Oracle 11gR2 on OEL 5.5
As in every my step by step and video tutorials, I use VMware virtual machine, so here also I start with creating a virtual machine
P.S. Actually I was preparing this tutorial for CentOS, but somehow mixed .iso images
So the name of the virtual machine appears as “CentOS” but the installation is made on OEL. However, you can try the same tutorial for CentOS as well
![11gR2onCentos5_1](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_110.jpg)
Click Next
![11gR2onCentos5_2](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_210.jpg)
Select Typical and click Next
![11gR2onCentos5_3](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_310.jpg)
Select Linux and “Red Hat Enterprise Linux 5” as an OS version and click next
![11gR2onCentos5_4](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_410.jpg)
Provide the name of virtual machine and specify the location and click next
![11gR2onCentos5_5](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_510.jpg)
Select “Use bridged networking” and click Next
![11gR2onCentos5_6](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_69.jpg)
Specify the size of the virtual machine and click Finish
![11gR2onCentos5_7](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_71.jpg)
Delete Floppy, USB Controller and Sound Adapter devices, set Memory to 1024 Mb, mount ISO image of the OEL 5.5 OS and click OK
![11gR2onCentos5_8](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_81.jpg)
Click “Power on” button to start the virtual machine
![11gR2onCentos5_9](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_91.jpg)
Click enter
![11gR2onCentos5_10](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_101.jpg)
Select Skip button
![11gR2onCentos5_11](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_111.jpg)
Click Next
![11gR2onCentos5_12](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_121.jpg)
Select Installation language and click next
![11gR2onCentos5_13](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_131.jpg)
Select the keyboard and click next
![11gR2onCentos5_14](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_141.jpg)
Click on Yes
![11gR2onCentos5_15](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_151.jpg)
Click Next
![11gR2onCentos5_16](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_161.jpg)
Click on YES to remove the partition and click next
![11gR2onCentos5_17](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_171.jpg)
Click Next
![11gR2onCentos5_18](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_181.jpg)
Select the country and click next
![11gR2onCentos5_19](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_191.jpg)
Provide the password of the root user and click next
![11gR2onCentos5_20](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_201.jpg)
To install required packages for Oracle installation select “Customize now” and click Next
![11gR2onCentos5_21](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_211.jpg)
Desktop Environments
GNOME Desktop Environment
Applications
Graphical Internet
Development
Development Libraries
Development Tools
GNOME Software Development
Java Development
Legacy Software Development
X Software Development (Select libxpdevel and openmotif)
Servers
Server Configuration Tools
Web Server
Windows File Server
Base System
Administration Tools
Base
Java
Legacy Software Support (select compat-db)
System Tools (select sysstat)
X Window System
![11gR2onCentos5_22](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_221.jpg)
Click Next to start the installation
![11gR2onCentos5_23](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_231.jpg)
![11gR2onCentos5_24](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_241.jpg)
Click on Reboot button
![11gR2onCentos5_25](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_251.jpg)
Click Forward
![11gR2onCentos5_26](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_261.jpg)
Choose the first option and click Forward
![11gR2onCentos5_27](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_271.jpg)
As we use the virtual machine for testing purpose, disable the firewall and click Forward
![11gR2onCentos5_28](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_281.jpg)
Disable Selinux and click Forward
![11gR2onCentos5_29](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_291.jpg)
Click Forward
![11gR2onCentos5_30](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_301.jpg)
Specify the time and date and click Forward
![11gR2onCentos5_31](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_311.jpg)
We don’t need to create a user so click Forward
![11gR2onCentos5_32](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_321.jpg)
Click Finish button to finish the installation of OEL
![11gR2onCentos5_33](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_331.jpg)
Login with the root user
![11gR2onCentos5_34](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_341.jpg)
From VM menu, select Install VMWare tools
![11gR2onCentos5_35](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_351.jpg)
If the vmware installation cd doesn’t appear automatically, Eject the previous cd (installation of OEL), doublt click on Computer and double click on Cd-rom device. This will initialize the vmware tools cd
![11gR2onCentos5_36](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_361.jpg)
Double click on .rpm package
![11gR2onCentos5_37](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_371.jpg)
Click on Apply to start the installation
![11gR2onCentos5_38](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_381.jpg)
After you set all configurations, open new terminal and run vmware-config-tools executable and finish the installation of vmware tools
![11gR2onCentos5_39](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_391.jpg)
Now let’s create a user and groups for Oracle installation
[code]groupadd oinstall
groupadd dba
useradd -m -g oinstall -G dba -d /home/oracle -s /bin/bash -c "Oracle Software Owner" oracle
passwd oracle
[/code]
![11gR2onCentos5_40](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_401.jpg)
Change the /etc/sysconfig.conf file to add (change) kernel parameters that are required for Oracle installation
The file should be as follows:
[code]
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 2147483648
kernel.shmall = 2097152
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 1048576
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
[/code]
![11gR2onCentos5_41](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_411.jpg)
To make the active in the current session, run /sbin/sysctl -p command
![11gR2onCentos5_42](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_421.jpg)
Change /etc/pam.d/login file and add the followingn line:
[code]
session required pam_limits.so
[/code]
![11gR2onCentos5_43](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_431.jpg)
Change /etc/security/limits.conf and add the following lines:
[code]
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[/code]
![11gR2onCentos5_44](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_4411.jpg)
Create necessary directories for Oracle home
![11gR2onCentos5_45](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_4511.jpg)
Change the entry of .bash_profile file of the oracle user and add following lines:
vi /home/oracle/.bash_profile
[code]
export ORACLE_HOME=/u01/home/oracle/product/11.2.0/db_1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
[/code]
![11gR2onCentos5_46](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_461.jpg)
Now copy downloaded oracle installation files to the /tmp directory
![11gR2onCentos5_47](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_471.jpg)
Switch to the /tmp directory and unzip both files with oracle user. This will create a new folder called “database”
![11gR2onCentos5_47_1](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_47_11.jpg)
Logout from root user, login with oracle, switch to the /tmp/database directory and run installation by running the following executable
[code]
cd /tmp/database
./runInstaller
[/code]
![11gR2onCentos5_48](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_481.jpg)
![11gR2onCentos5_49](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_491.jpg)
Select Create and configure a database and click next
![11gR2onCentos5_50](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_501.jpg)
Select the first option and click Next
![11gR2onCentos5_51](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_5121.jpg)
Provide the name of the database and the password and click next
![11gR2onCentos5_52](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_521.jpg)
Specify the folder for the inventory directory and click Next
![11gR2onCentos5_53](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_531.jpg)
In the prerequisite check we was informed that we need to install three packages as well. So mount the .iso file of the OEL installation, switch to the Server folder
![11gR2onCentos5_54](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_541.jpg)
Install all three packages with rpm -Uvh command as it’s shown above
![11gR2onCentos5_55](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_551.jpg)
Click on Check Again button and you’ll see that those notifications are disappeared. Check “Ignore all” checkbox and click Next
![11gR2onCentos5_56](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_561.jpg)
Click Finish button to start the installation
![11gR2onCentos5_57](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_571.jpg)
![11gR2onCentos5_58](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_581.jpg)
DBCA tools automatically will start to create the database named mydb
![11gR2onCentos5_59](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_591.jpg)
After all, the installation finished successfully. Get the url of the database control
![11gR2onCentos5_60](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_601.jpg)
Open a web browser and paste that url to the address field. Click “or you can add an exception” link
![11gR2onCentos5_61](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_611.jpg)
Click on “Add Exception” button
![11gR2onCentos5_62](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_6211.jpg)
Click Get Certificate and Confirm Security Exception buttons
![11gR2onCentos5_63](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_631.jpg)
Provide the password for sys user and password, select SYSDBA and click Login button
![11gR2onCentos5_64](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_641.jpg)
![11gR2onCentos5_65](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_651.jpg)
Switch to the installation page and run both shell scripts with root user
![11gR2onCentos5_66](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_661.jpg)
![11gR2onCentos5_67](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_671.jpg)
![11gR2onCentos5_68](http://kamranagayev.com/wp-content/uploads/2011/03/11gr2oncentos5_681.jpg)
Open a new terminal, export ORACLE_SID variable and connect to the database
I hope by following my step by step instruction, you’ll also install Oracle 11gR2 on OEL successfully