Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Installation Guide

Testing Using the memory IP Java Example

  • Last Updated: April 5, 2026
  • 1 minute read
    • OpenAccess SDK
    • Version 8.1
    • Documentation

The following procedure uses a shell script on a 32-bit AIX machine.

  1. Build the memory IP Java example:

    $ JRE=/usr/java/jre # set JRE to value used in installation

    $ alias javac=$JRE/../bin/javac

    $ javac -classpath ip/oajava/oasql.jar ip/oajava/*/*.java

  2. Create a new data source by duplicating the DataSourceName service data source. Set Port to OpenAccessSDK810_Java and ServerDataSource to memory.

    $ vi $ODBCINI
    [MemoryJavaExample]
    Driver=/usr/oaodbclocal810/lib/ivoal27.so
    Description=Memory Ip Java example
    Host=/usr/oaodbclocal810/cfg/oadm.ini
    Port=OpenAccessSDK810_Java
    ServerDataSource=memory
    CustomProperties=
    
  3. If necessary, add platform-specific information (see Platform-specific Requirements).

    • Add the value of JRELIBPATH to library path or edit oalocal.sh.
    • On AIX 32-bit, add LDR_CNTRL=USERREGS.
    • On HP-UX PA-RISC, add LD_PRELOAD=$JREPRELOAD.
  4. Test the data source MemoryJavaExample using tools/odbcisql.

    $ tools/odbcisql

    ISQL> CONNECT pooh*bear@MemoryJavaExample

    ISQL> SELECT * FROM emp;

    ISQL> SELECT * FROM dept;

    ISQL> SELECT * FROM oa_tables;

TitleResults for “How to create a CRG?”Also Available inAlert