Thursday 6 September 2012

Installing Oracle Complex Event Processing 11g on Fedora 16

This is just a quick guide on how to install Oracle Complex Event Processing 11g on Fedora 16 64-bit. I will cover installation of OCEP itself (a breeze) and Eclipse 3.6.2 and the OCEP Eclipse plug-in. My first attempts at installing, while superficially successful, resulted in some stability problems with Eclipse. After a bit of fiddling around I finally figured out how to get a stable environment.

For 64-bit Linux you will need to download the following:
  • ofm_ocep_linux_11.1.1.6.0_64_disk1_1of1.zip (Oracle Complex Event Processing 11g for 64-bit Linux)
  • eclipse-java-helios-SR2-linux-gtk-x86_64.tar.gz (Eclipse Helios 3.6.2 SR2 for 64-bit Linux)
  • Any recent release of Sun JDK 1.6 for 64-bit Linux (I used JDK 1.6.0_27)

Installing Oracle Complex Event Processing 11g

After downloading the installer zip file, unzip it. The zip archive contains a single executable named ofm_ocep_linux_11.1.1.6.0_64_disk1_1of1.bin. Change the permissions of the file to be executable (chmod a+x) and then execute it to start the OCEP graphical installer:
./ofm_ocep_linux_11.1.1.6.0_64_disk1_1of1.bin
If you would prefer to install in text-mode, add the following option when starting the installer:
-mode=console
Proceed with the installation as per normal. It's a very simple install. Remember to select the Custom Install option if you would like the OCEP samples installed as well.

Installing Eclipse Helios 3.6.2

Follow the normal procedure for installing Eclipse - just unzip it where you want it installed.

After installing eclipse, edit the eclipse.ini file and add the following lines:
-vm
/opt/jdk1.6.0_27/bin/java
* Amend the above to reflect the location of where you installed the Sun JDK.

Adding this option into the eclipse.ini file was the key for me to get a stable Eclipse. Without this setting Eclipse was Segfaulting on me frequently - often on startup. (Note the segfaults occurred when I used the default OpenJDK Java installed in Fedora. Strangely enough this didn't seem to be an issue when using the same OpenJDK in a 32-bit Oracle Enterprise Linux VM.)

Start Eclipse and install the OCEP plugin by going into the Help - Install New Software menu option in eclipse. The OCEP Eclipse plugin is in the ocep_11.1/eclipse-update-site directory under where you installed OCEP.

That's all. With luck you now have a stable and functional installation of Oracle Complex Event Processing 11g.