Step by Step Installing Oracle 11g R2 On OEL
Step by Step Installing Oracle 11g R2 On OEL
5
Posted by Kamran Agayev A. on March 21, 2011 In this step by step tutorial Im 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
Click Next
Select Linux and Red Hat Enterprise Linux 5 as an OS version and click next
Provide the name of virtual machine and specify the location and click next
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
Click enter
Click Next
Click on Yes
Click Next
Click Next
To install required packages for Oracle installation select Customize now and click Next
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
Click Forward
As we use the virtual machine for testing purpose, disable the firewall and click Forward
Click Forward
If the vmware installation cd doesnt 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
After you set all configurations, open new terminal and run vmware-config-tools executable and finish the installation of vmware tools
Change the /etc/sysconfig.conf file to add (change) kernel parameters that are required for Oracle installation The file should be as follows:
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
Change the entry of .bash_profile file of the oracle user and add following lines: vi /home/oracle/.bash_profile
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
Switch to the /tmp directory and unzip both files with oracle user. This will create a new folder called database
Logout from root user, login with oracle, switch to the /tmp/database directory and run installation by running the following executable
cd /tmp/database ./runInstaller
Provide the name of the database and the password and click next
Specify the folder for the inventory directory and click Next
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
Install all three packages with rpm -Uvh command as its shown above
Click on Check Again button and youll see that those notifications are disappeared. Check Ignore all checkbox and click Next
DBCA tools automatically will start to create the database named mydb
After all, the installation finished successfully. Get the url of the database control
Open a web browser and paste that url to the address field. Click or you can add an exception link
Provide the password for sys user and password, select SYSDBA and click Login button
Switch to the installation page and run both shell scripts with root user
Open a new terminal, export ORACLE_SID variable and connect to the database I hope by following my step by step instruction, youll also install Oracle 11gR2 on OEL successfully Like Be the first to like this post. This entry was posted on March 21, 2011 at 2:45 pm and is filed under Administration. Tagged: 11g, 11gR2, centos, install oracle, linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Nesimi said
March 21, 2011 at 3:01 pm
Hi Ivan. This is OEL, as Ive mixed .iso images of OEL and Centos and thus named vmwware machine as Centos while the installation was on OEL I hope theres no big difference between installing Oracle on both OS 4.
Victor said
March 24, 2011 at 8:36 pm
Hello again Kamran: Congratulations on the 11gR2 OEL tutorial! I have waited for it & now it is here. I will be spending some time here to get everything right. Thanks again. 6.
Victor said
March 26, 2011 at 5:18 pm
Karam: I am noticing that after you make the changes to the /etc/security/limits.conf file, in the next step you are logged in as oracle@localhost:/home/oracle & no longer root@localhost:~. After changing the /etc/security/limits.conf file, should one reboot machine and login as oracle & not as root? 7.
You dont need to reboot. You can change the user to using su oracle and continue the installation 8.
fritz said
April 1, 2011 at 6:38 pm
when i connect with ssh to the server, the ulimits are not set correctly, only when doing a su. ive set limits.conf, checked, pam config, and sshd_config, everything looks fine. so, whats wrong? thx 9.
Dear Fritz To change those configurations you need to connect to the server with a root user 10.
Iss said
April 9, 2011 at 11:00 pm
Hello Kamran, Once again a remarkable job. I have learned a lot from your tutorials. its very easy to follow and very precise. keep up the good work thanks 11.
Victor said
April 21, 2011 at 3:50 am
Hello Karam: I am at the final step of this installation, and everything has worked perfectly up to this last step, including OEM. After I open a new terminal, export ORACLE_SID variable and connect to the database:
[oracle@localhost ~]$ sqlplus / as sysdba bash: sqlplus: command not found Contents of my .bash_profile file: PATH=$PATH:$HOME/bin export PATH 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 I also changed this to: PATH=$PATH:$HOME/bin export PATH export ORACLE_HOME=/u01/home/oracle/product/11.2.0/dbhome_1 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib export PATH=$ORACLE_HOME/bin:$PATH After I got the bash: sqlplus: command not found message in terminal, & got the identical message again. My software location is: /u01/app/oracle/product/11.2.0/dbhome_1 I executed the following configuration scripts as root user: /u01/app/oraInventory/orainstRoot.sh /u01/home/oracle/product/11.2.0/dbhome_1/root.sh Where did I go wrong? Regards
12.
Victor said
May 5, 2011 at 6:19 am
**UPDATE** Created a second installation successfully. USED: Oracle VM VirtualBox 4.06 Oracle Enterprise Linux 5.6 Oracle 11gR2 13.
santosh said
May 16, 2011 at 5:25 am
Hi Kamran, Thanks much for detailed explanation, I didnt find the OEL in ISO image format to download on edelivery.oracle.com site, where can I donload ISO image for OEL ? Also is there anyway to install from OEL from Zipfiles (disks) which I downlaoded to my laptop ( not burned to CDs ) Please guide me. Thanks
14.
Dear Santosh Check the following link to download OEL : https://edelivery.oracle.com/linux Moreover, install Vmware as Ive shown and mount the downloaded .ISO file to the vmware. In that case you dont need to burn it Good Luck! 15.
sai said
May 30, 2011 at 9:59 pm
Hi Kamran, I have unzipped both the zip folders of 11gr2 software into single folder database. When I am trying to install the Oracle Software I am getting the following error Unable to find the file /u01/app/oracle/product/11.2.0/db_1/owb/external/oc4j_applications/applications/WFALSNRSVCApp.ear Can you please guide me how to solve this issue.
Hi Saj This is because you didnt extract both zip files under the same directory. Check it again and let me know 18.
ST said
June 2, 2011 at 2:28 am
Dear Kamran,
I agree with most people who posted here. Your tutorial is precise and easy to follow. thanks for sharing the knowledge. We have CentOS4.8 running in a VM. I have installed Oracle 10g (10.2.0.1.0) on this Linux CentOS4.8 virtual machine following your Oracle 10g install guide on CentOS. It worked beautifully. Now, On the same box, I just installed Oracle 11g (11.2.0.2.0) following this guide you wrote. In the end, it says Oracle has been installed successfully. However, when I tried to start the EMConsole, I did emctl start dbconsole OC4J Configuration issue. /opt/oracle/oraclehome_112/db_1/oc4j/j2ee/OC4J_DBConsole_myhostname_p not found. where p is the instance name. and this directory, OC4J_DBConsole_myhostname_p, does not exist on the file system. My setup: Oracle 10g resides in its oracle_home, which is different from 11gs oracle_home. When installing 11g, I have chosen the option Create the startup database and I have created same database (instance = p), running on the same port 1521 (as the instance installed under 10g); however, during my install of 11g, I did shutdown oracle 10g completely (including the listener, sqlplus and EM console). for 11g, I can sqlplus /nolog SQL>conn / as sysdba; SQL>startup; SQL>select status from v$instance; OPEN SQL>select * from v$version; Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 Production listener is up and running. The only thing that fails is that Enterprise Manager could not be started.
Do you off the top of your head know what might be causing my issue? Any pointers would be greatly appreciated. thanks, ST 19.
ST said
June 3, 2011 at 6:16 pm
Kamran, Dont worry about it. I resolved it. I did ./emca -deconfig dbcontrol db -repos drop ./emca -config dbcontrol db -repos create then, I could start dbconsole fine. thanks ST 20.
Nice tutorial, overall looks like not much changed from 10g installation to 11g except for some minor changes. Overall good job, though would recommend a small thing.. may be u can type the instruction above the screenshot, instead of typing it below screenshot. 21.
Dear Kamran, Thank you for this priceless tutorial, I have successfully installed both OEL 5 and Oracle 11gR2 into Oracle Virtualbox., but my question is how am I gonna make Oracle 2 start atomically with Linux. because last time I restart to my system and I couldnt started Oracle database. Thank you again. 23.
Dear Yunus, check my following blog post and replace commas when you copy/paste the code from wordpress: http://kamranagayev.wordpress.com/2008/12/22/automatically-startup-and-shutdown-database-in-linux-os/ 24.
Paracha said
July 26, 2011 at 2:39 pm
Xelent 25.
Zayad said
August 16, 2011 at 12:11 am
Thanks Kamran for installation steps it was helpful I am getting some package related error can you let me know from where can I download the package and steps to apply them as i am completely new to linux environment I am installing it on Oracle Enterprise Linux.Pls see below package error Checking for sysstat-7.0.0; Not found. Failed <<<< Checking for compat-libstdc++-33-3.2.3; found compat-libstdc++-33-3.2.3-61-i386. Passed Checking for libgcc-4.1.1; found libgcc-4.1.2-48.el5-i386. Passed Checking for libstdc++-devel-4.1.1; found libstdc++-devel-4.1.2-48.el5-i386. Passed Checking for unixODBC-2.2.11; Not found. Failed <<<< Checking for unixODBC-devel-2.2.11; Not found. Failed <<<< Check complete. The overall result of this check is: Failed <<<< Problem: Some packages required for the Oracle Database 11g to function properly are missing (see above). Recommendation: Install the required packages before continuing with the installation.
26.
Zayad said
August 16, 2011 at 4:54 pm
I have resolved it no need to reply Thanks Kamran for your steps in installation 27.
Zayad said
August 18, 2011 at 7:26 pm
Hello Kamran, I am unable to resolve the below error for last 2 days can you pls help Error Checking Network Configuration requirements Check complete. The overall result of this check is: Not executed <<<< Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses. However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly. See the Installation Guide for more details on installing the software on systems configured with DHCP. My etc\hosts file is 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 192.168.0.1 localhost.localdomain localhost
network-scripts\etho DEVICE=eth0 BOOTPROTO=none HWADDR=00:1E:0B:C8:24:78 ONBOOT=yes TYPE=Ethernet NETMASK=255.255.255.0 IPADDR=192.168.0.1 USERCTL=no PEERDNS=yes GATEWAY=255.255.255.0 IPV6INIT=no