SlideShare a Scribd company logo
Installing Oracle Database 11g Release 2 on Linu...      http://oracleref.wordpress.com/2009/10/08/install...




               Home
               Metalink
               Oracle 11gR2
               Oracle 11gR2 +++
               Oracle Tops 5


          Oracle DB 10g & 11g Tops
          " Si j'étais riche, je pisserais tout le temps. " Alphonse Allais (1854-1905)

          October 8, 2009

          Installing Oracle Database 11g Release 2 on
          Linux x86 (RHEL and OEL 5 covered)
          Posted by aki oracleref under Oracle Technical References | Tags: 11g, 11gr2,
          database, install, linux, oel5, rhel5 |
          Leave a Comment



          1. Overview
          For the purpose of education and evaluation only, we provide a walkthrough of
          installing Oracle Database 11g Release 2 on Linux. We take the approach of
          using minimum number of steps for accomplishing this installation. Note that
          this guide does not cover the installation of the Linux operating system.

          This guide assumes a server with the following hardware requirements:

               A single CPU,
               1024 Mb of RAM,
               and one disk drive (IDE, SCSI, or FireWire) with at least 7 Gb of free
               space:

                 1024 Mb of disk space in the /tmp directory,

                 3.8 Gb of local disk space for the database software,

                 and about 1.5 Gb of swap disk space.

          This procedure is based on Metalink Note: 880936.1: Requirements for
          Installing Oracle 11gR2 RDBMS on RHEL (and OEL) 5 on 32-bit x86


1 of 20                                                                                    21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...    http://oracleref.wordpress.com/2009/10/08/install...


          As preliminary step, let us verify the prerequisites for installing Oracle 11gR2
          RDBMS:

               Required kernel version:

                 Red Hat Enterprise Linux Server 5.2 (or greater), which is Kernel
                 2.6.18-92 or ewer.

               Required packages versions:

                 C.f. Oracle Metalink Note: 880936.1

               Swap Disk Space Considerations:

                 Installing Oracle Database 11g Release 2 requires a minimum of
                 1024Mb of memory. Swap disk space should be proportional to the
                 system’s physical memory:

                 With RAM as 1024 Mb to 2048 Mb, Swap Disk Space should be 1.5 x
                 RAM

          To check the amount of memory we have:

             $ cat /proc/meminfo | grep MemTotal

             MemTotal:       1048576 kB

          To check the amount of swap space we have allocated:

             $ cat /proc/meminfo | grep SwapTotal

             SwapTotal:      1572864 kB



          2. Configuring Linux for the Installation of
          Oracle Database 11g Release 2
          This section walks through the steps required to configure Linux for installing
          Oracle Database 11g Release 2. These steps are written for Bourne, Korn and
          bash shells.Firstly, open a terminal window and login as the root user.

          2.1 Setting Kernel Parameters

          The kernel parameters presented in this section are recommended values as
          documented by Oracle Metalink note 880936.1.


2 of 20                                                                                  21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...   http://oracleref.wordpress.com/2009/10/08/install...


          i. Setting Shared Memory

          Setting SHMMAX

          We can determine the value of SHMMAX by performing the following:

             $ cat /proc/sys/kernel/shmmax

             536870912

          Should you need to alter the default setting for SHMMAX without rebooting the
          machine:

             $ sysctl -w kernel.shmmax=536870912

          Should you need to make this change permanent, insert the kernel parameter in
          the /etc/sysctl.conf startup file:

             $ echo “kernel.shmmax=536870912″ >> /etc/sysctl.conf

          Setting SHMMNI

          We can determine the value of SHMMNI by performing the following:

             $ cat /proc/sys/kernel/shmmni

             4096

          The default setting for SHMMNI should be adequate for the Oracle11g Release
          2 installation.

          Setting SHMALL

          The default size of SHMALL is 2097152 and can be queried using:

             $ cat /proc/sys/kernel/shmall

             2097152

          The default setting for SHMALL should be adequate for the Oracle11g Release
          2 installation.

          To determine all shared memory limits:

             $ ipcs -lm



3 of 20                                                                                 21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...   http://oracleref.wordpress.com/2009/10/08/install...


             —— Shared Memory Limits ——–

             max number of segments = 4096

             max seg size (kbytes) = 4194303

             max total shared memory (kbytes) = 1073741824

             min seg size (bytes) = 1

          ii. Setting Semaphore Kernel Parameters

          We can alter the default setting for all semaphore settings without rebooting the
          machine by making the changes directly using the following command:

             $ sysctl -w kernel.sem=”250 32000 100 128″

          We should then make this change permanent by inserting the kernel parameter
          in the /etc/sysctl.conf startup file:

             $ echo “kernel.sem=250 32000 100 128″ >> /etc/sysctl.conf

          To determine all semaphore limits:

             $ ipcs -ls

             —— Semaphore Limits ——–

             max number of arrays = 128

             max semaphores per array = 250

             max semaphores system wide = 32000

             max ops per semop call = 32

             semaphore max value = 32767

          We can also use the following command:

             $ cat /proc/sys/kernel/sem

             250    32000 100          128

          iii. Setting File Handles

          To determine the maximum number of file handles for the entire system:


