Vous êtes sur la page 1sur 15

Step by Step Installation of Oracle Database 11g

Release 2 (11.2.0.1.0) on Redhat Enterprise Linux 5


Operating System.
Download linux os from the following link.
https://edelivery.oracle.com/EPD/Download/get_form?
egroup_aru_number=12386797
Install the linux OS with the following mount point sizes.
Size allocation for mount points:
/

-----------> 10GB

/home

-----------> 2GB

/var

-----------> 2GB

/tmp

-----------> 2GB

/usr

-----------> 4GB

/usr/local

-----------> 2GB

/opt

-----------> 10GB

/boot

-----------> 1GB

swap

-----------> 2 x RAM size

After the installation of the linux OS with above mentioned specifications


follow these steps to install the oracle database 11g Release 2.

Pre-Installation Tasks:

1. Create oracle User Account


Login as root and create the user oracle which belongs to oinstall, dba groups.

#groupadd oinstall
#groupadd dba
#useradd -g oinstall -G oinstall,dba oracle
Note: "#" sign means that you need execute this command as root user.

Then you have to set the password for the user using the password utility.
#passwd oracle
New password:_____________
Retype password: _____________
2. Setting System parameters
Edit the /etc/sysctl.conf and add following lines:
#vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 536870912
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 = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
Note: You need reboot system or execute "sysctl -p" command to apply above settings.

Edit the /etc/pam.d/login file and add following line:


#vi /etc/pam.d/login
session
required
pam_limits.so
Edit the /etc/security/limits.conf file and add following lines:
oracle soft
nproc
2047
oracle hard
nproc
16384
oracle soft
nofile
1024
oracle hard
nofile
65536
3. Setting Oracle Enviroment

Edit the /home/oracle/.bash_profile file and add following lines:


#vi /home/oracle/.bash_profile
ORACLE_BASE=/opt/oracle
ORACLE_HOME=/opt/oracle/product/11.2.0/db_1
ORACLE_SID=ORCL
LD_LIBRARY_PATH=/opt/oracle/product/11.2.0/db_1/lib
PATH=$PATH:/opt/oracle/product/11.2.0/db_1/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID
LD_LIBRARY_PATH PATH
Save the .bash_profile and execute following commands for load new
enviroment:
cd /home/oracle
. .bash_profile
Check current status of SELinux:
/usr/sbin/getenforce
If output is "Enforcing" then change mode to "Permissive" using following
command:
/usr/sbin/setenforce 0
To prevent Enforcing mode restore after next reboots or to disable SELinux
modify the /etc/sysconfig/selinux change value of SELINUX variable to
permissive or disabled:
SELINUX=permissive

Mandatory packages required by the Oracle 11g Database:


For 32 bit linux version
binutils.i386
compat-db.i386
compat-libstdc++-33.i386
elfutils-libelf.i386
gcc-c++.i386
gcc.i386
gdbm.i386

glibc-devel.i386
glibc-headers.i386
glibc.i386
glibc.i686
ksh.i386
libaio-devel.i386
libaio.i386
libstdc++.i386
libXp.i386
libXtst.i386
make.i386
setarch.i386
sysstat.i386
unixODBC.i386
xorg-x11-utils.i386
For 64 bit linux version
binutils.x86_64
compat-db.x86_64
compat-libstdc++-33.i386
compat-libstdc++-33.x86_64
elfutils-libelf.i386
elfutils-libelf.x86_64
gcc-c++.x86_64
gcc.x86_64
gdbm.x86_64
glibc-devel.i386
glibc-devel.x86_64
glibc-headers.x86_64
glibc.i686
glibc.x86_64
ksh.x86_64
libaio-devel.i386
libaio-devel.x86_64
libaio.i386
libaio.x86_64
libstdc++.i386
libstdc++.x86_64
libXp.i386
libXtst.i386
libXtst.x86_64
make.x86_64
setarch.x86_64

sysstat.x86_64
unixODBC.i386
unixODBC.x86_64
xorg-x11-utils.x86_64
Download & Install:
1. Download and install required .rpm packages
Some additional packages are required for succesful instalation of Oracle
software. To check whether required packages are installed on your operating
system use following command:
rpm -q binutils compat-db compat-libstdc++-33 glibc glibc-devel glibc-headers
gcc gcc-c++ libstdc++ gdbm make ksh elfutils-libelf sysstat libaio libaio-devel
setarch unixODBC libXp libXtst xorg-x11-utils --qf '%{name}.%{arch}\n'|sort
If some package is not installed then install it from installation media or
download it and install manually.
Manual package installation:
Before installation first mount the CD.
#mount /dev/cdrom /mnt
#cd /mnt
#ls
#cd Server
#ls -l binutils*
If the package is present then install it by using the following command.
#rpm -ivh --force --nodeps binutils*
#cd /
#eject
Then if the package is not present you have to check all the linux CDs like this
and install all the mandatory packages.
To install the downloaded package go to the downloaded directory then give the
same command

#rpm -ivh --force --nodeps <PACKAGENAME>


After all the mandatory packages get installed unzip the files it automatically
creates one folder named database.
1. unzip linux.x64_11gR2_database_1of2.zip
2. unzip linux.x64_11gR2_database_2of2.zip

Now the database folder contains the necessary software to install the database.
Creating oracle directories and changing its owner and permissions.
# mkdir -p /opt/oracle/product/11.2.0/db_1
# chown -R oracle:oinstall /opt
# chmod -R 755 /opt
# chown -R oracle:oinstall /software
# chmod -R 755 /software
Note: Software is the location of the folder database for example if the database
folder is inside /opt/oracle then you have to give like this.
#chown -R oracle:oinstall /opt/oracle/database
#chmod -R 755 /opt/oracle/database

Starting the oracle software installation:


Reboot the system and login as oracle user
Now the system is prepared for Oracle software installation. To start the
installation process execute the following command after getting inside to the
database directory:
./runInstaller
Follow the screen shots to complete the installation successfully.
1)

2) After giving ./runInstaller the GUI will come like the screen shot mentioned
below

3) Dont check any check box and dont give any email then click next. The
following dialogue box will appear.

Give yes and click next.

4)

Select create and configure a database and click next button.

5)

Select Desktop Class if you want minimal configuration or


select Server Class to get some advanced configuration. I
selected server class.

6)

Select Single Database Installation and click next.

7)

Select Typical Install and click next.


8)

Give administrative password in the corresponding space,


retype the password to confirm it in the confirm password

space and click next. After clicking next if dialog box appears
then click the yes button in that dialog box.
9)

Click yes in the dialog box.


10)

Keep the default values and click next

11)

Then the prerequisite checks will be done if all the prerequisite


is correct then the following window will appear as shown in the
screen shot.

12)

Click finish after the summery is shown.

13)

Then the database installation begins as shown above.

14)

The oracle net configuration assistant and oracle database


configuration assistant will get installed.

15)

Then in database configuration assistant click password


management button if you want to change the password or if
you want to use the default then click ok.
16)

Run the above scripts as root user


To execute the configuration scripts:

1) Open a terminal window


2) Login as root
3) Run the scripts
4) Return to Execute Configuration scripts dialog box and
click ok to continue.
17)

Click close button .

Vous aimerez peut-être aussi