DBA Tips Archive for Oracle

  


Install Oracle8i on Red Hat Linux 7.1 - 7.2

by Jeff Hunter, Sr. Database Administrator


Contents

  1. Overview
  2. Downloading / Unpacking Oracle8i Installation Files
  3. Swap Space Considerations
  4. Download and Install Comp. Libraries
  5. Install the Java Development Kit (JDK)
  6. Create Oracle Account and Directories
  7. Run the Oracle Installer
  8. Configuration Files / Scripts


Overview

This article is a comprehensive guide for installing Oracle8i Release 3 (8.1.7) on the Red Hat Linux 7.1 and 7.2 operating environment. Keep in mind the following assumptions:

Downloading / Unpacking Oracle8i Installation Files

Swap Space Considerations

Download and Install Comp. Libraries
Before running the Oracle Universal Installer (OUI), you will need to install several RPMS. Failing to install these packages will cause the installer to fail. (In fact, the OUI will not even appear)

You will find these RPMS within your Red Hat 7.1 or 7.2 distribution CD set:

Red Hat 7.1

  • compat-glibc-6.2-2.1.3.2.i386.rpm (CD1)
  • compat-egcs-6.2-1.1.2.14.i386.rpm (CD2)
  • compat-libs-6.2-3.i386.rpm (CD2)

You can also find these RPMS on Red Hat's website:

Install the following RPMS as the "root" user account:

% rpm -i compat-glibc-6.2-2.1.3.2.i386.rpm
% rpm -i compat-egcs-6.2-1.1.2.14.i386.rpm
% rpm -i compat-libs-6.2-3.i386.rpm

Red Hat 7.2

You can also find these RPMS on Red Hat's website:

Install the following RPMS as the "root" user account:

% rpm -i compat-glibc-6.2-2.1.3.2.i386.rpm
% rpm -i compat-egcs-6.2-1.1.2.16.i386.rpm
% rpm -i compat-libs-6.2-3.i386.rpm

Install the Java Development Kit (JDK)
In order to use Oracle's HTTP [Apache] Server, you will need to download the appropiate JDK 1.2.2 from Sun.

As per the JDK documentation, install JDK under /usr/local.
Then create a symbolic link to the JDK under /usr/local/java.

Create Oracle Account and Directories
Create Oracle User Account:

% groupadd -g 115 dba
% useradd -u 173 -c "Oracle Software Owner" -d /u01/app/oracle -g "dba" -m -s /bin/bash oracle
% passwd oracle

Create Oracle Directories:

% mkdir /u01
% mkdir /u01/app
% mkdir /u01/app/oracle
% mkdir /u01/app/oracle/admin
% mkdir /u01/app/oracle/admin/O817DB
% mkdir /u01/app/oracle/admin/O817DB/adhoc
% mkdir /u01/app/oracle/admin/O817DB/adump
% mkdir /u01/app/oracle/admin/O817DB/arch
% mkdir /u01/app/oracle/admin/O817DB/backups
% mkdir /u01/app/oracle/admin/O817DB/bdump
% mkdir /u01/app/oracle/admin/O817DB/cdump
% mkdir /u01/app/oracle/admin/O817DB/create
% mkdir /u01/app/oracle/admin/O817DB/dba
% mkdir /u01/app/oracle/admin/O817DB/exp
% mkdir /u01/app/oracle/admin/O817DB/logbook
% mkdir /u01/app/oracle/admin/O817DB/pfile
% mkdir /u01/app/oracle/admin/O817DB/release
% mkdir /u01/app/oracle/admin/O817DB/report
% mkdir /u01/app/oracle/admin/O817DB/tuning
% mkdir /u01/app/oracle/admin/O817DB/udump
% mkdir /u01/app/oracle/product
% chown -R oracle:dba /u01/app/oracle

% mkdir /u03
% mkdir /u03/app
% mkdir /u03/app/oradata
% mkdir /u03/app/oradata/O817DB
% chown -R oracle:dba /u03/app/oradata