4 of 20                                                                                 21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...    http://oracleref.wordpress.com/2009/10/08/install...


             $ cat /proc/sys/fs/file-max

             6815744

          Should you need to alter the default setting for the maximum number of file
          handles without rebooting the machine:

             $ sysctl -w fs.file-max=6815744

          Should you need to make this change permanent, insert the kernel parameter in
          the /etc/sysctl.conf startup file:

             $ echo “fs.file-max=6815744″ >> /etc/sysctl.conf

          We can query the current usage of file handles by using the following:

             $ cat /proc/sys/fs/file-nr

             825    0      6815744

          iv. Setting IP Local Port Range

          We should configure the system to allow a local port range of 9000 through
          65500 as recommended by Oracle.

          We Use the following command to determine the value of ip_local_port_range:

             $ cat /proc/sys/net/ipv4/ip_local_port_range

             9000 65500

          Should you need to alter the default setting for the local port range without
          rebooting the machine:

             $ sysctl -w net.ipv4.ip_local_port_range=”9000 65500″

          Should you need to make this change permanent, insert the kernel parameter in
          the /etc/sysctl.conf startup file:

             $ echo “net.ipv4.ip_local_port_range = 9000 65500″ >> /etc/sysctl.conf

          v. Activating All Kernel Parameters for the System

          At this point, we have covered all the required Linux kernel parameters needed
          for a successful Oracle Database 11gR2 installation and configuration.

          We can reboot to ensure all of these parameters are set in the kernel or we can


5 of 20                                                                                  21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...   http://oracleref.wordpress.com/2009/10/08/install...


          run the following command as root.

             $ /sbin/sysctl –p

             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

             net.core.rmem_default = 262144

             net.core.rmem_max = 4194304

             net.core.wmem_default = 262144

             net.core.wmem_max = 1048576

             kernel.shmmax = 536870912

             kernel.sem = 250 32000 100 128

             fs.file-max = 6815744

             net.ipv4.ip_local_port_range = 9000 65500

          2.2 Creating Groups and User for Oracle

          Open a terminal window and login as the root user.

             $ /usr/sbin/groupadd -g 501 oinstall

             $ /usr/sbin/groupadd -g 502 dba

             $ /usr/sbin/groupadd -g 503 oper

             $ /usr/sbin/groupadd -g 504 asm



6 of 20                                                                                 21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...   http://oracleref.wordpress.com/2009/10/08/install...


             $ /usr/sbin/groupadd -g 505 asmdba

             $ /usr/sbin/useradd -m -u 501 -g oinstall -G dba,oper,asm, asmdba -d
             /home/oracle -s /bin/bash -c “Oracle Software Owner” oracle

             $ id oracle

             uid=501(oracle) gid=501(oinstall) groups=501(oinstall), 502(dba),
             503(oper), 504(asm), 505(asmdba)

          Set the password for the oracle account:

             $ /usr/sbin/passwd oracle

          Verify That the User nobody exists

             $ id nobody

             uid=99(nobody) gid=99(nobody) groups=99(nobody)

          2.3 Creating the Oracle Base Directory

          Create the directory for the software installation and assign ownership to
          oracle:oinstall.

             $ mkdir -p /u01/app/oracle

             $ chown -R oracle:oinstall /u01/app

             $ chmod -R 775 /u01/app

              /u01 owned by root.
              /u01/app owned by oracle:oinstall with 775 permissions.
              /u01/app/oracle owned by oracle:oinstall with 775 permissions.

          2.4 Setting /home/oracle/.bash_profile for the Oracle user

             # .bash_profile

             # Get the aliases and functions

             if [ -f ~/.bashrc ]; then

             . ~/.bashrc

             fi



7 of 20                                                                                 21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...      http://oracleref.wordpress.com/2009/10/08/install...


             umask 022

             # User specific environment and startup programs

             export ORACLE_BASE=/u01/app/oracle

             export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1

             export PATH=/usr/sbin:$PATH

             export PATH=$ORACLE_HOME/bin:$PATH

             export ORACLE_TERM=xterm

             export LD_LIBRARY_PATH=$ORACLE_HOME/lib

             export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib

             export CLASSPATH=$ORACLE_HOME/JRE

             export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib

             export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib

             export TEMP=/tmp

             export TMPDIR=/tmp

          2.5 Setting Shell Limits for the Oracle User

          To improve the performance of the software on Linux systems, Oracle
          recommends to increase the following shell limits for the oracle user:

          Shell Limit                                    Item in limits.conf      Hard Limit

               Maximum number

          of open file descriptors                     nofile               65536

               Maximum number

          of processes available to a single user      nproc                 16384

          To make these changes, the following is run as root:

             $ cat >> /etc/security/limits.conf <<EOF

             oracle soft nproc 2047


