Business Intelligence – Oracle

Archive for October 9th, 2007

Oracle Coherence – Installation

Posted by Venkatakrishnan J on October 9, 2007

If you have read my previous post on coherence, i had mentioned that i was able to install the product and it looked as though my OC4J had regained life as it was bit fast. I believe i was wrong in assuming that it was because of coherence. I went through some documentation and after a couple of emails, this is what i found out

1.   Coherence will be very useful in situations where there is need for sharing/managing huge amounts of data across JVMs. This could be very useful in situations wherein we have a clustered environment and would result in huge performance boosts by having distributed caching.

2.   One can have local caching enabled for single node machines. This could help for standalone as well as server applications. But generally, considered a overkill for a smaller application.

3.   Coherence does not configure itself automatically for custom applications. One would have to include it while building the underlying code to leverage the functionality.

4.   Installing Coherence on an application server does not do anything. It just makes the Application Server Coherence Aware. One would have to build applications from scratch to get the value of coherence.

5.   One can have Coherence to cache Static JSPs or htmls. But again this is not done out of the box. One would have to enable custom codesets to achieve this.

Well, now everything looks clear. Since, Coherence did not cache any of my JSPs, i wanted to find out why my local OC4J was reacting very fast. Looks like, during installation my OC4J was installed by a newer OC4J. Now lets look at a step by step approach to install coherence in Oracle AS 10.1.3.

1.   Download Oracle Coherence and extract the zip file. Once this is done, go the lib folder under the extract from command line. Enter the following.

   java -jar coherence.jar


2.   Start another instance by entering the above command in a new command prompt. Now we should be having 2 instances running. You should be seeing the who? prompt in both the consoles.


3.   The next step is to install the Web Session Management for Oracle AS 10.1.3. Go to the lib folder again from command prompt and enter the following command

      jar -xvf webInstaller.jar web-install/coherence-web.jar

This would create a file called webInstaller.jar under a folder called web-install. Copy this webInstaller.jar to one folder up (lib folder).

4.   Open a command prompt and navigate to the lib folder. Enter the following command.

      java -jar webInstaller.jar D:\oracle\OracleBI\oc4j_bi\j2ee\home\applications\analytics -inspect -server:Oracle/10.1.3.x


You should now have Coherence completely installed on your machine. This is pretty simple and does not warrant a seperate step by step article. But i thought i would write an article anyway for starters who would like to know what Coherence does. The install guide is pretty comprehensive and covers almost everything. One can get the install docs here

Posted in All Posts, Coherence | 1 Comment »