DBA Tips Archive for Oracle |
|
Install Oracle8i on Red Hat Linux 7.1 - 7.2
by Jeff Hunter, Sr. Database Administrator
Contents
Overview
http://otn.oracle.com/software/products/oracle8i/htdocs/linuxsoft.html
% tar xvf linux81701.tar
/Disk1
Swap Space Considerations
% free
- OR -
% cat /proc/swaps
- OR -
% cat /proc/meminfo | grep MemTotal
As root, make a file that will act as additional swap space, let's say about 300 MB:
Now we should change the file permissions:
Finally we format the "partition" as swap and add it to swap space:
You will find these RPMS within your Red Hat 7.1 or 7.2 distribution CD set:
Red Hat 7.1
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
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
As per the JDK documentation, install JDK under /usr/local.
Download from: http://java.sun.com/products/jdk/1.2/download-linux.html
Install as root:
% groupadd -g 115 dba
Create Oracle Directories:
% mkdir /u01
% mkdir /u03
% mkdir /u04
% mkdir /u05
% mkdir /u06
% mkdir /u07
% mkdir /u08
% mkdir /u09
% mkdir /u10
% mkdir /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
% DISPLAY=<Any X-Windows Host>:0.0
NOTE:
If you forgot to set the DISPLAY environment variable and you get the following error:
Xlib: connection to ":0.0" refused by server
you will then need to execute the following command to get "runInstaller" working again:
If you don't do this, the Installer will hang without giving any error messages.
Also make sure that "runInstaller" has stopped running in the background. If not, kill it.
% cd /Disk1
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
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".
Copyright (c) 1998-2012 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.
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
(If you do not currently have an account with Oracle OTN, you will need to create one. This is a FREE account!)
Download and Install Comp. Libraries
(An inadequate amount of swap during the installation
will cause the Oracle Universal Installer to either "hang" or "die")
% dd if=/dev/zero of=tempswap bs=1k count=300000
% chmod 600 tempswap
% mke2fs tempswap
% mkswap tempswap
% swapon tempswap
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)
Install the Java Development Kit (JDK)
% rpm -i compat-egcs-6.2-1.1.2.14.i386.rpm
% rpm -i compat-libs-6.2-3.i386.rpm
% rpm -i compat-egcs-6.2-1.1.2.16.i386.rpm
% rpm -i compat-libs-6.2-3.i386.rpm
In order to use Oracle's HTTP [Apache] Server, you will need to download the appropiate JDK 1.2.2 from Sun.
Create Oracle Account and Directories
Then create a symbolic link to the JDK under /usr/local/java.
% cp jdk-1_2_2_009-linux-i386.tar.gz /usr/local
% gunzip jdk-1_2_2_009-linux-i386.tar.gz
% tar xvf jdk-1_2_2_009-linux-i386.tar
% ln -s /usr/local/jdk1.2.2 /usr/local/java
% rm jdk-1_2_2_009-linux-i386.tar
Create Oracle User Account:
Run the Oracle Installer
% useradd -u 173 -c "Oracle Software Owner" -d /u01/app/oracle -g "dba" -m -s /bin/bash oracle
% passwd oracle
% 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/app
% mkdir /u03/app/oradata
% mkdir /u03/app/oradata/O817DB
% chown -R oracle:dba /u03/app/oradata
% mkdir /u04/app
% mkdir /u04/app/oradata
% mkdir /u04/app/oradata/O817DB
% chown -R oracle:dba /u04/app/oradata
% mkdir /u05/app
% mkdir /u05/app/oradata
% mkdir /u05/app/oradata/O817DB
% chown -R oracle:dba /u05/app/oradata
% mkdir /u06/app
% mkdir /u06/app/oradata
% mkdir /u06/app/oradata/O817DB
% chown -R oracle:dba /u06/app/oradata
% mkdir /u07/app
% mkdir /u07/app/oradata
% mkdir /u07/app/oradata/O817DB
% chown -R oracle:dba /u07/app/oradata
% mkdir /u08/app
% mkdir /u08/app/oradata
% mkdir /u08/app/oradata/O817DB
% chown -R oracle:dba /u08/app/oradata
% mkdir /u09/app
% mkdir /u09/app/oradata
% mkdir /u09/app/oradata/O817DB
% chown -R oracle:dba /u09/app/oradata
% mkdir /u10/app
% mkdir /u10/app/oradata
% mkdir /u10/app/oradata/O817DB
% chown -R oracle:dba /u10/app/oradata
% chown oracle:dba /opt/bin
As the "oracle" user account:
Errors during the Relink Phase of the Install
% export DISPLAY
Xlib: Client is not authorized to connect to Server
% rm -rf /tmp/OraInstall
% ./runInstaller
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.
Configuration Files / Scripts
% gunzip glibc-2.1.3-stubs.tar.gz
% tar xvf glibc-2.1.3-stubs.tar
% ./setup_stubs.sh
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:
The main script to run is: RUN_CRDB.sh.
glibc-2.1.3-stubs.tar.gz
Patch for bug: 1467074
Monday, 02-Jan-2012 15:09:48 EST
Page Count: 20313