8 of 20                                                                                    21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...      http://oracleref.wordpress.com/2009/10/08/install...


             oracle hard nproc 16384

             oracle soft nofile 1024

             oracle hard nofile 65536

             EOF

             $ cat >> /etc/pam.d/login <<EOF

             session    required      /lib/security/pam_limits.so

             session    required      pam_limits.so

             EOF

          Update the default shell startup file for the “oracle” UNIX account.

          For the Bourne, Bash, or Korn shell, we add the following lines to the
          /etc/profile file by running the following command:

             cat >> /etc/profile <<EOF

             if [ $USER = "oracle" ]; then

             if [ $SHELL = "/bin/ksh" ]; then

             ulimit -p 16384

             ulimit -n 65536

             else

             ulimit -u 16384 -n 65536

             fi

             umask 022

             fi

             EOF



          3. Installing Oracle Database 11g Release 2
          Login as operating system user “oracle” to the Linux box. To install the Oracle


9 of 20                                                                                    21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...      http://oracleref.wordpress.com/2009/10/08/install...


           Database 11gR2 software on linux, you must user the GUI installer.From OTN
           website, we downloaded Oracle 11gR2 software:

           1. Oracle Database 11g Release 2 (11.2.0.1.0) for Linux x86

              linux_11gR2_database_1of2.zip (1,285,396,902 bytes)

              linux_11gR2_database_2of2.zip (995,359,177 bytes)

           2. Oracle Database 11gR2 Examples:

              linux_11gR2_examples.zip (505,570,137 bytes)

           3. Oracle De-install Utility (11.2.0.1.0) for Linux x86

              linux_11gR2_deinstall.zip (124,457,540 bytes)

           As the “oracle” user account, we extracted the three downloaded packages to a
           temporary directory.

           We used “/home/oracle/wkdir/11gr2″.

              $ su – oracle

              $ mkdir -p /home/oracle/wkdir/11gr2

              $ cd /home/oracle/wkdir/11gr2

              $ unzip linux_11gR2_database_1of2.zip

              $ unzip linux_11gR2_database_2of2.zip

           Installing the Oracle Database 11gR2 software procedure
           step-by step:

              $ cd /home/oracle/wkdir/11gr2

              $ cd database

              $ ./runInstaller




10 of 20                                                                                   21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...   http://oracleref.wordpress.com/2009/10/08/install...




            Make sure the Install database software only is selected and click Next.



11 of 20                                                                                21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...   http://oracleref.wordpress.com/2009/10/08/install...




            Make sure the Single instance database installation is selected and
            click Next.




            At the Language Selection screen, make sure English is on the list of
            Selected Languages and click Next.




12 of 20                                                                                21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...   http://oracleref.wordpress.com/2009/10/08/install...




            Make sure the Installation Type Enterprise Edition is selected and
            click Next.




13 of 20                                                                                21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...   http://oracleref.wordpress.com/2009/10/08/install...




            At the Installation Location window, make sure that the Oracle Base and
            Oracle Home are set and click Next.




            You need to specify your Inventory Directory. The location should be set to
            /u01/app/oraInventory. Accept the default Operating System Group Name,
            oinstall. Click Next.




14 of 20                                                                                21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...   http://oracleref.wordpress.com/2009/10/08/install...




            Product-specific Prerequisite Checks.




15 of 20                                                                                21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...   http://oracleref.wordpress.com/2009/10/08/install...




            At the Summary screen, review what will be installed and click Finish.




            You will see the progress window.




16 of 20                                                                                21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...   http://oracleref.wordpress.com/2009/10/08/install...




             When prompted, execute /u01/app/orainstRoot.sh and /u01/app/oracle
             /product/11.2.0/dbhome_1/root.sh as the root user and then click Ok.

             End of Installation




           4. Verifying Oracle Database 11g Release 2
           Software Installation
             To verify the Oracle Database 11gR2 software installation on Linux, open a
             terminal window as the user oracle, and run:

                 $ /u01/app/oracle/product/11.2.0/dbhome_1/oui/bin/runInstaller




