Oracle 8i on Linux RH7.X Installation HOWTO: Installing Oracle 8i, version 8.1.7

Next Previous Contents

## 3. Installing Oracle 8i, version 8.1.7

## 3.1 Setting up oracle's shell

Login as oracle user, edit the file `.bash_profile` and copy the following lines into it:

    # +------------------------------------------------------------+
    # | 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"

Save the new version of `.bash_profile` and re-read it, by issuing:

    bash$ source .bash_profile

Finally, if you have not any window manager running, it is time to let it running.

## 3.2 Starting the installer

We shall work under the hypothesis that you want to install cdrom Oracle distribution. Mount the cdrom with:

    bash$ mount /mnt/cdrom

and move to the directory that contains the installer:

    bash$ cd /mnt/cdrom/install/linux

Then, launch the installer by:

    bash$ ./runInstaller

and follow the steps on the GUI it should appear:

1. after a first click on `NEXT` verify that the proposed path is:

       /u01/app/oracle/product/8.1.7

   and click `NEXT` again;
2. fill in the filed `Unix Group Name` with the value:

       oinstall

   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 pop-up 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

   When you're done click `Retry` on the pop-up window.
4. You are now given the option of what to install. Choose `Oracle Enterprise Edition`, and click `Next`.

   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 `Typical` and click `Next`.

5. When it asks you the `Global database name`, if you do not have any particular needs you can type in `oracle.localdomain`. Also, verify that the values of `SID` is set to:

       O817DB

   Then, click `Next`.
6. The next step is to set the location of the database. Type in:

       /u01

   and click `Next`.
7. Finally, you are asked to indicate the location where you put java. If you followed our suggestions the path is already:

       /usr/local/java

   Since it is fine, click `Next`, and, then `Install`.
8. 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:

       bash$  su
       bash# cd $ORACLE_HOME
       bash# ./root.sh

   After the script completes, click `OK` on the pop-up window.
9. `Oracle Net8 Configuration` starts. Choose `Perform typical configuration` and click `Next`.
10. The configuration tool that starts is the `Database Configuration Assistant`.

    It may signal errors like:

        ORA-03114: not connected to  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: glibc-2.1.3-stubs.tar.gz
    - move it into ORACLE_HOME by:

                  bash$ mv ./glibc-2.1.3-stubs.tar.gz $ORACLE_HOME

      and let ORACLE_HOME your working directory:

                  bash$ cd  $ORACLE_HOME

    - uncompress and untar the patch:

                  bash$ gunzip glibc-2.1.3-stubs.tar.gz
                  bash$ tar xvf glibc-2.1.3-stubs.tar

    - run the patch script:

                  bash$ ./setup_stubs.sh

      When it stops you are done!

Next Previous Contents