Oracle Installation on Linux
1. Download Software from following link:
#######11.2.0.1 Oracle Software#######
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
########11.2.0.2 Oracle Software#######
unzip p10098816_112020_Linux-x86-64_1of7.zip
unzip p10098816_112020_Linux-x86-64_2of7.zip
########11.2.0.3 Oracle Software#######
unzip p10404530_112030_Linux-x86-64_1of7.zip
unzip p10404530_112030_Linux-x86-64_2of7.zip
########11.2.0.4 Oracle Software#######
unzip p13390677_112040_Linux-x86-64_1of7
unzip p13390677_112040_Linux-x86-64_2of7
unzip
the Oracle software which you want to install, You
should now have a single directory called "database" containing
installation files.
2. Hosts File checking
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.0.1
dbalead.oracle.com dbalead
3. Oracle recommend the following minimum parameter
settings.
KERNEL PARAMETER SETTINGS:
Connect
to root user, 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
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
Command
to reflect the current kernel parameters “/sbin/sysctl –p”
Add the following lines to the
"/etc/security/limits.conf" file.
#vi /etc/security/limits.conf
#vi /etc/security/limits.conf
oracle
soft nproc 2047
oracle
hard nproc 16384
oracle
soft nofile 4096
oracle
hard nofile 65536
oracle
soft stack 10240
Install the following
packages listed in the oracle installation:
rpm -Uvh binutils-2.*
rpm -Uvhcompat-libstdc++-33*
rpm -Uvhcompat-libstdc++-33*.i386.rpm
rpm -Uvhelfutils-libelf*
rpm -Uvh gcc-4.*
rpm -Uvh gcc-c++-4.*
rpm -Uvh glibc-2.*
rpm -Uvh glibc-common-2.*
rpm -Uvh glibc-devel-2.*
rpm -Uvh glibc-headers-2.*
rpm -Uvhksh*
rpm -Uvh libaio-0.*
rpm -Uvh libaio-devel-0.*
rpm -Uvh libgomp-4.*
rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh libstdc++-devel-4.*
rpm -Uvh make-3.*
rpm -Uvh sysstat-7.*
rpm -Uvh unixODBC-2.*
rpm -Uvh unixODBC-devel-2.*
rpm -Uvhnumactl-devel-*
Disable secure linux by editing the
"/etc/selinux/config" file, making sure the SELINUX flag is set as
follows.
Vi /etc/selinux/config
SELINUX=disabled
4. Create the new groups and users:
#groupadd dba
#groupadd oinstall
#useradd -g dba
–G oinstall oracle
#passwd oracle
5. Create the directories in which the Oracle software will
be installed:
#mkdir -p /u01/app/oracle/product/11.2.0/db_1
#chown
-R oracle:dba /u01
#chmod
-R 775 /u01
6. Installation
Login
as root and issue the following command: xhost +
Start the Oracle Universal Installer (OUI) by
issuing the following command in the database directory by oracle user
$./runInstaller
Post
Installation Script:
we
execute two scripts 'orainstRoot.sh' and 'root.sh'scripts and
Oracle also suggest to backup the 'orainstRoot.sh' and 'root.sh' scripts.These
two scripts we should execute as 'root'
user as it displays after the Oracle software installation completes.
#
/u01/app/oracle/product/11.2.0/db_1/orainstRoot.sh
·
It
creates the inventory pointer file (/etc/oraInst.loc), this file shows the
inventory location and group it is linked to.
·
It
Changes groupname of the oraInventory directory to oinstall group.
#
/u01/app/oracle/product/11.2.0/db_1/root.sh
·
It
Sets Oracle base and home environmental variables.
·
root.sh
script creates oraenv,coraenv and dbhome scripts at location /usr/local/bin.
·
all
users should hava read access to /usr/local/bin directory
·
The
/etc/oratab file will be created
·
Updates
the Oracle inventory file.
No comments:
Post a Comment