17 of 20                                                                                21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...    http://oracleref.wordpress.com/2009/10/08/install...




           5. De-Installing Oracle Database 11g Release 2
             With Oracle Database 11gR2, Oracle Corp. delivers a new utility named
             Oracle De-install Utility.

             From OTN, download and unzip the following software:

             Oracle De-install Utility (11.2.0.1.0) for Linux x86

                 linux_11gR2_deinstall.zip (124,457,540 bytes)

             Its syntax is as follows:




             To deinstall the Oracle Database 11gR2 software on Linux, open a terminal
             window as the user oracle, and run:

                 $ /home/oracle/wkdir/11gr2/deinstall/deinstall –home $ORACLE_HOME
                 –local




18 of 20                                                                                 21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...                              http://oracleref.wordpress.com/2009/10/08/install...



                                                  Download Monitor
                                                  Monitor & block user downloads in real time.
                                                  Download 30 day Trial!
                                                  www.gfi.com/web-monitor


                                                  Cursos LINUX LPI - GREEN
                                                  Modo texto/terminal, Debian, RedHat Sistemas,
                                                  Redes, Samba, Firewall
                                                  www.green.com.br


                                                  Learn Languages for Free
                                                  Free Online Courses for English Spanish, French,
                                                  Chinese and More!
                                                  www.Livemocha.com




              Like    Be the first to like this post.




           Leave a Reply

            Enter your comment here...




                     Guest               Log In             Log In          Log In



                                Email (required)                                           Your email address will not be published.


                                Name (required)


                                Website




               Notify me of follow-up comments via email.
                                                                                                                   Post Comment

               Notify me of new posts via email.




19 of 20                                                                                                                     21/06/2011 13:35
Installing Oracle Database 11g Release 2 on Linu...   http://oracleref.wordpress.com/2009/10/08/install...



           Archived Entry
               Post Date :
               October 8, 2009 at 1:22 PM
               Category :
               Oracle Technical References
               Tags: 11g, 11gr2, database, install, linux, oel5, rhel5
               Do More :
               You can leave a response, or trackback from your own site.

           Blog at WordPress.com. — Theme: Connections by www.vanillamist.com.




20 of 20                                                                                21/06/2011 13:35

More Related Content

What's hot (18)

PDF
9i hp relnotes
Anil Pandey
 
PDF
Oracle 12c r1 installation on solaris 11.1
Laurent Leturgez
 
PDF
Open-E DSS V7 Active-Active Load Balanced iSCSI HA Cluster (with bonding)
open-e
 
PDF
Open-E DSS V7 Remote Snapshot Control with CLI/API
open-e
 
PDF
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
maclean liu
 
PDF
Open-E DSS V7 Asynchronous Data Replication over a LAN
open-e
 
PDF
Open-E DSS V7 Synchronous Volume Replication over a LAN
open-e
 
PDF
Introduction to Stacki at Atlanta Meetup February 2016
StackIQ
 
DOCX
RAC 12c
Waseem Shahzad
 
PDF
Installing oracle grid infrastructure and database 12c r1
Voeurng Sovann
 
PDF
Salesforce at Stacki Atlanta Meetup February 2016
StackIQ
 
PDF
Habilitar repositorio EPEL RHEL
Moisés Elías Araya
 
DOC
Enterprise Manager Cloud Control 12c Release 4 - Installation
Ivica Arsov
 
PDF
Known basic of NFV Features
Raul Leite
 
PDF
Oracle11g On Fedora14
kmsa
 
PDF
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
Equnix Business Solutions
 
PDF
还原Oracle中真实的cache recovery
maclean liu
 
PPSX
Oracle 11g R2 RAC implementation and concept
Santosh Kangane
 
9i hp relnotes
Anil Pandey
 
Oracle 12c r1 installation on solaris 11.1
Laurent Leturgez
 
Open-E DSS V7 Active-Active Load Balanced iSCSI HA Cluster (with bonding)
open-e
 
Open-E DSS V7 Remote Snapshot Control with CLI/API
open-e
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
maclean liu
 
Open-E DSS V7 Asynchronous Data Replication over a LAN
open-e
 
Open-E DSS V7 Synchronous Volume Replication over a LAN
open-e
 
Introduction to Stacki at Atlanta Meetup February 2016
StackIQ
 
Installing oracle grid infrastructure and database 12c r1
Voeurng Sovann
 
Salesforce at Stacki Atlanta Meetup February 2016
StackIQ
 
Habilitar repositorio EPEL RHEL
Moisés Elías Araya
 
Enterprise Manager Cloud Control 12c Release 4 - Installation
Ivica Arsov
 
Known basic of NFV Features
Raul Leite
 
Oracle11g On Fedora14
kmsa
 
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
Equnix Business Solutions
 
还原Oracle中真实的cache recovery
maclean liu
 
Oracle 11g R2 RAC implementation and concept
Santosh Kangane
 

Viewers also liked (17)

