2 Installing Oracle Coherence for Java
Note:
For instructions about installing a Coherence*Extend client distribution, see Installing a Client Distribution. For instructions about installing Coherence*Web to an application server, see Installing Coherence*Web to an Application Server.
This chapter includes the following sections:
- System Requirements
Coherence has different requirements for installation and runtime. - Performing a Coherence Installation
Coherence is installed using the Oracle Universal Installer. The installer provides both installation and patching services for Oracle products. - Setting Environment Variables
You can set the JAVA_HOME and COHERENCE_HOME environment variables. However, they are not required to run Coherence. - Running Coherence for the First Time
The COHERENCE_HOME/bin
directory includes scripts that are used during development and testing and are provided as a design-time convenience. - Integration with Maven
Software projects that use Maven can incorporate Coherence into their build process. - Installing a Coherence Patch
Coherence periodically releases patches to the Oracle Support Website. - Uninstalling Coherence
Coherence is uninstalled by using the Oracle Fusion Middleware deinstaller.
System Requirements
Coherence has different requirements for installation and runtime.
Runtime Requirements
The following are the suggested minimum system requirements for running Coherence in a development environment:
-
100 MB disk space for complete installation (includes API documentation and examples)
-
1 GB of RAM (assuming a maximum Java heap size of 512MB) – This amount of RAM can ideally support a maximum cache size of 150MB on a single node that is configured to store a backup of all data (150MB x 2) and leaves more than a 1/3 of the heap available for scratch and JVM tasks. This recommendation is considered a basic starting point and should not be considered a rule. See JVM Tuning in Administering Oracle Coherence.
-
JVM (JRE or JDK) 1.8 or later. A JDK is often used during development and offers tools for monitoring and troubleshooting Java applications, but a JDK is not required to run Coherence.
Note:
Customers that want to integrate with applications that are running older JVM versions can use older Coherence clients; however, the client is constrained to the platform and client features that are supported for that Coherence version.
-
Windows or UNIX-based system that supports the required Java Version
-
Network adapter
Installation Requirements
The following are the minimum requirements for using the Coherence installer:
Note:
The requirements for running the installer are not the same as the requirements for running Coherence.
-
300 MHz CPU
-
512 MB swap space
-
256 color monitor (required for GUI-based installation only)
-
Java Development Kit (JDK) 1.8.0_211 or later
Parent topic: Installing Oracle Coherence for Java
Performing a Coherence Installation
-
fmw_
version
_coherence.jar
– A full Coherence installation that can be run in either graphical mode or silent mode. See Performing a Coherence Installation In Graphical Mode and Performing a Coherence Installation In Silent Mode. -
fmw_
version
_coherence_quick.jar
– A minimum Coherence installation that is always run in silent mode. The quick installer provides a smaller footprint and does not include API documentation or examples. See Running the Coherence Quick Installer. -
fmw_
version
_coherence_quick_supplemental.jar
– A supplemental installation that is always run in silent mode. The supplemental installer contains only API documentation and examples. See Running the Coherence Supplemental Installer. -
fmw_
version
_wls.jar
– A full WebLogic Server installation that includes Coherence. See Installing Coherence with WebLogic Server.
Coherence is always installed to an ORACLE_HOME
/coherence
directory. The complete path to the coherence
directory is referred to as COHERENCE_HOME
throughout the Coherence documentation.
This section includes the following topics:
- Performing a Coherence Installation In Graphical Mode
- Performing a Coherence Installation In Silent Mode
- Running the Coherence Quick Installer
- Running the Coherence Supplemental Installer
- Installing Coherence with WebLogic Server
Parent topic: Installing Oracle Coherence for Java
Performing a Coherence Installation In Graphical Mode
The Coherence installer is distributed as an executable Java ARchive (JAR) file called fmw_
version
_coherence.jar
. Use the java
command to run the installer on the target computer. For detailed help on the installer's options, use the -help
argument when running the installer.
For information about the directories created by the installer, see Understanding the Oracle Coherence Directory Structure.
This section includes the following topics:
Parent topic: Performing a Coherence Installation
Starting the Installation Program
To perform a Coherence installation in graphical mode:
The installation program displays.
Parent topic: Performing a Coherence Installation In Graphical Mode
Navigating the Installation Screens
Table 2-1 lists the screens in the order that the installation program displays.
If you need additional help with any of the installation screens, click the screen name.
Table 2-1 Oracle Coherence Installation Screens
Screen | Description |
---|---|
Inventory Setup |
On UNIX operating systems, this screen will appear if this is the first time you are installing any Oracle product on this host. Specify the location where you want to create your central inventory. Make sure that the operating system group name selected on this screen has write permissions to the central inventory location. For more information about the central inventory, see Understanding the Oracle Central Inventory in Installing Software with the Oracle Universal Installer. This screen will not appear on Windows operating systems. |
Welcome |
This screen introduces you to the product installer. |
Installation Location |
Use the drop-down list to select an existing |
Installation Type |
Select which Coherence options to install. |
Prerequisite Checks |
This screen displays a list of system checks that are performed to ensure that Coherence is certified on the system. |
Installation Summary |
Verify the installation. Click Save Response File if you intend to duplicate this installation on additional computers. A response file is created that can be used to perform a silent install with the exact same installation settings. See Performing a Coherence Installation In Silent Mode. |
Installation Progress |
This screen allows you to see the progress of the installation. |
Installation Complete |
This screen appears when the installation is complete. Review the information on this screen, then click Finish to dismiss the installer. |
Parent topic: Performing a Coherence Installation In Graphical Mode
Performing a Coherence Installation In Silent Mode
Silent mode allows Coherence to be installed without using a graphical interface and is ideal for remote installations or when incorporating the installation as part of a script. Silent mode typically uses a response file (.rsp
) that contains the installation parameters as name=value
pairs. Create a response file by running the installer in graphical mode and then saving the installation parameters to a response file at the Installation Summary screen. Use the saved file to replicate the installation on other computers or modify the file to change the installation as required.
To perform a Coherence installation in silent mode:
Parent topic: Performing a Coherence Installation
Running the Coherence Quick Installer
The quick install is distributed as an executable JAR file called fmw_
version
_coherence_quick.jar
. Use the java
command to run the installer on the target computer. For detailed help on the installer's options, use the -help
argument when running the installer.
The quick install performs a silent install with no options. The distribution includes less lifecycle tools but does register the Coherence components as part of the Oracle inventory, which allows future lifecycle operations to work. In addition, the installation does not include API documentation or code examples. The result is a faster installation process and a smaller installation footprint than the regular Coherence installer and is an ideal method for installing Coherence as part of a script without user interaction.
To perform a Coherence quick installation:
Parent topic: Performing a Coherence Installation
Running the Coherence Supplemental Installer
The supplemental install is distributed as an executable JAR file called fmw_
version
_coherence_quick_supplemental.jar
. The distribution is used to install the API documentation and code examples to an existing Coherence installation. The supplemental installer performs a silent install with no options. It is typically used together with the quick installer to perform an installation as part of a script without user interaction. If you do not require the API documentation or code examples, then you can skip the supplemental installation.
Parent topic: Performing a Coherence Installation
Installing Coherence with WebLogic Server
The WebLogic Server installer includes the Coherence distribution and installs Coherence in the same ORACLE_HOME
directory as WebLogic Server. WebLogic Server includes a Coherence integration that standardizes how Coherence is managed and deployed within a WebLogic Server domain. The integration makes Coherence a subsystem of WebLogic Server and allows Coherence environments to be administered using WebLogic Server tools and infrastructure, such as Java EE-styled packaging and deployment, remote server management, server clusters, WebLogic Scripting Tool (WLST) automation, and configuration through the Administration Console. For details about installing Coherence with WebLogic Server, see Planning the Oracle WebLogic Server Installation in Installing and Configuring Oracle WebLogic Server and Coherence.
Parent topic: Performing a Coherence Installation
Setting Environment Variables
You can set the JAVA_HOME and COHERENCE_HOME environment variables. However, they are not required to run Coherence.
-
JAVA_HOME – This variable is used when running the scripts that are included in the COHERENCE_HOME
/bin
directory. The value of this variable is the full path to the Java installation directory. If JAVA_HOME is not set, the scripts use the computer's default Java installation. Set this variable to ensure that the scripts use a specific Java version. -
COHERENCE_HOME – This variable is typically set as a convenience. The value of this variable is the full path to the ORACLE_HOME
/coherence
directory.
Parent topic: Installing Oracle Coherence for Java
Running Coherence for the First Time
/bin
directory includes scripts that are used during development and testing and are provided as a design-time convenience. The cache-server
script starts a cache server using a default configuration. The coherence
script starts a cache factory instance using a default configuration. The cache factory instance includes a command-line tool that is used to (among other things) create and interact with a cache.
In this scenario, a basic cluster is created and then the command-line tool is used to create and interact with a cache that is hosted in the cluster.
This section includes the following topics:
Create a Basic Cluster
In this step, a basic cluster is created that contains three separate Java processes: a cache server and two cache factory instances. For simplicity, the three processes are collocated on a single computer. The cache server, by default, is configured to store backup data. The two cache factory instances, by default, are configured not to store backup data. As each process is started, they automatically join and become cluster members (also referred to as cluster nodes).
For this example, the Coherence out-of-box default configuration is slightly modified to create a unique cluster which ensures that these cluster members do not attempt to join an existing Coherence cluster that may be running on the network.
Note:
The Coherence default behavior is to use multicast to find cluster members. Coherence can be configured to use unicast if a network does not allow the use of multicast. See Using Well Known Addresses in Developing Applications with Oracle Coherence.
To create a basic cluster:
Parent topic: Running Coherence for the First Time
Create a Cache
In this step, a cache is created and hosted on the basic cluster. A simple string is entered into the cache using the command-line tool of the first cache factory instance. The string is then retrieved from the cache using the command-line tool of the second cache factory instance. The example is simplistic and not very practical, but it does quickly demonstrate the distributed nature of Coherence caches. Moreover, these steps are typically performed directly using the Coherence API.
To create a cache:
Parent topic: Running Coherence for the First Time
Integration with Maven
Oracle Middleware provides a plug-in that synchronizes an Oracle home directory with a Maven repository and standardizes Maven usage and naming conventions. The plug-in allows Coherence artifacts to be uploaded to a Maven repository, which simplifies how the artifacts are consumed in development projects. See Installing and Configuring Maven for Build Automation and Dependency Management in Developing Applications Using Continuous Integration.
In addition, the Maven integration includes an archetype and packaging plug-in for a Coherence Grid Archive (GAR). A Coherence GAR is a module type that is typically used to deploy Coherence applications within a WLS domain. The Maven archetype plug-in generates a GAR structure and provides example configuration files. The packaging plug-in generates a GAR based on a project's contents and dependencies and ensures that the dependencies, source, and configuration files are copied into the GAR.
The Maven plug-in and configuration files for Coherence are located in the COHERENCE_HOME
/plugins
directory. The Maven GAR plug-in and archetype are installed in the enterprise repository as part of the synchronization plug-in. See Building Oracle Coherence Projects with Maven in Developing Applications Using Continuous Integration.
Parent topic: Installing Oracle Coherence for Java
Installing a Coherence Patch
Parent topic: Installing Oracle Coherence for Java
Uninstalling Coherence
To uninstall Coherence using the Deinstallation wizard, start the deinstaller. Use
either the Coherence ORACLE_HOME/oui/bin/deinstall.sh
script on
UNIX-based platforms or the Coherence ORACLE_HOME\oui\bin\deinstall.cmd
script on Windows.
A shortcut to the script is available on Windows and is located in the Oracle
program group on the start menu.
Note:
If Coherence is installed as part of a WebLogic Server installation, it is not possible to uninstall Coherence separately from WebLogic Server.Table 2-2 lists the screens in the order that the Deinstallation program displays.
Table 2-2 Oracle Coherence Deinstallation Screens
Screen | Description |
---|---|
Welcome |
This screen introduces you to the product deinstaller. |
Deinstallation Summary |
This screen lists the features that will be deinstalled. Click Deinstall to proceed. |
Deinstallation Progress |
This screen displays and shows all tasks that have succeeded and failed. |
Deinstallation Complete |
This screen displays and shows a summary of the Deinstallation process. Click Finish to close the Deinstallation program. |
Note:
Additional files in the ORACLE_HOME directory must be manually deleted. On Windows, you must also manually delete the Oracle program group on the Start menu.Parent topic: Installing Oracle Coherence for Java