6,534
edits
Changes
m
NOTE: {{Note|this may require to use vncviewer from SLES9 OS, since newer vncviewer's are not compatible with it.}}
VE -> container, CT
This small HOWTO is to help people to install Oracle 9i in SLES9-SP2 VEcontainer.
Installation of Oracle is quite a complicated procedure and actually has little
to do anything with VE container or OpenVZ virtualization, but is frequently asked about.
Installation of other Oracle versions in other VE container OS can differ and should be decribedin separate Wiki pages.
== Inside host system (VE0CT0) ==
First, create and cache SLES9 x8664.
You will need to install gcc, binutils and other packages required by Oracle
either in SLES9 cache or alter directly inside the VEcontainer.
Create VE a container based on latest SLES9 x8664 x86_64 template:
vzctl create $CTID --ostemplate sles-9-x86_64
Assign some IP address to the VEcontainer: vzctl set $CTID --ipadd $VE_IP_ADDRESS CT_IP_ADDRESS --save
Setup nameserver inside VE the container (/etc/resolv.conf):
vzctl set $CTID --nameserver $DNS_IP
Set enough resource limits inside VE the container (in this example ~2GB RAM):
vzctl set $CTID --save --applyconfig vps.2048MB
Set enough disk space for the VE container (e.g. to 15GB):
vzctl set $CTID --save --diskspace 15000000
== Inside VE the container ==
All the following instructions are not OpenVZ/Virtuozzo specific and mostly taken as is from
Login to VE container and do the following:
Run '''yast''' and setup SLES9 repository or SLES9 CDs local repository,
ln -s /usr/lib/libdb.so.3 /usr/lib/libdb.so.2
Setup graphical access to VE the container via ssh or via vnc, at your choice:
* For access via ssh:
** Change X11Forwarding in /etc/ssh/sshd_config to 'yes' inside VEthe container** Restart sshd inside VE the container (/etc/init.d/sshd restart)** Login to VE the container via ssh with '-X' option (run this command from your host): ssh -X oracle@$VE_ADDRESSCT_ADDRESS
* For access via VNC, do inside VEcontainer:** Install XFree86, XFree86-Vnc packages inside VEthe container** Login to VE the container as 'oracle' (run this command from your host): ssh oracle@$VE_ADDRESSCT_ADDRESS
** start VNC server:
Xvnc :0 &
export DISPLAY=:0
** From your host attach to vnc screen (run this command from your host):
vncviewer $VE_ADDRESSCT_ADDRESS:0
Now, as ''''oracle'''' user inside VEthe container:
Get Oracle 9iR2 (9204) Software from oracle web or use your Oracle Disks.