Open main menu

OpenVZ Virtuozzo Containers Wiki β

Editing Oracle9i in SLES9 container

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: