Article ID: 3037, created on Nov 2, 2007, last review on May 9, 2014

  • Applies to:
  • Virtuozzo containers for Linux


The article below will show how to create VE based on SUSE Linux Enterprise Server 9 64-bit OS template and install Oracle 9i into it.

Inside host system (VE0):

Download and install SLES9 OS template and development application template on a Virtuozzo server.

Create VE based on the latest SLES9 x86_64 OS template:
# vzctl create $VEID --pkgset sles-9-x86_64

Assign IP address to the VE:
# vzctl set $VEID --ipadd $VE_IP_ADDRESS --save

Setup nameserver inside VE (/etc/resolv.conf):
# vzctl set $VEID --nameserver $DNS_SERVER_IP --save

Add devel packages to VE:
# vzpkgadd $VEID devel-sles9-x86_64

Set enough resource limits for VE (in this example ~2GB RAM):
# vzctl set $VEID --save --applyconfig vps.2048MB

Set enough disk space for the VE (e.g. to 15GB):
# vzctl set $VEID --save --diskspace 15000000

All the following instructions are not Virtuozzo specific and mostly taken as is from official SUSE guide

Log into VE as root and do the following:

Run 'yast' and setup SLES9 repository or SLES9 CDs local repository, then install the following packages:
- glibc-devel-32bit
- pdksh
- libaio
- libaio-devel

Now install 'orarun' package from SLES9 SP2 CD2. You can use YaST setup tool or manual installation instruction to install 'orarun' package.

After 'orarun' package is installed enable 'oracle' user:
# usermod -s /bin/bash oracle

Specify password for 'oracle' user
# passwd oracle

Run 'rcoracle' script to set kernel parameters. Ignore any errors.
# /usr/sbin/rcoracle start

Create link for libdb library:
# ln -s /usr/lib/ /usr/lib/

Setup graphical access to VE via ssh or via vnc, at your choice:
1. For access via ssh:
1.1 Change X11Forwarding in /etc/ssh/sshd_config to 'yes' inside VE
1.2 Restart sshd inside VE (/etc/init.d/sshd restart)
1.3 Login to VE via ssh with '-X' option (run this command from your host):
# ssh -X oracle@$VE_IP_ADDRESS

2. For access via VNC, do inside VE:
2.1 Install XFree86, XFree86-Vnc packages inside VE
2.2 Login to VE as 'oracle' (run this command from your host):
# ssh oracle@$VE_IP_ADDRESS
2.3 start VNC server:
oracle# Xvnc :0 &
2.3 set DISPLAY environment variable:
oracle# export DISPLAY=:0
2.4 Attach to vnc screen (run this command from your host):
# vncviewer $VE_IP_ADDRESS:0
NOTE: this may require to use vncviewer from SLES9 OS, since newer vncviewer's are not compatible with it.

Now, as 'oracle' user inside VE:

1. Get Oracle 9iR2 (9204) Software from Oracle website or use your Oracle Disks.
If you have downloaded software then gunzip and cpio files.
a. gunzip $file_name
b. cpio command: cpio -idmv < file_name

It will create three directory Disk1, Disk2 and Disk3.

Now, start Oracle installer:
oracle# Disk1/runInstaller

and carefully follow installation instructions (we used default options).

After the installation succeeds Oracle automaticaly runs a created by default database instance, so you can use 'sqlplus' utility to test it.

NOTE: Oracle 9i installation on SLES9 is tricky and requires a lot of steps and workarounds described in official papers and in the internet.

The following links may be helpful:

e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF