Click here to edit title

Click here to edit subtitle

Blog

Installing Oracle 10g2 on RHEL 5.3

Posted by Gaurav Kukrety on February 13, 2013 at 3:55 AM

Installing Oracle 10g2 on RHEL 5.3

Unpack Files

Unzip the files:

unzip 10201_database_linux32.zip

You should now have a single directory containing installation files. Depending on the age of the download this may either be named "db/Disk1" or "database".

Hosts File

The /etc/hosts file must contain a fully qualified name for the server:

Set Kernel Parameters

Add the following lines to the /etc/sysctl.conf file:

#kernel.shmall = 2097152

#kernel.shmmax = 2147483648

# semaphores: semmsl, semmns, semopm, semmni

#fs.file-max = 65536

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 1024 65000

net.core.rmem_default=262144

net.core.rmem_max=262144

net.core.wmem_default=262144

net.core.wmem_max=262144

Run the following command to change the current kernel parameters:

/sbin/sysctl -p

Add the following lines to the /etc/security/limits.conf file:

* soft nproc 2047

* hard nproc 16384

* soft nofile 1024

* hard nofile 65536


Add the following line to the /etc/pam.d/login file, if it does not already exist:

session required pam_limits.so

Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows:

SELINUX=disabled

Alternatively, this alteration can be done using the GUI tool (System > Administration > Security Level and Firewall). Click on the SELinux tab and disable the feature.

Setup

Install the following packages:

# From RedHat Server Disk

cd /media/cdrom/Server

rpm -Uvh setarch-2*

rpm -Uvh make-3*

rpm -Uvh glibc-2*

rpm -Uvh libaio-0*

rpm -Uvh compat-libstdc++-33-3*

rpm -Uvh compat-gcc-34-3*

rpm -Uvh compat-gcc-34-c++-3*

rpm -Uvh gcc-4*

rpm -Uvh libXp-1*

rpm -Uvh openmotif-2*

rpm -Uvh compat-db-4*

Create the new groups and users:

groupadd oinstall

groupadd dba

groupadd oper

useradd -g oinstall -G dba oracle

passwd oracle

Create the directories in which the Oracle software will be installed:

mkdir -p /u01/app/oracle/product/10.2.0/db_1 

chown -R oracle.oinstall /u01


Login as root and issue the following command:

xhost +<machine_name>

If the display does not set then run the following script :

#/usr/bin/ksh

if [ "$1" != '' ]

then

echo

AUTH=/usr/bin/X11/xauth

outfile=${HOME}/`whoami`.disp

echo $AUTH -i add `$AUTH list | tail -1` > ${outfile}

echo export DISPLAY=$DISPLAY >> ${outfile}

chmod 755 $outfile

su - $1 -c "${outfile}"

else

echo 'Usage: disp_auth.sh oracle'

fi

Edit the /etc/redhat-release file replacing the current release information (Red Hat Enterprise Linux Server release 5 (Tikanga)) with the following:

redhat-4

Login as the oracle user and add the following lines at the end of the .bash_profile file:

 

# Oracle Settings

TMP=/tmp; export TMP

TMPDIR=$TMP; export TMPDIR

ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME

ORACLE_SID=ORCL; export ORACLE_SID

ORACLE_TERM=xterm; export ORACLE_TERM

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/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

if [ $USER = "oracle" ]; then

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

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

fi



Installation

Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:

DISPLAY=<machine_name>:0.0; export DISPLAY

Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory:

./runInstaller

During the installation enter the appropriate ORACLE_HOME and name then continue installation.

Categories: Technology

Post a Comment

Oops!

Oops, you forgot something.

Oops!

The words you entered did not match the given text. Please try again.

Already a member? Sign In

37 Comments

Reply Jamostreaf
2:37 PM on July 14, 2021 
Awesome facts. Many thanks!
https://scoringessays.com/essay/789-essay-helps-sydney-affordable
-essay.html
https://essayhelp-usa.com/writing/316-drawings-services-greatest-
essay-services.html
https://topessaywritingbase.com/dissertation/76-dissertation-exam
ple-top-ranked-essay-service.html
https://essaypromaster.com/essay/138-essay-homework-help-online-a
ffordable.html

https://pieemich.webs.com/apps/blog/show/33156202-inauguracion-de
l-ciclo-escolar-agricola-2013-segundo-periodo-agosto-diciembre-de
-las-escuelas-de-piee-en-la-comunidad-de-antunez-paracuaro-mich-
Reply Jamostreaf
3:20 AM on July 11, 2021 
Whoa a good deal of good tips!
http://theconvenience.show/__media__/js/netsoltrademark.php?d=bes
tessayscloud.com/thesis/74-online-thesis-help-excellent-essay.htm
l
http://jcr-llc.com/__media__/js/netsoltrademark.php?d=topessayssi
tes.com/writing/15-creative-writing-help-top-essay.html
http://my-sala.com/__media__/js/netsoltrademark.php?d=topessayser
vicescloud.com/writing/438-college-write-services-excellent-essay
.html
http://healthtechgroup.com/__media__/js/netsoltrademark.php?d=ess
aypromaster.com/dissertation/490-dissertation-team-excellent-writ
ing-service.html
http://wineforaday.com/__media__/js/netsoltrademark.php?d=topessa
ywritinglist.com/essay/75-write-my-essay-south-park.html
http://drugstoreadvice.com/__media__/js/netsoltrademark.php?d=top
essaywritinglist.com/writing/98-help-me-to-write-a-speech.html
http://americainfoline.com/__media__/js/netsoltrademark.php?d=sco
ringessays.com/essay/486-narrative-essay-writing-help-best.html
https://tantrichealing.webs.com/apps/guestbook/
Reply Jamostreaf
12:28 PM on July 10, 2021 
Information very well regarded.!
http://warpmetrics.com/__media__/js/netsoltrademark.php?d=topessa
yservicescloud.com/writing/41-write-article-service.html
http://restorethefarallones.com/__media__/js/netsoltrademark.php?
d=topessaywritinglist.com/writing/068-website-writes-essays-for-y
ou-top-ranked.html
http://autobodyequipment.com/__media__/js/netsoltrademark.php?d=d
efinitionessays.com/essay/435-buy-my-attachment-top-essay.html
http://chinabookings.com/__media__/js/netsoltrademark.php?d=disco
untedessays.com/dissertation/507-dissertation-trading-high-qualit
y-essay.html
http://professionalfaith.com/__media__/js/netsoltrademark.php?d=e
ssaypromaster.com/writing/945-seo-write-service-top-rated.html
http://muhaberat.com/__media__/js/netsoltrademark.php?d=bestessay
seducationusa.com/writing/133-phd-writer-greatest-essay-services.
html
http://revolvac.com/__media__/js/netsoltrademark.php?d=scoringess
ays.com/editing/41-paraphrasing-program-high-quality-essay.html
https://floridahomes.webs.com/apps/blog/show/13258221-spanish-lak
es-estimated-monthly-expenses
Reply Jamostreaf
4:30 AM on June 20, 2021