0% found this document useful (0 votes)
178 views4 pages

Install Oracle

The document outlines 15 steps for installing Oracle Database 11g Release 2 software on Linux. It includes downloading the software, extracting and preparing files, configuring kernel parameters and user limits, installing prerequisite packages, creating users and groups, setting environment variables, and running the Oracle Universal Installer to complete the database installation.

Uploaded by

benben08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
178 views4 pages

Install Oracle

The document outlines 15 steps for installing Oracle Database 11g Release 2 software on Linux. It includes downloading the software, extracting and preparing files, configuring kernel parameters and user limits, installing prerequisite packages, creating users and groups, setting environment variables, and running the Oracle Universal Installer to complete the database installation.

Uploaded by

benben08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

-------------- step 1 ---------------Download Software

Download the following software.


Download the Oracle software from OTN or MOS depending on your support status.
OTN: Oracle Database 11g Release 2 (11.2.0.1) Software (64-bit)
MOS: Oracle Database 11g Release 2 (11.2.0.2 or 11.2.0.3) Software (64-bit)
-------------- step 2 ---------------Unzip the files.
# 11.2.0.1
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
#11.2.0.2
unzip p10098816_112020_Linux-x86-64_1of7.zip
unzip p10098816_112020_Linux-x86-64_2of7.zip
#11.2.0.3
unzip p10404530_112030_Linux-x86-64_1of7.zip
unzip p10404530_112030_Linux-x86-64_2of7.zip
You should now have a single directory called "database" containing installation
files.
-------------- step 3 ---------------Hosts File
The "/etc/hosts" file must contain a fully qualified name for the server.
<IP-address> <fully-qualified-machine-name> <machine-name>
For example.
127.0.0.1
localhost.localdomain localhost
192.168.2.181 ol5-11gr2.localdomain ol5-11gr2
$uname n -- > to check machine name
$dnsdomainname -- > to check the localdomain
-------------- step 4 ---------------Manual Setup
If you have not used the "oracle-validated" package to perform all prerequisites
, you will need to manually perform the following setup tasks.
Oracle recommend the following minimum parameter settings.
fs.suid_dumpable = 1
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
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 = 1048586
The current values can be tested using the following command.
/sbin/sysctl -a | grep <param-name>
Add or amend the following lines in the "/etc/sysctl.conf" file.

fs.suid_dumpable = 1
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586
Run the following command to change the current kernel parameters.
/sbin/sysctl -p or sysctl -p
-------------- step 5 ---------------Add the following lines to
oracle
soft
oracle
hard
oracle
soft
oracle
hard
oracle
soft

the "/etc/security/limits.conf" file.


nproc 2047
nproc 16384
nofile 4096
nofile 65536
stack 10240

-------------- step 6 ---------------Install the following packages if they are not already present.
binutils-2.*
compat-libstdc++-33*
compat-libstdc++-33*.i386.rpm
elfutils-libelf*
gcc-4.*
gcc-c++-4.*
glibc-2.*
glibc-common-2.*
glibc-devel-2.*
glibc-headers-2.*
ksh*
libaio-0.*
libaio-devel-0.*
libgomp-4.*
libgcc-4.*
libstdc++-4.*
libstdc++-devel-4.*
make-3.*
sysstat-7.*
unixODBC-2.*
unixODBC-devel-2.*
numactl-devel-*
to download
rpm -ivh packagename.rpm
-------------- step 7 ----------------

Create the new groups and users.


$groupadd oinstall
$groupadd dba
$groupadd oper
$groupadd asmadmin
Add oracle user and assign oinstall as primary group and others as secondary
$useradd -g oinstall -G dba,oper,asmadmin oracle
$passwd oracle
-------------- step 8 ---------------AdditionalSetup
The following setup tasks must be performed regardless of which setup method you
used previously.
Disable secure linux by editing the "/etc/selinux/config" file, making sure the
SELINUX flag is set as follows.
SELINUX=disabled
-------------- step 9 ---------------Alternatively, this alteration can be done using the GUI tool (Applications > Sy
stem Settings > Security Level). Click on the SELinux tab and disable the featur
e. If SELinux is disabled after installation, the server will need a reboot for
the change to take effect.
Create the directories in which the Oracle software will be installed.
mkdir -p /oracle/product/11.2.0/db_1
chown -R oracle:oinstall oracle/
chmod -R 775 oracle/
Note:
/oracle = ORACLE_BASE
/oracle/product/11.2.0/db_1 = ORACLE_HOME
-------------- step 10 ---------------Login as root and issue the following command.
xhost +<machine-name>
$uname n -- > to check the machine name
-------------- step 11 ---------------Login as the oracle user and add the following lines at the end of the ".bash_pr
ofile" file, remembering to adjust them for your specific installation.
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=ol5-112.localdomain; export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=test_db; export ORACLE_SID
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/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

run
. . /.bash_profile to restart bash
-------------- step 12 ---------------Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY envi
ronmental variable.
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in t
he database directory.
./runInstaller
-------------- step 13 ---------------execute the script given in the end of installation
as root :
sh root.sh
-------------- step 14 ---------------create database using DBCA
cd /oracle/product/11.2.1/db_1
cd bin
./dbca
-------------- step 15 ---------------post installation
edit etc/oratab file setting the restart flag for each instance to Y.
e.g
DBG11G:/u01/oracle/product/11.2.0/db_1:Y -- to make your db up when system boot
s

You might also like