Below are the installation note’s I captured in installing Oracle
10.2.0.1 on a Fedora 8 workstation. For some reason installations of
Oracle on Fedora linux in past never went as smooth as hoped.. I was
however relatively happy with how things turned out on F8 and its nice
to see some of the old problems, like hanging during installation, went
away…

##########################################
# Oracle 10g Standard – Fedora 8 Linux Installation Instructions
# Author: Greg Roll
# Date: July 14th, 2008
#
# These instructions have been parsed down to the bare requirements to
# install Oracle 10g Standard on a typical Fedora 8 installation.
#
##########################################

##########################################
## Install / Update required system packages.
##########################################
yum install libaio
yum install libXp
yum update libxcb (must be 1.0-4 or greater!)

##########################################
## Configuring the Linux Kernel Parameters as per Oracle
## requirements.
##########################################

The Linux kernel is a wonderful thing. Unlike most other *NIX systems,
Linux allows modification of most kernel parameters while the system is
up and running. There’s no need to reboot the system after making
kernel parameter changes. Oracle Database 10g Release 2 requires the
kernel parameter settings shown below. The values given are minimums,
so if your system uses a larger value, don’t change it.

kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
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.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144

On my base fedora 8 installation I found I only had to change a 2 options:

—————-
/etc/sysctl.conf
—————
add:
net.ipv4.ip_local_port_range = 1024 65000
kernel.sem = 250 32000 100 128`

Execute the following command to change the current values of the kernel
parameters:
/sbin/sysctl -p

##########################################
## Setup required user / groups.
##########################################

/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/useradd -g oinstall -G dba oracle
passwd oracle

[root@uberdev14 ~]# id oracle
uid=2090(oracle) gid=4001(oinstall) groups=4001(oinstall),4002(dba) context=unconfined_u:system_r:unconfined_t:s0
[root@uberdev14 ~]# id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody) context=unconfined_u:system_r:unconfined_t:s0
[root@uberdev14 ~]#

##########################################
## Update user limits.
##########################################

Oracle recommends setting limits on the number of processes and open files each Linux account may use.

————————-
/etc/security/limits.conf
————————-
Add the following 4 lines before the end of file comment:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

—————-
/etc/pam.d/login
—————-
Add the following 2 lines before the pame_selinux.so open rule
session required /lib/security/pam_limits.so
session required pam_limits.so

##########################################
# Setup user profile.
##########################################

# Backup the original system profile.
[root@udev10lin01 etc]# cp -p profile profile.ORIG

# Modify the system files.
————
/etc/profile
————

Edit and add following to bottom:

if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

————————–
/home/oracle/.bash_profile
————————–

Edit and add following:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

set -o vi
export ORACLE_SID=IVSD1
export ORACLE_BASE=/opt/app/oracle
export ORACLE_HOME=${ORACLE_BASE}/product/10.2.0/DB1
export LD_LIBRARY_PATH=${ORACLE_HOME}/lib:/usr/lib:/lib
export PATH=$PATH:${ORACLE_HOME}/bin:/sbin/:/usr/sbin

unset USERNAME

stty erase ^?

#LD_ASSUME_KERNEL=2.2.5; export LD_ASSUME_KERNEL
umask 022

##########################################
# Create directories for Oracle installation.
##########################################

¦ software directories:
cd /opt
mkdir -p app/oracle
chown -R oracle.oinstall app/oracle/
chmod -R 775 app/oracle/

ls -l app/
total 4
drwxrwxr-x 2 oracle oinstall 4096 Apr 13 13:16 oracle
[root@udev10lin01 opt]#

¦ Database file directory:
mkdir /u01/oradata
chown oracle:oinstall /u01/oradata
chmod 775 /u01/oradata

¦ Recovery file directory (flash recovery area):
mkdir /u01/flash_recovery_area
chown oracle:oinstall /u01/flash_recovery_area
chmod 775 /u01/flash_recovery_area

##########################################
# Install Oracle base software.
##########################################

[oracle@udev10lin01 ~]$ cd /opt/app/oracle/software/
[oracle@udev10lin01 software]$ ls -l
total 653712
-rw-r–r– 1 oracle oinstall 668734007 May 18 10:54 10201_database_linux32.zip

unzip 10201_database_linux32.zip

[oracle@udev10lin01 software]$ ls -l
total 653712
-rw-r–r– 1 oracle oinstall 668734007 May 18 10:54 10201_database_linux32.zip
drwxr-xr-x 6 oracle oinstall 4096 Jun 12 14:50 database
[oracle@udev10lin01 software]$

##########################################
# Run Oracle installer.
##########################################

** First disable X11 access controls by running xhost+ as your current gnome/kde
user.

cd /opt/app/oracle/software/database
./runInstaller -silent -responseFile /opt/app/oracle/software/uberdev-f8-oracle10.2.0.2-recorded.rsp
-jreLoc /opt/jdk1.6.0_06
-IgnoreSysPrereqs

– Select default inventory directory and ‘oracle’ user.
– Select typical install.
– Select Standard Edition.
– Accept remaining defaults.
– Accept warning on product specific prerequisite checks.
– Select create a database.
– Accept create general purpose database.
– enter dbname ’sample’ sid ’sample’, select Unicode format and enable create database with sample schemas.
– accept defaults until you get to the password definition screen
– define password of ‘password’ for all default accounts (SYS, SYSTEM,
SYSMAN, DBSNMP)
– setup ‘dba’ as privileged system groups.. if were not defined use
default oracle group.

** NOTES **

=======================================
Creating an Oracle Response File for Automated Installs
=======================================
Response
files can be created by running the software in record mode or by
manually editing a sample response file. Here’s a basic demo:

1. Start the OUI with this command to create the response file:
./runInstaller -IgnoreSysPrereqs
-jreLoc /opt/jdk1.6.0_06
-record
-destinationFile /opt/app/oracle/software/uberdev-f8-oracle10.2.0.2-recorded.rsp
2. Make all the selections you want to (source destination, home, home name, products).
3. When you get to the Summary screen, instead of clicking on Install, click on Cancel.

4. Examine the resulting response file created in tmp/recorded.rsp. If
desired, you can manually edit this file as long as you adhere to the
prescribed format (see documentation).
5. Now perform the silent installation like this:
./runInstaller -silent -responseFile /opt/app/oracle/software/uberdev-f8-oracle10.2.0.2-recorded.rsp

The progress of the installation will be reported as the script is being run.

If you have a problem with the installation due to incorrect entries in the response file, the installation will fail with a diagnostic message. Further information can be found in the oraInventory/logs directory. Logs with names in the format installActions-.log and silentInstall.log are created each time the OUI is run using a response file.

- Might need to increase available swap space.
Checking available swap space requirements …
Expected result: 8108MB
Actual Result: 2047MB

Post to Twitter Tweet This Post