% mkdir /u04
% mkdir /u04/app
% mkdir /u04/app/oradata
% mkdir /u04/app/oradata/O817DB
% chown -R oracle:dba /u04/app/oradata

% mkdir /u05
% mkdir /u05/app
% mkdir /u05/app/oradata
% mkdir /u05/app/oradata/O817DB
% chown -R oracle:dba /u05/app/oradata

% mkdir /u06
% mkdir /u06/app
% mkdir /u06/app/oradata
% mkdir /u06/app/oradata/O817DB
% chown -R oracle:dba /u06/app/oradata

% mkdir /u07
% mkdir /u07/app
% mkdir /u07/app/oradata
% mkdir /u07/app/oradata/O817DB
% chown -R oracle:dba /u07/app/oradata

% mkdir /u08
% mkdir /u08/app
% mkdir /u08/app/oradata
% mkdir /u08/app/oradata/O817DB
% chown -R oracle:dba /u08/app/oradata

% mkdir /u09
% mkdir /u09/app
% mkdir /u09/app/oradata
% mkdir /u09/app/oradata/O817DB
% chown -R oracle:dba /u09/app/oradata

% mkdir /u10
% mkdir /u10/app
% mkdir /u10/app/oradata
% mkdir /u10/app/oradata/O817DB
% chown -R oracle:dba /u10/app/oradata

% mkdir /opt/bin
% chown oracle:dba /opt/bin

Oracle Environment Variable Settings:

An example ".bash_profile" is provided in the Configuration Files / Scripts section below.

Ensure to set the environment variable: LD_ASSUME_KERNEL=2.2.5

Also make sure to "source" the following:

source /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh

Run the Oracle Installer
As the "oracle" user account:

Errors during the Relink Phase of the Install
During the "Relink Phase" of the install, you will get several errors. When any of the relinks do fail during installation just keep pressing "ignore". After running "root.sh", and you are at the point when you are at the "Network Configuration screen", you will need to close the installer as this will also not work due to the earlier relink problem.

After exiting the Installer, you need to apply patch for bug 1467074 (as the "oracle" OS user). Now you should be able to run ORACLE executables. To install the Oracle patch for bug 1467074, run the following in your ORACLE_HOME as the "oracle" user account:

% mv glibc-2.1.3-stubs.tar.gz $ORACLE_HOME
% gunzip glibc-2.1.3-stubs.tar.gz
% tar xvf glibc-2.1.3-stubs.tar
% ./setup_stubs.sh

You will also need to enter LD_ASSUME_KERNEL=2.2.5 in your .profile for the "oracle" user account so that they you can run programs like "dbssist" and "netca".

Configuration Files / Scripts
Example:
    .bash_profile
$HOME/.bash_profile for the "oracle" user account.
    initO817DB.ora
Sample instance parameter script for Oracle8i. Place this file in ~oracle/admin/O817DB/pfile before running the RUN_CRDB.sh script below.
    create_database817.tar
An example "create database" set of scripts. Untar the file to ~oracle/admin/O817DB/create.
If you decide to change the name of the ORACLE_SID, here are the files that need to be changed:
  • crdb.sh
  • create_database.sql
The main script to run is: RUN_CRDB.sh.
    glibc-2.1.3-stubs.tar.gz
Patch for bug: 1467074


Copyright (c) 1998-2014 Jeffrey M. Hunter. All rights reserved.

All articles, scripts and material located at the Internet address of http://www.idevelopment.info is the copyright of Jeffrey M. Hunter and is protected under copyright laws of the United States. This document may not be hosted on any other site without my express, prior, written permission. Application to host any of the material elsewhere can be made by contacting me at jhunter@idevelopment.info.

I have made every effort and taken great care in making sure that the material included on my web site is technically accurate, but I disclaim any and all responsibility for any loss, damage or destruction of data or any other property which may arise from relying on it. I will in no case be liable for any monetary damages arising from such loss, damage or destruction.

Last modified on
Monday, 02-Jan-2012 15:09:48 EST
Page Count: 23353