Staging

Posted 5 April, 2006 - 14:19

Set up the Filesystem and User Account

Create the directory structure to hold the ORACLE data and programs (figure 1.0). As root:

Figure 1.0

# mkdir -p /u01/app/oracle     # oracle user home 
# mkdir -p /u03/app/oradata    # Control file 1, redo logs member 1
# mkdir -p /u04/app/oradata    # Control file 2, redo logs member 2
# mkdir -p /u05/app/oradata    # Control file 3, redo logs member 3
# mkdir -p /u06/app/oradata    # tablespace datafiles

Create the oracle user and group (figure 1.1).

Figure 1.1

# groupadd dba
# useradd -c "Oracle Software Owner" -d /u01/app/oracle -g dba -m -s /bin/bash oracle
# passwd oracle
# chown -R oracle:dba /u0[1-6]

Set up a bash profile for the account and ensure that the DISPLAY environment variable is set up and exported as appropriate (figure 1.2). Test that all works well under the oracle account using:

Figure 1.2

$ export DISPLAY=`hostname -f`:0.0
$ xterm &

Use xhost if necessary.

Once all is well, make sure we are logged in as the oracle user and change directory to the staging area (figure 1.3).

Figure 1.3

$ cd Disk1
$ ./runInstaller

Unfortunately, the above yields unwelcome results (figure 1.4).

Figure 1.4

__libc_wait error during VM initialization: unable to load native library. Version GLIBC_2.0 not defined in libc.so.6 with link time reference.

We need to apply patch p3006854_9204_LINUX to put this right. Unzip the patch to a temporary directory and, as root, run the shell script. This will build a shared library, libcwait.so and place it in /etc. It will then update /etc/ld.so.preoad.

We try again (figure 1.5).

Figure 1.5

$ cd Disk1
$ ./runInstaller

But this time, the ORACLE Universal Installer (OUI) doesn't do anything when you click Next! I also notice that, after a reboot, named behaves erratically too. Names are not being resolved at all! Is this part of the problem? Bounced named and all seems fine. This is interesting. See note later on for explanation.

So, following this, I emptied /etc/ld.so.preload and copied libcwait.so to the oracle account's home directory. Defined LD_PRELOAD in the account's profile and set it to point to the file.

Final try (figure 1.6)...

Figure 1.6

$ cd Disk1
$ ./runInstaller


and we are finally up and running! Onwards to the OUI installation procedure...