PPTX
Finit Solutions - What is New in Hyperion Financial Management 11.1.2.2
finitsolutions
 
PDF
Solaris 10-installation-guide-solaris-flash-archives2794
nirmal1984
 
PPTX
IT Certifications in Demand for 2012 | Best Certs to Get a Job
ITCareerFinder
 
PPT
03 Ch3 Notes Revised
guest6f408c
 
PPT
Entity Relationship Diagram2
sadeenedian08
 
PPT
dbms
royalrao85
 
PPT
Database Concepts
satheesh hendhino
 
PPS
E R Model Diagram of DBMS
Muhammad Usman
 
PPT
Entity relationship diagram (erd)
tameemyousaf
 
PPT
E R Diagram
guestb401c8
 
PDF
Tips and Tricks of Toad for Oracle 10.6
Dsunte Wilson
 
PPTX
Solaris vs Linux
Grigale LTD
 
PPT
Data modeling using the entity relationship model
Jafar Nesargi
 
DOC
SQL Joins
Paul Harkins
 
PPT
Files Vs DataBase
Dr. C.V. Suresh Babu
 
PPTX
Entity Relationship Model
Slideshare
 
PPTX
Database management functions
yhen06
 
Finit Solutions - What is New in Hyperion Financial Management 11.1.2.2
finitsolutions
 
Solaris 10-installation-guide-solaris-flash-archives2794
nirmal1984
 
IT Certifications in Demand for 2012 | Best Certs to Get a Job
ITCareerFinder
 
03 Ch3 Notes Revised
guest6f408c
 
Entity Relationship Diagram2
sadeenedian08
 
Database Concepts
satheesh hendhino
 
E R Model Diagram of DBMS
Muhammad Usman
 
Entity relationship diagram (erd)
tameemyousaf
 
E R Diagram
guestb401c8
 
Tips and Tricks of Toad for Oracle 10.6
Dsunte Wilson
 
Solaris vs Linux
Grigale LTD
 
Data modeling using the entity relationship model
Jafar Nesargi
 
SQL Joins
Paul Harkins
 
Files Vs DataBase
Dr. C.V. Suresh Babu
 
Entity Relationship Model
Slideshare
 
Database management functions
yhen06
 
Ad

Similar to Install oracle11gr2 rhel5 (20)

PDF
Oracle11g on fedora14
Khalid Matar Albuflasah
 
ODP
Asian Spirit 3 Day Dba On Ubl
newrforce
 
PDF
Oracle database 12c client quick installation guide 3
bupbechanhgmail
 
PDF
Oracle database 12c client quick installation guide 8
bupbechanhgmail
 
PDF
Oracle database 12c client quick installation guide
bupbechanhgmail
 
PDF
Oracle 10-g-recommendations-v1 2
unixadminrasheed
 
PDF
9i lin relnotes
Anil Pandey
 
PDF
Deploying Oracle 11g R2 on Linux RHEL6
Mc Cloud
 
PDF
Oracle database 12c client quick installation guide 7
bupbechanhgmail
 
PDF
Common linuxcommandspocketguide07
Teja Bheemanapally
 
PDF
Common linuxcommandspocketguide07
Teja Bheemanapally
 
PDF
Rhel Tuningand Optimizationfor Oracle V11
Yusuf Hadiwinata Sutandar
 
PPT
les_02.ppt of the Oracle course train_2 file
YulinLiu27
 
PDF
Oracle database 12c client quick installation guide 4
bupbechanhgmail
 
DOCX
Installing 12c R1 database on oracle linux
Anar Godjaev
 
PDF
Oracle database 12c client quick installation guide 2
bupbechanhgmail
 
PDF
Oracle 11gr2 on_rhel6_0 - Document from Red Hat Inc
Filipe Miranda
 
