Skip Headers
Oracle® Ultra Search Administrator's Guide
11g Release 1 (11.1)

Part Number B28330-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

B Altering the Crawler Java Classpath

The Oracle Ultra Search crawler is a pure Java application that runs in a Java Virtual Machine. A Java Virtual Machine uses the Java classpath to find classes during runtime. When Oracle Ultra Search is installed, the default crawler classpath is stored in the database. Whenever a new Oracle Ultra Search instance is created, this default classpath is copied and used as the crawler classpath for that specific instance.

Reasons for Altering the Crawler Java Classpath

Usually, you do not need to alter the crawler Java classpath. However, there are certain reasons for you to do so. One reason could be to replace the JavaMail reference implementation with a third party JavaMail implementation.

Difference Between the Crawler Classpath and the Remote Crawler Classpath

The crawler classpath is the classpath of a crawler that runs on the same host as the Oracle Ultra Search backend. However, Oracle Ultra Search enables remote crawlers to be run on other hosts for scalability.

Remote crawler activation uses Java remote method invocation (RMI) technology. As a result, the classpath setting of a remote crawler is inherited from the classpath settings of the RMI registry and RMI daemon.

Altering the Crawler Java Classpath on the Oracle Ultra Search Server Host

  1. Log on to the host where the Oracle Ultra Search backend is installed. Locate the file $ORACLE_HOME/ultrasearch/admin/wk0addcpath.sql.

  2. Using SQL*Plus, run the wk0addcpath.sql script as the WKSYS super-user or as a database user who has been granted the super-user privileges. (This script only updates the CRAWLER_CONFIG_DEFAULT table. You also need to reconfigure your crawlers to get the WK$CRAWLER_CONFIG table updated correctly.)

  3. Specify whether you want to alter the default classpath or an instance-specific classpath, when prompted. Altering the default classpath causes all subsequently created instances to use that classpath. Existing instances are not modified.

  4. Enter the Oracle Ultra Search instance name if you are attempting to modify an instance-specific classpath, when prompted. If you are modifying the default classpath, then you do not need enter anything here.

  5. Specify whether you want to update the entire classpath or append to it, when prompted. Appending to a classpath adds entries to the beginning of it. Usually, earlier entries in the classpath override later entries in the case of duplicate classes.

  6. Enter the new classpath if you are updating the entire classpath, when prompted. If you are appending one or more directories or library files to the classpath, then enter them separated by the classpath separator for the platform where the Oracle Ultra Search backend is installed (the colon on UNIX platforms, and the semicolon on Windows).

Altering the Crawler Java Classpath on a Remote Crawler Host

  1. Log on to the remote crawler host where the Oracle Ultra Search middle tier is installed. On a UNIX computer, locate and open the file $ORACLE_HOME/ultrasearch/tools/remotecrawler/scripts/unix/ define_env. On a Windows computer, locate and open the file $ORACLE_HOME\ultrasearch\tools\remotecrawler\scripts\winnt\ define_env.bat.

  2. The define_env file specifies all environment settings used by the RMI subsystem. To alter the classpath, use a text editor to modify the APPLICATION_CLASSPATH variable.

  3. Restart the RMI subsystem for these changes to take effect.

See Also:

"Using the Remote Crawler" for more details on starting up the RMI subsystem