Not so long ago, I had to quickly raise a small virtual machine under Linux to check the portability of one module in my application written in Java and calling Oracle SQL Loader via the java.lang.Process API.
Since, as you know, Oracle SQL Loader is not included in the delivery of Oracle Instant Client, for this task you must either copy the necessary libraries from the machine where the server is installed, or install a full Oracle server on this virtual machine.
Installing Oracle Enterprise Edition under Ubuntu is not a 5 minute task. Complete and accurate (according to the author - I myself have tried numerous similar instructions, I still never managed to completely deliver without errors) the instruction is here -
www.excession.org.uk/blog/installing-oracle-on-ubuntu-karmic- 64-bit.html . Compare how much hemorrhoids are and more difficult than installing the same Oracle EE under Windows - you launched OUI (Oracle Universal Installer) and follow it. In short, an excellent example of
flowing abstraction in a Linux environment (although it would seem a user-friendly distribution) in the spirit of Joel Spolsky.
')
But for the Express (XE) version there is still a human solution.
The original English is here -
www.varyonic.com/2010/01/installing-oracle-xe-on-ubuntu ., And I came across it not immediately, probably because I first tried to install the Enterprise Edition.
My free translation into Russian:
Oracle XE is officially available only under the x86 system, although it may be possible with the help of a tambourine, good luck, and someone's mother, and put on x64. It requires this miracle of nature 512MB of memory and 1GB of swap.
To install on Ubuntu via apt-get, add the following line to the /etc/apt/sources.list file:
deb oss.oracle.com/debian unstable main non-free
and then run as root (i.e. sudo .., he will ask for the password of the current user and execute the command as root):
wget oss.oracle.com/el4/RPM-GPG-KEY-oracle -O- | sudo apt-key add -
apt-get update
apt-get install oracle-xe
Libaio and bc libraries are available in the repository itself, and will be pulled automatically by dependencies, you no longer need to install them manually.
I hope someone will be useful.