Wednesday, December 05, 2007

Install Oracle 11g on Fedora 7 DomU at SXDE 76 Dom0 (x64/x86)

First install F7 DomU. Size of image file ( f7pvm.img ) should be
at least 15 GB in case when OUI 11g database folder would be located
on NFS share. If you intend upload on DomU
filesystem increase image size up to 20 GB to install all packages at a time
and reduce number of additional packages required afterwards :-

# lofiadm -a /export/home/isos/f7.iso
# mount -o ro -F hsfs /dev/lofi/1 /mnt
# share -F nfs /mnt
# virt-install -n F7pvm -p -r 1024 --nographics -x "console=hvc0" \
-f /second_root/images/f7pvm.img -l nfs:<IP-ADDRESS Dom0>:/mnt

When installer brings you to "Software to be installed" customization screen,
select option customize for the set of the packages to be placed on the system
and mark all groups except "Clusters".
When install will be completed following additional rpms
will have be downloaded from the Net and installed on F7 DomU

# rpm -Uvh libaio-0.3.106-3.2.x86_64 \
# rpm -Uvh unixODBC-devel-2.2.12-2.fc7.x86_64.rpm
# rpm -Uvh sysstat-7.0.4-3.fc7.x86_64.rpm

Tune F7 DomU for Oracle 11g install as advised in [1], except
adding lines to /etc/pam.d/login, otherwise console login to
F7 DomU will be lost and more over F7 DomU will start malfunction.
Enable SSH X11 forwarding on F7 DomU to perform remote Oracle
installation with Cygwin/X remote Windows XP desktop.
Start X-Server and open X-terminal on Windows desktop and issue:-

$ xhost +<IP-ADDRESS DomU>
$ ssh -X oracle@<IP-ADDRESS DomU>
$ /mnt/runIstaller &

In my case remote nfs share , containing OUI database folder,
was previously mounted on /mnt directory of F7 DomU

When done verify remote connections to Oracle Instance at F7 DomU,
launching windows Internet explorer to

https://<IP-ADDRESS DomU>:1158/em/

Shutdown oracle and F7 domU:-

oracle@ServerFDR7$ emctl stop dbconsole
oracle@ServerFDR7$ dbshut $ORACLE_HOME
oracle@ServerFDR7$ su -
# shutdown -y -i0 -g0

Run "xm list" at SXDE 76 Dom0 and make sure F7 DomU
has been shutdown.

# xm start F7pvm
# xm console F7pvm

Login as root to DomU:-

# su - oracle
oracle@ServerFDR7$ dbstart $ORACLE_HOME
oracle@ServerFDR7$ emctl start console

Verify connections to Oracle instance from Solaris 76 Dom0 :-