Oracle 8i on LinuxThis is a step by step guide
to installing Oracle8i on Linux. The installation was successfully
tested on Suse 6.4 , Redhat 6.2 and Caldera openLinux 2.4 using Oracle
8i Enterprise Edition Release 2 (8.1.6) for Linux (Intel) circa October 2000.
1.Installtion 1.InstallationDownload Java 1.1.6 ( JRE ) for
Linux from
www.java.sun.com/linux
or
from blackdown.org and Oracle 8i
from oracle.com If you have the
Oracle 8i CD download only the JRE.
[download
the files to some directory like /tmp ]
[
become root ]
[
set up and install the jre ]
[
create user groups ]
[
create auser named oracle ]
[
make some directories required during installtion ]
[
become user oracle ]
[
Create/Edit the file named /home/oracle/.bashrc
ORACLE_HOME=/usr/local/oracle/8i/u01/app/oracle/product/8.1.5
$vi .bashrc
[
NO CD - unzip and extract the downloaded files ]
[
WITH CD - If not mounted mount the CD ] [
SEE
NOTE
1 ]
[ start installation
]
During installation the installation program will prompt you a couple of times to run certain commands as root from a shell. It will also ask you to create an SID at the end of the installation. Post Install: $svrmgrl
$export ORACLE_SID=your_sid_name
2.Notes1. Mounting CDThe mount command might be little different on diferent machines the third parameter the device file for CDROM [ /dev/hdc ] may not be the same on all machines. Please contact your friendly sysadmin for help. Or if you have an X desktop environment like Gnome or KDE you can click on the CDROM icon it might mount the CDROM and will open the CDROM contents in a file explorer. Some Linux distributions ( like
Caldera open Linux ) will have the CD auto mounted at /auto/cdrom.
in that case you just go to that directory to access the installation files
you dont have to mount the CD.
2. Adding the .profile/.login/.bashrcUsually the default shell for new user accounts on Linux is bash. So the file to add Oracle environment variables is usually .bashrc in the home directory /home/oracle. But if you are running another shell please contact your friendly sysadmin to find out which file to edit. If you are not familiar with vi , please use any of the notepad like editors gedit,kedit,nedit . 3.Troubleshooting1. Make sure you have set the Oracle environment variables correctly.$su oracle
Make sure the env
command shows the above output, otherwise make sure you edited the
/home/orcle/.bashrc
file correctly.
2. Stale files from an aborted/failed installationSometimes the Oracle Universal Installer leaves behind stale files from an earlier failed installation as a different user. One of the files left behind is /etc/oraInst.loc #su #cat /etc/oraInst.loc inventory_loc=/home/user_name/oraInventory inst_group=dba #[ where user_name is the user account from which the last failed installation was attempted ] If you have this file hanging around you might get an error message saying no permissions to write /home/user_name/oraInventory . In that case become root and delete /etc/oraInst.loc file, and continue installation as user oracle. |
| Friday, 02-Apr-2004 18:46:56 MST | kishan at hackorama dot com |

