Linuxdoc Linux Questions
Click here to ask our community of linux experts!
Custom Search

7. Run Installer

7.1. Apply the libwait.c patch

Before running the installer, do the following in order to overcome some weird errors:

  • In /home/oracle,create a file name libwait.c and as described below and compile it :

    Ceate a file called libcwait.c in the
    oracle
    user's home directory to avoid getting
    an error when running the Oracle installer. The libcwait.c file should contain the
    following text:
    /*
    gcc -O2 -shared -o $HOME/libcwait.so -fpic $HOME/libcwait.c
    */
    #include
    #include
    #include
    Deploying Oracle 9i on Red Hat Enterprise Linux AS 3
    Page 11
    #include
    pid_t
    __libc_wait (int *status)
    {
    int res;
    asm volatile ("pushl %%ebx\n\t"
    "movl %2, %%ebx\n\t"
    "movl %1, %%eax\n\t"
    "int $0x80\n\t"
    "popl %%ebx"
    : "=a" (res)
    : "i" (__NR_wait4), "0" (WAIT_ANY), "c" (status), "d" (0), "S" (0));
    return res;
    }
    Next, compile this file in the
    oracle
    user's home directory by executing the
    following command:
    gcc -02 -shared -o $HOME/libcwait.so -fpic $HOME/libwait.c
    
    

    gcc -shared -o libcwait.so libcwait.c -fpic -O

  • Then add this library to the environment of the database user:

    export LD_PRELOAD=/home/oracle/libcwait.so

    Earlier, we put a similar line in .bash_profile.

7.2. Configure the Display

Execute the following commands as oracle User :


oracle@9iserver ~> xhost +localhost
oracle@9iserver ~> export DISPLAY=localhost:0.0

You can now connect to your desktop or optionally run the installation remotely, for instance using VNC.for instance running the installer from your Windows desktop

7.3. Start the Installation

Start the graphical installation application:

/path/to/oracle/Disk1/runInstaller

Now carry with Graphical setup (if you are not sure choose Standard database). From here the rest of the installation process is obvious.

7.4. Fix nodeinfo

Now installation should proceed without any linking errors but you will get one error in the end:


Parameter "nodeinfo" = NO_VALUE
Agent Service Failed

In order to fix this, run the following for starting the wizard after setup has finished:

netca &

Now change into $ORACLE_HOME and run ./lsnrctl start.

Check that the process is running:

ps afx | grep LISTEN