DOCX
exp_1_20bca1108(kashish_dixit.docx
ApkaAmitbro
 
DOC
Oracle EBS R12.1.3_Installation_linux(64bit)_Pan_Tian
Pan Tian
 
PDF
Oracle Linux and Oracle Database - A Trusted Combination
Guatemala User Group
 
Oracle11g on fedora14
Khalid Matar Albuflasah
 
Asian Spirit 3 Day Dba On Ubl
newrforce
 
Oracle database 12c client quick installation guide 3
bupbechanhgmail
 
Oracle database 12c client quick installation guide 8
bupbechanhgmail
 
Oracle database 12c client quick installation guide
bupbechanhgmail
 
Oracle 10-g-recommendations-v1 2
unixadminrasheed
 
9i lin relnotes
Anil Pandey
 
Deploying Oracle 11g R2 on Linux RHEL6
Mc Cloud
 
Oracle database 12c client quick installation guide 7
bupbechanhgmail
 
Common linuxcommandspocketguide07
Teja Bheemanapally
 
Common linuxcommandspocketguide07
Teja Bheemanapally
 
Rhel Tuningand Optimizationfor Oracle V11
Yusuf Hadiwinata Sutandar
 
les_02.ppt of the Oracle course train_2 file
YulinLiu27
 
Oracle database 12c client quick installation guide 4
bupbechanhgmail
 
Installing 12c R1 database on oracle linux
Anar Godjaev
 
Oracle database 12c client quick installation guide 2
bupbechanhgmail
 
Oracle 11gr2 on_rhel6_0 - Document from Red Hat Inc
Filipe Miranda
 
exp_1_20bca1108(kashish_dixit.docx
ApkaAmitbro
 
Oracle EBS R12.1.3_Installation_linux(64bit)_Pan_Tian
Pan Tian
 
Oracle Linux and Oracle Database - A Trusted Combination
Guatemala User Group
 
Ad

Install oracle11gr2 rhel5

  • 1. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... Home Metalink Oracle 11gR2 Oracle 11gR2 +++ Oracle Tops 5 Oracle DB 10g & 11g Tops " Si j'étais riche, je pisserais tout le temps. " Alphonse Allais (1854-1905) October 8, 2009 Installing Oracle Database 11g Release 2 on Linux x86 (RHEL and OEL 5 covered) Posted by aki oracleref under Oracle Technical References | Tags: 11g, 11gr2, database, install, linux, oel5, rhel5 | Leave a Comment 1. Overview For the purpose of education and evaluation only, we provide a walkthrough of installing Oracle Database 11g Release 2 on Linux. We take the approach of using minimum number of steps for accomplishing this installation. Note that this guide does not cover the installation of the Linux operating system. This guide assumes a server with the following hardware requirements: A single CPU, 1024 Mb of RAM, and one disk drive (IDE, SCSI, or FireWire) with at least 7 Gb of free space: 1024 Mb of disk space in the /tmp directory, 3.8 Gb of local disk space for the database software, and about 1.5 Gb of swap disk space. This procedure is based on Metalink Note: 880936.1: Requirements for Installing Oracle 11gR2 RDBMS on RHEL (and OEL) 5 on 32-bit x86 1 of 20 21/06/2011 13:35
  • 2. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... As preliminary step, let us verify the prerequisites for installing Oracle 11gR2 RDBMS: Required kernel version: Red Hat Enterprise Linux Server 5.2 (or greater), which is Kernel 2.6.18-92 or ewer. Required packages versions: C.f. Oracle Metalink Note: 880936.1 Swap Disk Space Considerations: Installing Oracle Database 11g Release 2 requires a minimum of 1024Mb of memory. Swap disk space should be proportional to the system’s physical memory: With RAM as 1024 Mb to 2048 Mb, Swap Disk Space should be 1.5 x RAM To check the amount of memory we have: $ cat /proc/meminfo | grep MemTotal MemTotal: 1048576 kB To check the amount of swap space we have allocated: $ cat /proc/meminfo | grep SwapTotal SwapTotal: 1572864 kB 2. Configuring Linux for the Installation of Oracle Database 11g Release 2 This section walks through the steps required to configure Linux for installing Oracle Database 11g Release 2. These steps are written for Bourne, Korn and bash shells.Firstly, open a terminal window and login as the root user. 2.1 Setting Kernel Parameters The kernel parameters presented in this section are recommended values as documented by Oracle Metalink note 880936.1. 2 of 20 21/06/2011 13:35
  • 3. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... i. Setting Shared Memory Setting SHMMAX We can determine the value of SHMMAX by performing the following: $ cat /proc/sys/kernel/shmmax 536870912 Should you need to alter the default setting for SHMMAX without rebooting the machine: $ sysctl -w kernel.shmmax=536870912 Should you need to make this change permanent, insert the kernel parameter in the /etc/sysctl.conf startup file: $ echo “kernel.shmmax=536870912″ >> /etc/sysctl.conf Setting SHMMNI We can determine the value of SHMMNI by performing the following: $ cat /proc/sys/kernel/shmmni 4096 The default setting for SHMMNI should be adequate for the Oracle11g Release 2 installation. Setting SHMALL The default size of SHMALL is 2097152 and can be queried using: $ cat /proc/sys/kernel/shmall 2097152 The default setting for SHMALL should be adequate for the Oracle11g Release 2 installation. To determine all shared memory limits: $ ipcs -lm 3 of 20 21/06/2011 13:35
  • 4. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... —— Shared Memory Limits ——– max number of segments = 4096 max seg size (kbytes) = 4194303 max total shared memory (kbytes) = 1073741824 min seg size (bytes) = 1 ii. Setting Semaphore Kernel Parameters We can alter the default setting for all semaphore settings without rebooting the machine by making the changes directly using the following command: $ sysctl -w kernel.sem=”250 32000 100 128″ We should then make this change permanent by inserting the kernel parameter in the /etc/sysctl.conf startup file: $ echo “kernel.sem=250 32000 100 128″ >> /etc/sysctl.conf To determine all semaphore limits: $ ipcs -ls —— Semaphore Limits ——– max number of arrays = 128 max semaphores per array = 250 max semaphores system wide = 32000 max ops per semop call = 32 semaphore max value = 32767 We can also use the following command: $ cat /proc/sys/kernel/sem 250 32000 100 128 iii. Setting File Handles To determine the maximum number of file handles for the entire system: 4 of 20 21/06/2011 13:35
  • 5. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... $ cat /proc/sys/fs/file-max 6815744 Should you need to alter the default setting for the maximum number of file handles without rebooting the machine: $ sysctl -w fs.file-max=6815744 Should you need to make this change permanent, insert the kernel parameter in the /etc/sysctl.conf startup file: $ echo “fs.file-max=6815744″ >> /etc/sysctl.conf We can query the current usage of file handles by using the following: $ cat /proc/sys/fs/file-nr 825 0 6815744 iv. Setting IP Local Port Range We should configure the system to allow a local port range of 9000 through 65500 as recommended by Oracle. We Use the following command to determine the value of ip_local_port_range: $ cat /proc/sys/net/ipv4/ip_local_port_range 9000 65500 Should you need to alter the default setting for the local port range without rebooting the machine: $ sysctl -w net.ipv4.ip_local_port_range=”9000 65500″ Should you need to make this change permanent, insert the kernel parameter in the /etc/sysctl.conf startup file: $ echo “net.ipv4.ip_local_port_range = 9000 65500″ >> /etc/sysctl.conf v. Activating All Kernel Parameters for the System At this point, we have covered all the required Linux kernel parameters needed for a successful Oracle Database 11gR2 installation and configuration. We can reboot to ensure all of these parameters are set in the kernel or we can 5 of 20 21/06/2011 13:35
  • 6. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... run the following command as root. $ /sbin/sysctl –p 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 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 kernel.shmmax = 536870912 kernel.sem = 250 32000 100 128 fs.file-max = 6815744 net.ipv4.ip_local_port_range = 9000 65500 2.2 Creating Groups and User for Oracle Open a terminal window and login as the root user. $ /usr/sbin/groupadd -g 501 oinstall $ /usr/sbin/groupadd -g 502 dba $ /usr/sbin/groupadd -g 503 oper $ /usr/sbin/groupadd -g 504 asm 6 of 20 21/06/2011 13:35
  • 7. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... $ /usr/sbin/groupadd -g 505 asmdba $ /usr/sbin/useradd -m -u 501 -g oinstall -G dba,oper,asm, asmdba -d /home/oracle -s /bin/bash -c “Oracle Software Owner” oracle $ id oracle uid=501(oracle) gid=501(oinstall) groups=501(oinstall), 502(dba), 503(oper), 504(asm), 505(asmdba) Set the password for the oracle account: $ /usr/sbin/passwd oracle Verify That the User nobody exists $ id nobody uid=99(nobody) gid=99(nobody) groups=99(nobody) 2.3 Creating the Oracle Base Directory Create the directory for the software installation and assign ownership to oracle:oinstall. $ mkdir -p /u01/app/oracle $ chown -R oracle:oinstall /u01/app $ chmod -R 775 /u01/app /u01 owned by root. /u01/app owned by oracle:oinstall with 775 permissions. /u01/app/oracle owned by oracle:oinstall with 775 permissions. 2.4 Setting /home/oracle/.bash_profile for the Oracle user # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi 7 of 20 21/06/2011 13:35
  • 8. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... umask 022 # User specific environment and startup programs export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 export PATH=/usr/sbin:$PATH export PATH=$ORACLE_HOME/bin:$PATH export ORACLE_TERM=xterm export LD_LIBRARY_PATH=$ORACLE_HOME/lib export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib export CLASSPATH=$ORACLE_HOME/JRE export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib export TEMP=/tmp export TMPDIR=/tmp 2.5 Setting Shell Limits for the Oracle User To improve the performance of the software on Linux systems, Oracle recommends to increase the following shell limits for the oracle user: Shell Limit Item in limits.conf Hard Limit Maximum number of open file descriptors nofile 65536 Maximum number of processes available to a single user nproc 16384 To make these changes, the following is run as root: $ cat >> /etc/security/limits.conf <<EOF oracle soft nproc 2047 8 of 20 21/06/2011 13:35
  • 9. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 EOF $ cat >> /etc/pam.d/login <<EOF session required /lib/security/pam_limits.so session required pam_limits.so EOF Update the default shell startup file for the “oracle” UNIX account. For the Bourne, Bash, or Korn shell, we add the following lines to the /etc/profile file by running the following command: cat >> /etc/profile <<EOF if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi umask 022 fi EOF 3. Installing Oracle Database 11g Release 2 Login as operating system user “oracle” to the Linux box. To install the Oracle 9 of 20 21/06/2011 13:35
  • 10. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... Database 11gR2 software on linux, you must user the GUI installer.From OTN website, we downloaded Oracle 11gR2 software: 1. Oracle Database 11g Release 2 (11.2.0.1.0) for Linux x86 linux_11gR2_database_1of2.zip (1,285,396,902 bytes) linux_11gR2_database_2of2.zip (995,359,177 bytes) 2. Oracle Database 11gR2 Examples: linux_11gR2_examples.zip (505,570,137 bytes) 3. Oracle De-install Utility (11.2.0.1.0) for Linux x86 linux_11gR2_deinstall.zip (124,457,540 bytes) As the “oracle” user account, we extracted the three downloaded packages to a temporary directory. We used “/home/oracle/wkdir/11gr2″. $ su – oracle $ mkdir -p /home/oracle/wkdir/11gr2 $ cd /home/oracle/wkdir/11gr2 $ unzip linux_11gR2_database_1of2.zip $ unzip linux_11gR2_database_2of2.zip Installing the Oracle Database 11gR2 software procedure step-by step: $ cd /home/oracle/wkdir/11gr2 $ cd database $ ./runInstaller 10 of 20 21/06/2011 13:35
  • 11. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... Make sure the Install database software only is selected and click Next. 11 of 20 21/06/2011 13:35
  • 12. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... Make sure the Single instance database installation is selected and click Next. At the Language Selection screen, make sure English is on the list of Selected Languages and click Next. 12 of 20 21/06/2011 13:35
  • 13. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... Make sure the Installation Type Enterprise Edition is selected and click Next. 13 of 20 21/06/2011 13:35
  • 14. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... At the Installation Location window, make sure that the Oracle Base and Oracle Home are set and click Next. You need to specify your Inventory Directory. The location should be set to /u01/app/oraInventory. Accept the default Operating System Group Name, oinstall. Click Next. 14 of 20 21/06/2011 13:35
  • 15. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... Product-specific Prerequisite Checks. 15 of 20 21/06/2011 13:35
  • 16. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... At the Summary screen, review what will be installed and click Finish. You will see the progress window. 16 of 20 21/06/2011 13:35
  • 17. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... When prompted, execute /u01/app/orainstRoot.sh and /u01/app/oracle /product/11.2.0/dbhome_1/root.sh as the root user and then click Ok. End of Installation 4. Verifying Oracle Database 11g Release 2 Software Installation To verify the Oracle Database 11gR2 software installation on Linux, open a terminal window as the user oracle, and run: $ /u01/app/oracle/product/11.2.0/dbhome_1/oui/bin/runInstaller 17 of 20 21/06/2011 13:35
  • 18. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... 5. De-Installing Oracle Database 11g Release 2 With Oracle Database 11gR2, Oracle Corp. delivers a new utility named Oracle De-install Utility. From OTN, download and unzip the following software: Oracle De-install Utility (11.2.0.1.0) for Linux x86 linux_11gR2_deinstall.zip (124,457,540 bytes) Its syntax is as follows: To deinstall the Oracle Database 11gR2 software on Linux, open a terminal window as the user oracle, and run: $ /home/oracle/wkdir/11gr2/deinstall/deinstall –home $ORACLE_HOME –local 18 of 20 21/06/2011 13:35
  • 19. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... Download Monitor Monitor & block user downloads in real time. Download 30 day Trial! www.gfi.com/web-monitor Cursos LINUX LPI - GREEN Modo texto/terminal, Debian, RedHat Sistemas, Redes, Samba, Firewall www.green.com.br Learn Languages for Free Free Online Courses for English Spanish, French, Chinese and More! www.Livemocha.com Like Be the first to like this post. Leave a Reply Enter your comment here... Guest Log In Log In Log In Email (required) Your email address will not be published. Name (required) Website Notify me of follow-up comments via email. Post Comment Notify me of new posts via email. 19 of 20 21/06/2011 13:35
  • 20. Installing Oracle Database 11g Release 2 on Linu... http://oracleref.wordpress.com/2009/10/08/install... Archived Entry Post Date : October 8, 2009 at 1:22 PM Category : Oracle Technical References Tags: 11g, 11gr2, database, install, linux, oel5, rhel5 Do More : You can leave a response, or trackback from your own site. Blog at WordPress.com. — Theme: Connections by www.vanillamist.com. 20 of 20 21/06/2011 13:35