<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE>Oracle 8i on Linux RH7.X Installation HOWTO: Installing Oracle 8i, version 8.1.7</TITLE> <LINK HREF="Oracle8-on-RH7X-HOWTO-4.html" REL=next> <LINK HREF="Oracle8-on-RH7X-HOWTO-2.html" REL=previous> <LINK HREF="Oracle8-on-RH7X-HOWTO.html#toc3" REL=contents> </HEAD> <BODY> <A HREF="Oracle8-on-RH7X-HOWTO-4.html">Next</A> <A HREF="Oracle8-on-RH7X-HOWTO-2.html">Previous</A> <A HREF="Oracle8-on-RH7X-HOWTO.html#toc3">Contents</A> <HR> <H2><A NAME="s3">3. Installing Oracle 8i, version 8.1.7</A></H2> <H2><A NAME="ss3.1">3.1 Setting up oracle's shell</A> </H2> <P>Login as oracle user, edit the file <CODE>.bash_profile</CODE> and copy the following lines into it: <PRE> # +------------------------------------------------------------+ # | FILE : .bash_profile | # +------------------------------------------------------------+ umask 022 EDITOR=vi; export EDITOR TERM=xterm; export TERM TMPDIR=/tmp; 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/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh # +--------------------------+ # | SETUP SEARCH PATH | # +--------------------------+ PATH=$ORACLE_HOME/bin:/opt/bin:/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/java/bin:. export PATH # +--------------------------+ # | SETUP JAVA ENVIRONMENT | # +--------------------------+ export JAVA_HOME=/usr/local/java export CLASSPATH=/u01/app/oracle/product/8.1.7/jdbc/lib/classes12.zip:/u01/app/oracle/product/8.1.7/JRE:/u01/app/oracle/product/8.1.7/jlib:/u01/app/oracle/product/8.1.7/rdbms/jlib:/u01/app/oracle/product/8.1.7/network/jlib:. # +-------------+ # | "GREETINGS" | # +-------------+ echo ".bash_profile executed" </PRE> <P>Save the new version of <CODE>.bash_profile</CODE> and re-read it, by issuing: <PRE> bash$ source .bash_profile </PRE> <P>Finally, if you have not any window manager running, it is time to let it running. <P> <H2><A NAME="ss3.2">3.2 Starting the installer</A> </H2> <P>We shall work under the hypothesis that you want to install cdrom Oracle distribution. Mount the cdrom with: <PRE> bash$ mount /mnt/cdrom </PRE> and move to the directory that contains the installer: <PRE> bash$ cd /mnt/cdrom/install/linux </PRE> Then, launch the installer by: <PRE> bash$ ./runInstaller </PRE> and follow the steps on the GUI it should appear: <OL> <LI>after a first click on <CODE>NEXT</CODE> verify that the proposed path is: <PRE> /u01/app/oracle/product/8.1.7 </PRE> and click <CODE>NEXT</CODE> again;</LI> <LI>fill in the filed <CODE>Unix Group Name</CODE> with the value: <PRE> oinstall </PRE> If, for any reasons, this is not your first attempt to install Oracle, you will not be prompted for the <CODE>Unix Group Name</CODE>. In this case jump to step 4, below.</LI> <LI>A pop-up window will ask you to run a script as root user, so, open a terminal emulator and type in: <PRE> bash$ su bash# cd $ORACLE_HOME bash# ./orainstRoot.sh </PRE> When you're done click <CODE>Retry</CODE> on the pop-up window. </LI> <LI>You are now given the option of what to install. Choose <CODE>Oracle Enterprise Edition</CODE>, and click <CODE>Next</CODE>. <P>It should now allow you to choose what you install with much finer granularity. Unless you're particularly constrained by disk space or know exactly what you need, choose <CODE>Typical</CODE> and click <CODE>Next</CODE>. <P> </LI> <LI>When it asks you the <CODE>Global database name</CODE>, if you do not have any particular needs you can type in <CODE>oracle.localdomain</CODE>. Also, verify that the values of <CODE>SID</CODE> is set to: <PRE> O817DB </PRE> Then, click <CODE>Next</CODE>. </LI> <LI>The next step is to set the location of the database. Type in: <PRE> /u01 </PRE> and click <CODE>Next</CODE>. </LI> <LI>Finally, you are asked to indicate the location where you put java. If you followed our suggestions the path is already: <PRE> /usr/local/java </PRE> Since it is fine, click <CODE>Next</CODE>, and, then <CODE>Install</CODE>. </LI> <LI>The installation completes by a pop-up windows that asks you to run a script as root. If you closed the previously opened terminal open one again and type: <PRE> bash$ su bash# cd $ORACLE_HOME bash# ./root.sh </PRE> After the script completes, click <CODE>OK</CODE> on the pop-up window. </LI> <LI><CODE>Oracle Net8 Configuration</CODE> starts. Choose <CODE>Perform typical configuration</CODE> and click <CODE>Next</CODE>. </LI> <LI>The configuration tool that starts is the <CODE>Database Configuration Assistant</CODE>. <P>It may signal errors like: <PRE> ORA-03114: not connected to ORACLE </PRE> The temporary solution is to just click on <CODE>Abort</CODE>. These kinds of errors will be recovered in a few!! <P> <P>When the <CODE>Database Configuration Assistant</CODE> concludes its tasks, just click on <CODE>Next</CODE> and the installation concludes. <P> <P>If you needed to click on <CODE>Abort</CODE>, you must: <UL> <LI>Download the patch: <A HREF="http://www.pawprint.net/linux/glibc-2.1.3-stubs.tar.gz">glibc-2.1.3-stubs.tar.gz</A></LI> <LI>move it into ORACLE_HOME by: <PRE> bash$ mv ./glibc-2.1.3-stubs.tar.gz $ORACLE_HOME </PRE> and let ORACLE_HOME your working directory: <PRE> bash$ cd $ORACLE_HOME </PRE> </LI> <LI>uncompress and untar the patch: <PRE> bash$ gunzip glibc-2.1.3-stubs.tar.gz bash$ tar xvf glibc-2.1.3-stubs.tar </PRE> </LI> <LI>run the patch script: <PRE> bash$ ./setup_stubs.sh </PRE> When it stops you are done!</LI> </UL> </LI> </OL> <P> <HR> <A HREF="Oracle8-on-RH7X-HOWTO-4.html">Next</A> <A HREF="Oracle8-on-RH7X-HOWTO-2.html">Previous</A> <A HREF="Oracle8-on-RH7X-HOWTO.html#toc3">Contents</A> </BODY> </HTML>