24 September 2007

Installing Oracle HTTP Server on SLES 10.0

Previous Posts:
Oracle 10g Rel 2 on SLES 10.0
Installation Prepation
Hardware and Software check
Software Installation
Patch Oracle Database Software
Create Database
Next posts:
Install APEX
Install BI Publisher
Automate Startup/Shutdown
Install Oracle Workflow

In this Post I will try to describe the Installation of Oracle HTTP Server on SLES 10.0. The installation files are located on "Companion CD".

Downloads:
Companion CD Installation Guide for Linux x86
Oracle Database 10g Companion CD Release 2 (10.2.0.1.0) for Linux x86

NOTE:
  • I downloaded and Installed required RPM package "compat-db" from http://rpm.pbone.net. The Installation package compat-db-4.1.25-9.i386.rpm is prepared for CentOS (!?) but the Installation on SLES was without any problems.
  • Before installation I edited the file /etc/SuSE-release and changed the version to 9. After Installaion I edited this file and changed to original value of 10.
I decided to Install the Oracle HTTP Server under different user as oracle. New user is orahs.
Here are all creation and modification commands:

Create Linux user orahs (password is as default by playing with Oracle: qwertz)
vl094:~ # useradd -u 5002 -g oinstall -G dba -d /appl/home/orahs -s /bin/bash orahs
vl094:~ # passwd orahs
Changing password for orahs.
New Password:
Bad password: too simple
Reenter New Password:
Password changed.

Create home and base directory for orahs.
vl094:~ # mkdir -p /appl/home/orahs
vl094:~ # chown -R orahs:oinstall /appl/home/orahs

vl094:~ # chmod 775 /appl/home/orahs

vl094:~ # mkdir -p /appl/orahs

vl094:~ # chown -R orahs:oinstall /appl/orahs


Modify file /etc/profile.d/oracle.sh
if [ $USER = "oracle" -o $USER = "orahs" ]; then
if [ $SHELL = "/bin/ksh" ]; then

ulimit -p 16384
ulimit -n 65536
else

ulimit -u 16384 -n 65536

fi

fi


Modify file /etc/security/limits.conf (add orahs user)
orahs soft nproc 2047
orahs hard nproc 16384

orahs soft nofile 1024

orahs hard nofile 65536


Connect to SLES server as Linux user orahs
vl094:~ # ssh -Xl orahs vl094
Password:
Last login: Mon Sep 24 23:21:40 2007 from vl094.fla.net


Create file .bash_profile
orahs@vl094:~> cat .bash_profile
#

ORACLE_BASE=/appl/orahs

export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1

export ORACLE_HOME

PATH=$ORACLE_HOME/bin:$PATH

export PATH

if [ -z "$LD_LIBRARY_PATH" ]

then

LD_LIBRARY_PATH=$ORACLE_HOME/lib

else
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
fi

export LD_LIBRARY_PATH


Unzip the downloaded file
I unziped the Companion Installation Files in /appl/home/orahs/companion
orahs@vl094:~> ls companion/ doc install response runInstaller stage welcome.html

Install Oracle HTTP Software
Press "Next".
-------------------------------------------------------------------------------------------
Form: Select a product to Install.
Select Oracle Database 10g Companion Products 10.2.0.1
Press "Next".
-------------------------------------------------------------------------------------------
Form: Specify Home details.
Enter OraDb10g_home for Name.
Enter /appl/orahs/prodct/10.2.0/db_1 for Path.
Press "Next".
-------------------------------------------------------------------------------------------
Form: Available Product Components.
Select Apache standalone 10.1.0.0.
Press "Next".
-------------------------------------------------------------------------------------------
Form: Prerequisite Checks.
No requirements to be verified!!!
Press "Next"
-------------------------------------------------------------------------------------------
Form: Summary.
Press "Install".
-------------------------------------------------------------------------------------------
Form: Execute Configuration Scripts.
vl094:~ # /appl/orahs/product/10.2.0/db_1/root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= orahs
ORACLE_HOME= /appl/orahs/product/10.2.0/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]:

Adding entry to /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.

Press "OK".
-------------------------------------------------------------------------------------------
Form: End of Installation.
Press "Exit".
-------------------------------------------------------------------------------------------
Form: Exit.
Press "OK".

Patch Oracle HTTPS Software
Form: Welcome.
Press "Next".
-------------------------------------------------------------------------------------------
Form: Specify Home Details.
Accept values for Name = OraDb10g_home, Path = /appl/orahs/product/10.2.0/db_1
Press"Next".
-------------------------------------------------------------------------------------------
Form: Summary
Press "Install".
-------------------------------------------------------------------------------------------
Form. End of Installation.
Pres "Exit".
-------------------------------------------------------------------------------------------
Form: Exit.
Press "Yes".

Congratulation: The Oracle HTTP Server is installed!

Content of the .bash_profile file:
orahs@vl094:~> cat /appl/home/orahs/.bash_profile
#
ORACLE_BASE=/appl/orahs
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$PATH
export PATH
if [ -z "$LD_LIBRARY_PATH" ]
then
LD_LIBRARY_PATH=$ORACLE_HOME/lib
else
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH


Stopping Oracle HTTP Server
orahs@vl094:~> /appl/orahs/product/10.2.0/db_1/opmn/bin/opmnctl stopall
opmnctl: stopping opmn and all managed processes...


Starting Oracle HTTP Server
orahs@vl094:~> /appl/orahs/product/10.2.0/db_1/opmn/bin/opmnctl startall
opmnctl: starting opmn and all managed processes...


Connect to Oracle HTTP server: http://vl094.fla.net:7780


Regards,
Flavio

No comments: