Social

Monday, February 25, 2013

Oracle 11g Installation on Fedora 14 (Part 1 - Pre-installation)

OK I'll show how to install oracle on Linux environment.So for this I uses Oracle 11g and Fedora 14x64.So in this post I'll explain about what are the requirements and pre configurations that you need before install oracle on fedora.
Hardware Requirements
  • 1 GB of RAM ( minimum )
  • More than 3.5 GB hard disk space
  • Swap space requirement

Software Requirements
  • Operating system requirements
               On Linux x86 and Linux x86-64:
  • Asianux 2 SP2
  • Asianux 3
  • Oracle Linux 4
  • Oracle Linux 5
  • Red Hat Enterprise Linux 4
  • Red Hat Enterprise Linux 5
  • SUSE Linux Enterprise Server 10
  • Kernel Requirements
  • On Asianux 2, Oracle Linux 4, and Red Hat Enterprise Linux 4: 2.6.9 or later
  • On Asianux 3, Oracle Linux 5, and Red Hat Enterprise Linux 5: 2.6.18 or later
  • On SUSE Linux Enterprise Server 10: 2.6.16.21 or later
  •  Configuring Kernel Parameters
               The following parameters should be added to /etc/sysctl.conf as root.
  • Disable SELinux
                Edit /etc/selinux/config as “SELINUX=disabled”

  • Installing required packages
  • yum install binutils
  • yum install compat-libstdc++-33
  • yum install compat-libstdc++-33.i686 
  • yum install elfutils-libelf
  • yum install elfutils-libelf-devel
  • yum install gcc
  • yum install gcc-c++
  • yum install glibc
  • yum install glibc.i686
  • yum install glibc-common
  • yum install glibc-devel
  • yum install glibc-devel.i686
  • yum install glibc-headers
  • yum install ksh
  • yum install libaio
  • yum install libaio.i686
  • yum install libaio-devel
  • yum install libaio-devel.i686
  • yum install libgcc
  • yum install libgcc.i686
  • yum install libstdc++
  • yum install libstdc++.i686
  • yum install libstdc++-devel
  • yum install make
  • yum install numactl-devel
  • yum install sysstat
  • yum install unixODBC
  • yum install unixODBC.i686
  • yum install unixODBC-devel
  • yum install unixODBC-devl.i686
  • Increasing the swap space temporally ( on LVM2 Logical Volume )
               After adding additional storage to the swap space's volume group, it is now possible to extend it. To do so, perform the following procedure (assuming /dev/VolGroup00/LogVol01 is the volume you want to extend by 256MB):



  • Disable swapping for the associated logical volume:
     swapoff -v /dev/VolGroup00/LogVol01
    




  • Resize the LVM2 logical volume by 256 MB:
     lvresize /dev/VolGroup00/LogVol01 -L +256M  
    




  • Format the new swap space:
     mkswap /dev/VolGroup00/LogVol01  
    




  • Enable the extended logical volume:
     swapon -v /dev/VolGroup00/LogVol01  
    



  •                To test if the logical volume was successfully extended, use cat /proc/swaps or free to inspect the swap space.
    •  Other requirements
    •  Add the following lines to the "/etc/security/limits.conf" file
       oracle soft nproc 2047  
       oracle hard nproc 16384  
       oracle soft nofile 1024  
       oracle hard nofile 65536  
    
    •  Create new groups and users
     groupadd –g 800 dba  
     groupadd –g 888 oinstall  
     useradd –u 800 –g dba –G oinstall –d /home/oracle oracle  
    
    •  Editing “.bash_profile”
                   Login as the oracle user and add the following lines at the end of the ".bash_profile" file.
     # Oracle Settings    
     TMP=/tmp; export TMP    
     TMPDIR=$TMP; export TMPDIR   
     ORACLE_HOSTNAME=oel45.localdomain; export ORACLE_HOSTNAME   
     ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE   
     ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1; export ORACLE_HOME   
     ORACLE_SID=DB11G; export ORACLE_SID    
     ORACLE_TERM=xterm; export ORACLE_TERM    
     PATH=/usr/sbin:$PATH; export PATH    
     PATH=$ORACLE_HOME/bin:$PATH; export PATH  
     LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH   
     CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH    
     if [ $USER = "oracle" ]; then    
     if [ $SHELL = "/bin/ksh" ]; then    
     ulimit -p 16384    
     ulimit -n 65536    
     else    
     ulimit -u 16384 -n 65536    
     fi    
     fi   
    
    OR
    or you can do all the above configurations like this,
     cd /etc/yum.repos.d  
     wget http://public-yum.oracle.com/public-yum-ol6.repo  
     yum install oracle-rdbms-server-11gR2-preinstall  
    
    Now you ready to install.

    No comments:

    Post a Comment

     

    Search This Blog

    Most Reading

    Protected by Copyscape Duplicate Content Software

    Facebook Page