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 | + | = 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 | + | to do anything with VE or OpenVZ virtualization, but is frequently asked about. |
− | asked about. | ||
− | Installation of other Oracle versions in other | + | 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 ( | + | == 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 | + | either in SLES9 cache or alter directly inside the VE. |
− | Create | + | Create VE based on latest SLES9 x8664 template: |
− | vzctl create $ | + | vzctl create $VEID --ostemplate sles-9-x86_64 |
− | Assign some IP address to the | + | Assign some IP address to the VE: |
− | vzctl set $ | + | vzctl set $VEID --ipadd $VE_IP_ADDRESS --save |
− | Setup nameserver inside | + | Setup nameserver inside VE (/etc/resolv.conf): |
− | vzctl set $ | + | vzctl set $VEID --nameserver $DNS_IP |
− | Set enough resource limits inside | + | Set enough resource limits inside VE (in this example ~2GB RAM): |
− | vzctl set $ | + | vzctl set $VEID --save --applyconfig vps.2048MB |
− | Set enough disk space for the | + | Set enough disk space for the VE (e.g. to 15GB): |
− | vzctl set $ | + | vzctl set $VEID --save --diskspace 15000000 |
− | == Inside | + | == 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 | ||
− | + | official [http://ftp.novell.com/partners/oracle/docs/9205_sles9_install.pdf SUSE guide] | |
− | Login to | + | 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 | + | 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 | + | ** Change X11Forwarding in /etc/ssh/sshd_config to 'yes' inside VE |
− | ** Restart sshd inside | + | ** Restart sshd inside VE (/etc/init.d/sshd restart) |
− | ** Login to | + | ** Login to VE via ssh with '-X' option (run this command from your host): |
− | host): | + | ssh -X oracle@$VE_ADDRESS |
− | ssh -X oracle@$ | ||
− | * For access via VNC, do inside | + | * For access via VNC, do inside VE: |
− | ** Install XFree86, XFree86-Vnc packages inside | + | ** Install XFree86, XFree86-Vnc packages inside VE |
− | ** Login to | + | ** Login to VE as 'oracle' (run this command from your host): |
− | ssh oracle@$ | + | 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 $ | + | vncviewer $VE_ADDRESS:0 |
− | + | 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 | + | 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: |
− | |||
− | |||
* 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/ | ||
− | |||
− |