Installing Oracle 11g Release 2 Standard Edition On Red Hat Enterprise Linux 5
Installing Oracle 11g Release 2 Standard Edition On Red Hat Enterprise Linux 5
Preamble
As you see from the title this page contains a very specific installation howto. It is the one to install respectively to deploy Oracle 11g Release 2 Standard Edition on Red Hat Enterprise Linux 5.7 (x86_64). Whether you are an Oracle newbie or an experienced Database Administrator the goal to setup a production, test or development database server within 60 minutes remains the same. OraToolKit (OTK) assists you through the whole installation process and the only thing what you have to do is to copy and paste the sample commands from this howto. Occasionally you may want to do some own customisation. This is no problem since OTK tries to be open and flexible. If this howto correspondes exactly to what you are looking for you may want to continue. Otherwise click here to find one of over 500 howtos which will hopefully match your requirements.
Target audience
This howto is meant for every one interested in the installation task and who might also be impatient to go through the getting started tutorial which explains the concepts. Since of its "check list" nature this howto will steer you stright forward to the goal. If there will be something unclear for you there will be links pointing to the concepts.
Preparation
This guide assumes that you have installed Red Hat Enterprise Linux 5.7 with default packages and that you have downloaded the following software: Category DB DB OS Description Version File name Download site
Oracle 11g R2 11.2.0.1.0 linux.x64_11gR2_database_1of2.zip oracle.com (Disk1) Oracle 11g R2 11.2.0.1.0 linux.x64_11gR2_database_2of2.zip oracle.com (Disk2) Red Hat 5.7 rhel-server-5.7-x86_64-dvd.iso redhat.com Enterprise Linux
Transfer the downloaded files beside ISO image(s) to /var/tmp/oracle directory which you will first have to create. Use a GUI tool like WinSCP to copy the files to your server.
Installation Process
The next few subsections describes the installation process which will end with the creation of the database. In case you enable archivelog mode you may also read "Enabling Database backups" section.
Installing oraToolKit
Install now oraToolKit.
# yum install -y oratoolkit
To install the missing packages using yum command follow the steps from the next box. Note that you will need access to a yum repository.
# # Generate yum command # REQ_FILE_DIR="/opt/oracle/otk/current/conf/installManager/requirement" # REQ_FILE_PATH="$REQ_FILE_DIR/ora11gR2-redhat-5-x86_64.pkg.lst" # YUM_COMMAND=$(echo "yum install") # YUM_COMMAND+=$(egrep -v "#" $REQ_FILE_PATH | grep 32-bit | awk '{ print " "$1".i[356]86" }') # YUM_COMMAND+=$(egrep -v "#" $REQ_FILE_PATH | grep 64-bit | awk '{ print " "$1".x86_64" }') # # Display yum command # echo $YUM_COMMAND # # Execute yum command # $YUM_COMMAND
As you can see the yum command can be dynamically generated using software requirement check file from oratoolkit. If you do not have access to a yum repository install the missing packages from installation media using rpm command.
# mount /dev/cdrom /mnt; cd /mnt/Server # rpm -ivh kernel-headers-2.6.18-274.el5.x86_64.rpm \ glibc-headers-2.5-65.x86_64.rpm \ libstdc++-devel-4.1.2-51.el5.x86_64.rpm \ sysstat-7.0.2-11.el5.x86_64.rpm \ glibc-devel-2.5-65.x86_64.rpm \ libaio-devel-0.3.106-5.x86_64.rpm \ gcc-4.1.2-51.el5.x86_64.rpm \ gcc-c++-4.1.2-51.el5.x86_64.rpm \ elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm \ elfutils-libelf-devel-0.137-3.el5.x86_64.rpm \ libtermcap-devel-2.0.8-46.1.x86_64.rpm \ readline-devel-5.1-3.el5.x86_64.rpm \ unixODBC-2.2.11-7.1.x86_64.rpm \ unixODBC-devel-2.2.11-7.1.x86_64.rpm \ glibc-devel-2.5-65.i386.rpm \ libaio-devel-0.3.106-5.i386.rpm \ unixODBC-2.2.11-7.1.i386.rpm \ unixODBC-devel-2.2.11-7.1.i386.rpm \ compat-gcc-34-3.4.6-4.1.x86_64.rpm \ compat-gcc-34-c++-3.4.6-4.1.x86_64.rpm \ gdb-7.0.1-37.el5.x86_64.rpm \ libXp-1.0.0-8.1.el5.i386.rpm \ compat-db-4.2.52-5.1.x86_64.rpm \ libstdc++-devel-4.1.2-51.el5.i386.rpm # cd /; umount /mnt; eject # /opt/oracle/otk/current/bin/installManager swReqCheck osSetup11gR2.cfg
Enhancing sql*plus
If you would like to benefit from enhanced sql*plus functionality compile and install rlwrap utility.
# # # # # cd /opt/oracle/otk/current/tools/rlwrap/ ./configure make make install /usr/local/bin/rlwrap -v
vi grep ^SITE
exit
# exit
Creating database(s)
Create one or more Oracle databases using dbSetup action of installManager. Change into $INSTALL_CONF directory if you are not already there and choose one configuration file. Review it and modify at least ORACLE_HOME variable before executing installManager.
$ cd $INSTALL_CONF $ ls -1 dbSetup*.cfg dbSetup-dev.cfg dbSetup-prod.cfg dbSetup-test.cfg $ vi dbSetup-prod.cfg $ sdiff -s dbSetup-prod.cfg sample/dbSetup-prod.cfg ORACLE_HOME=/opt/oracle/sesrv/11.2.0/db1 | ORACLE_HOME=/opt/oracle/sesrv/11.1.0/db1 $ installManager dbSetup dbSetup-prod.cfg