Editing Oracle9i in SLES9 container

Jump to: navigation, search

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.
+
= Oracle9i in SLES9 SP2 VE =
 +
 
 +
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 $VEID --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 $VEID --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 $VEID --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 $VEID --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 $VEID --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
the official [http://ftp.novell.com/partners/oracle/docs/9205_sles9_install.pdf SUSE guide]
+
official [http://ftp.novell.com/partners/oracle/docs/9205_sles9_install.pdf SUSE guide]
  
  
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 59:
 
  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 75:
 
  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.
Line 99: Line 98:
  
 
NOTE: Oracle 9i installation on SLES9 is tricky and requires a lot of steps
 
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.
+
and workarounds described in official papers and in the internet. The following links may be helpful:
 
 
== External links ==
 
  
 
* http://ftp.novell.com/partners/oracle/docs/9205_sles9_install.pdf
 
* http://ftp.novell.com/partners/oracle/docs/9205_sles9_install.pdf
Line 107: Line 104:
 
* http://www.nextre.it/oracledocs/oracle9ionsles9amd64.html
 
* http://www.nextre.it/oracledocs/oracle9ionsles9amd64.html
 
* http://www.chmouel.com/blog/2006/12/21/error-loading-native-library-libnjni9so/
 
* http://www.chmouel.com/blog/2006/12/21/error-loading-native-library-libnjni9so/
 
[[Category:HOWTO]]
 

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: