Menu

Readme

Marcelo F. Ochoa

How to install Lucene Oracle Domain Index implementation

  • Requirements

    • JDeveloper 11g only if you want to edit Java code.
    • Ant 1.7.0
    • Sun JDK 1.5.0_05/1.4.2 ($ORACLE_HOME/jdk directory works fine as Java Home for compiling on 10g and 11g)
    • Linux/Windows Database Oracle 10g 10.2/11g/12c production
  • Install binary distributions
    Binary distributions are available at SourceForge.net and provides a very straightforward installation.
    http://sourceforge.net/project/showfiles.php?group_id=56183&package_id=255524

  • 11g/12c Binary Distribution
    Edit your ~build.properties file with your Database values, for example:

    db.str=orcl
    db.usr=LUCENE
    db.pwd=LUCENE
    dba.usr=sys
    dba.pwd=change_on_install
    javac.debug=true
    javac.source=1.4
    javac.target=1.4

db.str is your SQLNet connect string for your target database, check first with tnsping
ORACLE_HOME environment setting is required and properly configured to an Oracle 11g database layout.
Upload, install and test your code into the database

# ant install-odi
# ant test-domain-index

For Oracle 11g/12c you can perform a post-installation step:

# ant jit-lucene-classes

This target force to translate all Lucene, Snowball and OJVMDirectory classes to assembler.
Instead of waiting that the database compile it by detecting most used classes or method.

  • 10g Binary Distribution
    First edit your ~/build.properties with something like:

    db.str=orcl
    db.usr=LUCENE
    db.pwd=LUCENE
    dba.usr=sys
    dba.pwd=change_on_install
    javac.debug=true
    javac.source=1.4
    javac.target=1.4

db.str property is a SQLNet connect string for the target database.
ORACLE_HOME environment setting is required and properly configured to an Oracle 10g database layout.
Upload, install and test your code into the database

# ant ncomp-odi
# ant test-domain-index

For Oracle 10g you can perform a post-installation step:

# ant ncomp-status

This target reports which classes are traslated to assembler using NCOMP compiler.

  • For compiling from sources refers to this wiki information.