Oracle8 On Rh7x Howto
Oracle8 On Rh7x Howto
Oracle8 On Rh7x Howto
X Installation HOWTO
Table of Contents
Oracle 8i on Linux RH7.X Installation HOWTO............................................................................................1
Krastio Atanassov <[email protected]> , and Luca Roversi <[email protected]>.................1
1. Introduction..........................................................................................................................................1
2. Starting off...........................................................................................................................................1
3. Installing Oracle 8i, version 8.1.7........................................................................................................1
4. Creating a database..............................................................................................................................1
5. Final Words..........................................................................................................................................1
1. Introduction..........................................................................................................................................1
1.1 What's in here?...................................................................................................................................2
1.2 Who is this HOWTO for?..................................................................................................................2
1.3 Current versions of this document.....................................................................................................2
1.4 Disclaimer..........................................................................................................................................2
1.5 Credits and Thanks............................................................................................................................2
1.6 License...............................................................................................................................................2
2. Starting off...........................................................................................................................................2
2.1 Prerequisites.......................................................................................................................................2
Hardware.....................................................................................................................................3
2.2 Linux setup........................................................................................................................................3
Distribution.................................................................................................................................3
Distribution Setup.......................................................................................................................3
Setting users and groups.............................................................................................................3
Installing the right Java Virtual Machine...................................................................................3
Kernel parameters.......................................................................................................................4
Setting up some libraries.............................................................................................................4
Final step.....................................................................................................................................5
3. Installing Oracle 8i, version 8.1.7........................................................................................................5
3.1 Setting up oracle's shell......................................................................................................................5
3.2 Starting the installer...........................................................................................................................6
4. Creating a database..............................................................................................................................8
5. Final Words..........................................................................................................................................8
5.1 Some Internet Resources....................................................................................................................9
Following this HOWTO you should be able to get "Oracle 8i, version 8.1.7, Enterprise Edition for Linux"
installed on a RedHat 7.X distribution (and, we hope, on distributions based/derived from it.) You will also
have some few hints at how to create a database. We decide to write this notes because we did not manage to
get through the installation, simply following the already existing "Oracle 8 for Linux" HOWTOs, and Oracle
documentation and we found people on the net experiencing our problems.
1. Introduction
1.1 What's in here?
1.2 Who is this HOWTO for?
1.3 Current versions of this document
1.4 Disclaimer
1.5 Credits and Thanks
1.6 License
2. Starting off
2.1 Prerequisites
2.2 Linux setup
4. Creating a database
5. Final Words
5.1 Some Internet Resources
1. Introduction
1.4 Disclaimer
You get what you pay for. We offer no warranty of any kind, implied or otherwise. May be we shall help you
where we can, but, legally, you are on your own.
1.6 License
This document is copyright 2002 Krastio Atanassov and Luca Roversi.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free
Documentation License, Version 1.1 or any later version published by the Free Software Foundation.
2. Starting off
2.1 Prerequisites
At least 800M free on your hard disk. Type:
1.1 What's in here?
Size
5.3G
Hardware
The steps we are going to describe allow to have Oracle 8i, version 8.1.7 running on:
a laptop Toshiba Satellite 2800100 with 128Mb RAM and a 600 Mhz Intel Celeron;
others ....
In any case, never underestimate Oracle's system prerequisites.
Distribution Setup
We assume you have your Linux RedHat 7.2 box installed and working in a reasonable way for you. In any
case, 'base' packages, X Windows (the installation routine is a Java GUI) and the development tools
regardless of whether you intend doing any coding or not is what you need.
Kernel parameters
Oracle documentation suggests that you make changes to the Linux kernel so you can get more shared
memory. If you decide to follow that way, keep the instructions in the Oracle documentation and the Linux
Kernel HOWTO at hand to build your new kernel.
In fact, the required changes can be made by setting some parameter in a suitable initialization file. Just
follow some steps:
bash# cd /etc
and create a new file rc.config, if it does not exists. Inside rc.config copy the following four
lines:
cd /proc/sys/kernel
echo 250 32000 100 128 > sem
echo 4294967295 > shmmax
echo 4096 > shmmni
In any case, if you want just to start playing with Oracle 8i, version 8.1.7, Linux RedHat 7.2 default settings
can work fine, and you do not need to set any kernel parameter, as just described.
Kernel parameters
and, finally set a symbolic link because there is a small installation bug in one of the packages just installed:
bash# ln s /bin/id /usr/bin/id
Final step
Reboot your machine and keep reading...
export EDITOR
export TERM
export TMPDIR
# ++
# | SETUP ORACLE ENVIRONMENT |
# ++
export ORACLE_SID=O817DB
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/8.1.7
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
export TNS_ADMIN=$ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export ORACLE_OWNER=oracle
export ORACLE_TERM=xterm
# ++
# | LINUX STUFF
|
# ++
export LD_ASSUME_KERNEL=2.2.5
source /usr/i386glibc21linux/bin/i386glibc21linuxenv.sh
# ++
# | SETUP SEARCH PATH
|
# ++
PATH=$ORACLE_HOME/bin:/opt/bin:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/j
export PATH
Final step
export CLASSPATH=/u01/app/oracle/product/8.1.7/jdbc/lib/classes12.zip:/u01/app/oracle/product/8.1
# ++
# | "GREETINGS" |
# ++
echo ".bash_profile executed"
Finally, if you have not any window manager running, it is time to let it running.
If, for any reasons, this is not your first attempt to install Oracle, you will not be prompted for the
Unix Group Name. In this case jump to step 4, below.
3. A popup window will ask you to run a script as root user, so, open a terminal emulator and type in:
bash$ su
bash# cd $ORACLE_HOME
bash# ./orainstRoot.sh
ORACLE
The temporary solution is to just click on Abort. These kinds of errors will be recovered in a few!!
When the Database Configuration Assistant concludes its tasks, just click on Next and
the installation concludes.
If you needed to click on Abort, you must:
Download the patch: glibc2.1.3stubs.tar.gz
move it into ORACLE_HOME by:
bash$ mv ./glibc2.1.3stubs.tar.gz $ORACLE_HOME
$ORACLE_HOME
4. Creating a database
We just typed:
bash$ dbassist
and we played around with the default options. This allowed us to generate an instance of Oracle 8i we could
use for teaching purposes, during an undergraduate course on the foundational principles of data bases. If you
need more professionaloriented instances, consult other HOWTOs or read Oracle documentation.
In any case, at this point, what you should be able to do is to let interactive Oracle sql interpreter SQL*Plus
run, by issuing:
bash$ sqlplus
and by choosing one of the following two default account/passwd pairs that Oracle creates by default. The
first pair is:
username:sys
password:change_on_install
However, if you, just for example, want to connect from/to another machine we address you to other
HOWTOs; for example, Stephen Darlington's "Oracle for Linux Installation HOWTO" covers this subjects
and gives other useful hints in its final sections.
5. Final Words
Our goal was to write a short list of steps to have Oracle 8i, version 8.1.7, running on RedHat 7.2. We think
we have gotten to our goal, so we stop here.
4. Creating a database