Saturday, May 08, 2010

Ubuntu 10.04 LTS and Oracle under VirtualBox

Versions

I'm running Sun VirtualBox V3.1.6 r59338. Got it installed via Synaptic, not the Ubuntu Software Center. The latter does offer VirtualBox, but there seems something wrong with the networking components: I could not get a bridged network working: horrible errors at boot time about missing stuff.

Guest Additions

In order to get the Guest Additions installed correctly, I needed
yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel

Edit: in order to get the installer (of iAS 10.1.40 to work, I needed xorg-x11-deprecated-libs:
yum install xorg-x11-deprecated-libs
/Edit
After telling VirtualBox to load the VBoxGuestAdditions.iso in the "CD Player", I could mount and install:
mount /dev/cdrom /media
cd /media
./VBoxLinuxAdditions-x86.run

From here on, I basically followed these installation instructions.
[root@db10 ~]# groupadd dba10
[root@db10 ~]# groupadd oinstall
[root@db10 ~]# useradd oracle -g oinstall -G dba10 -c "Oracle Software Owner"
[root@db10 ~]# uname -r
2.6.18-164.15.1.el5
[root@db10 ~]# umount /media
[root@db10 ~]# mount -t vboxsf shared /media

Here, I created a permanently Machine Share Folder called "shared", which points to /home/frank/Public. This is where Oracle Installation software resides (via an NFS mount, but that's another story:
sudo mount cubestation:/volume1/Public /home/frank/Public)


I did, however, still need to install openmotif
[root@db10 ~]# yum install openmotif

and add the following lines tot /etc/sysctl.conf:
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144

Install fest

In order to prevent "Can't connect to X window", just issue the following:
frank@frank-cs03:~$ ssh -X oracle@192.168.1.230
oracle@192.168.1.230's password:
Warning: No xauth data; using fake authentication data for X11 forwarding.
/usr/bin/xauth: creating new authority file /home/oracle/.Xauthority
[oracle@db10 ~]$ cd /media/Oracle/10GR2_Linux/10201_database_linux32/database/
[oracle@db10 database]$ ./runInstaller

After a while of installing there is another point in time to take s snapshot, and declare this a baseline. This is the result:
[oracle@db10 ~]$ sqlplus system

SQL*Plus: Release 10.2.0.5.0 - Production on Sat May 8 17:53:06 2010

Copyright (c) 1982, 2010, Oracle. All Rights Reserved.

Enter password:

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining
and Real Application Testing options

SQL>

And yes, patch 4 (10.2.0.5) is out!

No comments: