10g

 

Install Oracle 10g Release 2 on RHEL 5

This is a step by step guide, which will walk you through the installation of Oracle 10g on RHEL 5.

The first thing we need to verify the hardware requirements for an Oracle 10g Installation.

Checking Memory/Swap/Disk size deails

— Check Physical RAM.
# grep MemTotal /proc/meminfo/*
We need at least 1024 MB of physical RAM.*/
— Check Swap Space.
# grep SwapTotal /proc/meminfo/*
RAM up to 1024MB then swap = 2 times the size of RAM
RAM between 2049MB and 8192MB then swap = equal to the size of RAM
RAM more than 8192MB then swap size = 0.75 times the size of RAM*/– Check space available in /tmp
# df -h /tmp/*
You need to have at least 400 MB of space in the /tmp directory.
*/– Check space for Oracle Software and pre-configured database.
# df -h

/*
Space requirement for Oracle Software:
Enterprise Edition 2.5G
Standard Edition 2.3G
Custom (maximum) 3G

Space requirement for Oracle Database Files:
1.2 G
*/

— To determine whether the system architecture can run the software, enter the following command:

# grep “model name” /proc/cpuinfo

/*
This command displays the processor type. Verify that the processor architecture matches the Oracle software release that you want to install. If you do not see the expected output, then you cannot install the software on this system.
*/

Unpack Files

unzip 10201_database_linux.zip

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.101 test.server.com test

Set Kernel Parameters

Add the following lines to the “/etc/sysctl.conf” file.

#kernel.shmall = 2097152
#kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
#fs.file-max = 65536
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

login as root and run the following command to change the current kernel parameters.

— Make the kernel parameters changes effective immediately:
/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

Setup

Install the following packages.

# From RedHat AS5 Disk 1
cd /media/cdrom/Server
rpm -Uvh setarch-2*
rpm -Uvh make-3*
rpm -Uvh glibc-2*
rpm -Uvh libaio-0*
cd /
eject# From RedHat AS5 Disk 2
cd /media/cdrom/Server
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*
cd /
eject# From RedHat AS5 Disk 3
cd /media/cdrom/Server
rpm -Uvh openmotif-2*
rpm -Uvh compat-db-4*
cd /
eject

Create the new groups and users.

groupadd oinstall
groupadd dbauseradd -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
chmod -R 775 /u01

Login as root and issue the following command.

xhost +

Edit the “/etc/redhat-release” file replacing the current release information (Red Hat Enterprise Linux Server release 5) 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 TMPDIRORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=TSH1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATHLD_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.

export DISPLAY=machine-name:0.0;

Start the Oracle Universal Installer (OUI) by issuing the following command.

./runInstaller

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

Select Installation Method
Specify Inventory Directory and Credentials
Select Installation Type
Specify Home Details
Product-Specific Prerequisite Checks
Select Configuration Option
Select Database Configuration
Specify Database Configuration Options
Select Database Management Option
Specify Database Storage Option
Specify Backup and Recovery Options
Specify Database Schema Passwords
Summary
Install

Execute Configuration Scripts

Open another console and login as root and then execute following.

# /u01/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oracle/oraInventory to 770.
Changing groupname of /u01/app/oracle/oraInventory to oinstall.
The execution of the script is complete# /u01/app/oracle/product/10.2.0/db_1/root.sh
Running Oracle10 root.sh script…The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/10.2.0/db_1Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin …
Copying oraenv to /usr/local/bin …
Copying coraenv to /usr/local/bin …Creating /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.

End Of Installation

Post Installation

Edit the “/etc/redhat-release” file restoring the original release information.

Red Hat Enterprise Linux Server release 5
Caution: Your use of any information or materials on this website is entirely at your own risk. It is provided for educational purposes only. It has been tested internally, however, we do not guarantee that it will work for you. Ensure that you run it in your test environment before using.

Reference

Oracle Database 10g Release 2 (10.2.0.1) Installation On Red Hat Enterprise Linux 5 (RHEL5)
Install Oracle 10g Release 2 on RHEL 5
Database Installation Guide
Requirements For Installing Oracle10gR2 On RHEL 5/OEL 5 (x86_64) (Doc ID 421308.1)

1 thought on “10g

Leave a Reply

Your email address will not be published. Required fields are marked *