www.openlinksw.com
docs.openlinksw.com

Book Home

Contents
Preface

ODBC Drivers

Windows Data Source Configuration
Unix Data Source Configuration
Creating Data Sources Using iODBC Administrator Manual Configuration DB2 Informix Ingres Oracle PostgreSQL MySQL Progress SQL92 Microsoft or Sybase SQL Server (TDS) ODBC-JDBC Bridges for Java
Mac OS X Data Source Configuration
ODBC to Jet Data Type Mapping
New Features

5.2. Unix Data Source Configuration

The OpenLink ODBC Lite for UNIX is the family name of a suite of Single Tier ODBC Drivers supporting a wide range of leading relational database engines. These drivers do not require the installation of any additional software on the server machine hosting the database engine. This is due to the fact that Single Tier driver implementations depend on the database(s) that you are connecting with to provide database connectivity and network services (this software typically installed at database engine installation time).

Before a Lite Driver can be used, a data source must be defined either manually, or by using the HTTP based iODBC Administrator.

5.2.1. Creating Data Sources Using iODBC Administrator

The OpenLink Lite Drivers for Unix can be installed within a previously installed Multi-Tier installation or completely standalone. If installed within a Multi-Tier installation the Lite Driver can share the Admin Assistant installed with the Multi-Tier for configuring data source. In the absence of a Multi-tier installation, an HTTP based iODBC Administrator is installed and used to configure the drivers. The download wizard for Unix Lite will always offer install.sh and the HTTP based iODBC Administrator, and then show the available Lite Drivers for the required operating system.

A Lite driver package contains only the driver and installation files, e.g. the sql_lt.taz file contains:

      bin/openlink.ini		Contains the Environment settings
      bin/inifile
      bin/freetds.conf		Part of the FreeTDS library
      lib/sql_st_lt.la
      lib/sql_st_lt.so		The actual lite driver
      scripts/SQLServer/oplrvc.sql
    

During the installation of the OpenLink Lite Drivers for Unix, the install.sh script will generate a file called bin/iodbc-admin-httpd.sh. This is a shell script used to start and stop the HTTP based iODBC Administrator. The usage is as follows:

      $ iodbc-admin-httpd.sh start  # Starts the HTTP based iODBC Administrator
      $ iodbc-admin-httpd.sh stop   # Tries to stop the HTTP based iODBC Administrator
      $ iodbc-admin-httpd.sh status # Shows if the program is running
    

5.2.1.1. Wizard Based Configuration

  1. Start up the HTTP based iODBC Administrator, as explained above.

  2. Open up your Internet Browser and then enter the following URL: http://localhost:8000/ (note the OpenLink HTTP based iODBC Administrator listens at port 8000 by default, this value is set at installation time).

  3. Expand the menu by clicking on the "Client Components Administration", then "Data Source Name Configuration", and "Edit Data Sources by Wizard".

    Figure: 5.2.1.1.1.
  4. Click on the "Edit ODBC Data Sources" hyperlink, this takes you into the actual ODBC Data Source configuration wizard.

    Figure: 5.2.1.1.1.
  5. Click the "Add" button to commence the process of creating a new Lite ODBC DSN, the wizard presents you with a list of Lite Drivers installed on your system. Select the driver required. In this example the OpenLink SQL Server Lite Driver is highlighted. Then click on the "Next" button.

    Figure: 5.2.1.1.1.
  6. Enter values into the "Name" and "Description" fields as follows:

    Name

    Enter a value that uniquely identifies the DSN being created. This example uses the name "sqlserver_dsn" to indicate that this DSN will be connecting to SQL Server database.

    Description

    Enter a value that provides additional information that helps in describing the purpose of the DSN that you are creating.

    Once completed click on the "Next" button.

    Figure: 5.2.1.1.1.
  7. Enter values into the "Database Name", "Server", and "Username" fields as follows:

    Database Name

    Enter the name of the database you which to make a connection to. Note in the case of the ODBC-JDBC Bridge this would be the name of the JDBC Driver to be used.

    Connection Options

    Enter database server connection values for the database that your are connecting to.

    The label shown named Server will change according to the ServerType selected on the previous wizard page to provide a more suitable cue. The table below shows the alternative descriptions and there significance.

    Table: 5.2.1.1.1. OpenLink Lite for Unix Server Types
    Server Type Label Name Description
    DB2 Server/Adapter Name of DB2 Instance.
    Informix Server Informix Connect connection parameters.
    Ingres & OpenIngres Ingres Net (vnode) Name of Ingres vnode to connect to.
    Oracle NET 8 Service Name Name of Oracle 8 service as defined with TNS Listener or Oracle 8 SID.
    Progress DB Connection Options Progress connection options.
    SQLServer Server SQLServer server name.
    ODBC-JDBC Bridge URL String JDBC Connect String

    Username

    Enter a valid username for the database that you are connecting to, you can leave this blank and be prompted for values at actual database connect time.

    Click on the "Next" button.

    Figure: 5.2.1.1.1.
  8. Select the Environment section name used to identify the group of environment parameters for the Database. In most cases this does not need to be changed. For advanced use, multiple environments may be defined. The pick list of existing Environment groups contains only the currently defined Environments that are associated with the same Driver currently being configured. Choose from an existing environment, or create a new environment by entering a name.

    Enter environment values into the text area as parameter=value with each parameter on a separate line.

    Once completed click on the "Next" button.

    Figure: 5.2.1.1.1.

    These environment varable values are database specific and are described in detail later in this section. The list below will allow you to quickly jump to the relevant section:

  9. Enter values into the following fields:

    Read-only connection

    Check this box if you require a read only session.

    Disable Interactive Login

    Check this box if you do not want to be presented with a login dialog window.

    Defer fetching of long data

    Check this box to defer the fetching of long data. See the Release Notes section for more details.

    Once completed click on the "Next" button.

    Enter values into the "Row Buffer Size", and "Jet Fix" fields as follows:

    Row Buffer Size

    Enter a value that represents the number of records that you would like your ODBC driver to retrieve during each network hop. A network hop represents the number of times your OpenLink ODBC send a message across the network to retrieve records from your remote database server. The feature can be used to improve ODBC record retrieval performance.

    Jet Fix

    Check this box to overcome an old Jet Engine problem of large numeric types mapped to TEXT (drivers will return SQLServer as database type)

    Once completed click on the "Finish" button to save the DSN.

    Figure: 5.2.1.1.1.
  10. Now that the DSN has been saved, it can be verified. Select the DSN to test and hit the "Test" button .

    Figure: 5.2.1.1.1.
  11. Click the "Test" button to actually commence the ODBC DSN Test process, you will be presented with dialogs that indicate success or failure at the end of this process.

    Figure: 5.2.1.1.1.
  12. Click on the "exit" button to exit the ODBC DSN configuration wizard


5.2.1.2. Form Based Configuration

The OpenLink HTTP based iODBC Administrator also allows the more experienced OpenLink ODBC user to manage ODBC DSNs via a forms based interface. Like the wizard based approach, this is done entirely from within your browser. In the sections that follow, a step by guide and illustrative screen shots are used to demonstrate the process of creating the same Lite ODBC DSN created in the prior section using the Wizard approach.

  1. Start up the HTTP based iODBC Administrator, as explained earlier.

  2. Open up your Internet Browser and then enter the following URL: http://localhost:8000/ (note the OpenLink HTTP based iODBC Administrator listens at port 8000 by default, this value is set at installation time).

  3. Expand the menu by clicking on the "Client Components Administration", then "Data Source Name Configuration", and "Edit Data Sources by Form".

  4. Click on the "Edit ODBC Data Sources" hyperlink to commence the process of creating a new ODBC DSN.

    Figure: 5.2.1.2.1.
  5. On the right side of the HTTP based iODBC Administrator pane is your start page for configuring Lite DSNs using the Forms approach. This page presents to you a list of currently configured ODBC DSNs on the machine. Click the "Add" hyperlink in the Action Column

    Figure: 5.2.1.2.1.
  6. You are now presented with a table listing that comprises ODBC Drivers installed on your system, move on to the row that identifies the ODBC Driver that you will be creating your DSN for, then click on the "New" hyperlink.

    Figure: 5.2.1.2.1.
  7. Enter values into the fields presented on the ODBC DSN form as follows:

    Name

    Enter a value that uniquely identifies the DSN being created. This example uses the name "sqlserver2" to indicate that this DSN will be connecting to SQL Server database.

    Description

    Enter a value that provides additional information that helps in describing the purpose of the DSN that you are creating.

    Username

    Enter a valid username for the database that you are connecting to, you can leave this blank and be prompted for values at actual database connect time.

    Database Name

    Enter the name of an actual SQL Server database.

    Read-only connection

    Check this box if you require a read only session.

    No Login Dialog Box

    Check this box if you do not want to be presented with a login dialog window.

    Defer fetching of long data

    Check this box to defer the fetching of long data. See the Release Notes section for more details.

    Jet Fix

    Check this box to overcome an old Jet Engine problem of large numeric types mapped to TEXT (drivers will return SQLServer as database type)

    Server

    Enter database server connection values for the database that your are connecting to.

    Row Buffer Size

    Enter a value that represents the number of records that you would like your ODBC driver to retrieve during each network hop. A network hop represents the number of times your OpenLink ODBC send a message across the network to retrieve records from your remote database server. The feature can be used to improve ODBC record retrieval performance.

    Figure: 5.2.1.2.1.
  8. Click on the "Add" button at the foot of the page to complete the creation of your new ODBC DSN.

  9. The DSN may then be tested, or you can return to the DSN list.



5.2.2. Manual Configuration

  1. Edit the file bin/openlink.ini, and make sure the environment section for the driver contains the right entries. In case of the SQLServer Lite Driver this section looks like this:

              [Environment SQLServer 2000]
              FREETDSCONF        = /home/openlink/bin/freetds.conf
              DSQUERY            = SQLSERVER   ; Load this section from freetds.conf
              TDSHOST            = host.domain ; Point this to your SQLServer machine
              TDSPORT            = 1433
              TDSVER             = 7.0
              SQLSERVER_CATALOG  = Y
              CURSOR_SENSITIVITY = LOW         ; Set to HIGH after loading oplrvc.sql
            

    These environment varable values are database specific and are described in detail later in this section. The list below will allow you to quickly jump to the relevant section:

    In the case of SQLServer Driver, you only need to set the TDSHOST variable correctly. The FREETDSCONF variable is automatically set by the installer. Under normal conditions you do not have to modify the freetds.conf file nor the DSQUERY variable.

  2. Edit the file bin/odbc.ini and add the correct settings to the sample DSN that is created:

              [sql_lite]
              Driver          = /home/openlink/lib/sql_st_lt.so
              Description     = Sample SQLServer 2000 Lite Connection
              ServerType      = SQLServer 2000
              Username        =
              Password        =
              Database        =
              ReadOnly        = no
              FetchBufferSize = 60
            

    In the case of SQLServer Driver, you only need to modify Username, Password and Database. All modifications except the Driver keyword will be saved when reinstalling this or any other Lite Driver.

  3. For most Lite drivers the LD_LIBRARY_PATH (or SHLIB_PATH or LIBPATH) environment variables must be set before you can load the driver. Therefore you will not find any mention of them in the openlink.ini file, as these settings are set by the driver after it is properly loaded.

    If the installer finds the right environment variables e.g. INFORMIXDIR, it will note the appropriate LD_LIBRARY_PATH settings, and add them automatically to the openlink.sh script. This file must therefore be run before you can do anything with the Lite Drivers, e.g.:

              . ./openlink.sh
            

    If you this is not executed, then the system loader library will give an error message stating it cannot find some dependent shared libraries to load.


5.2.3. DB2

OpenLink Lite Drivers for Unix can be configured in 3 ways:

Once you have configured the generic parts of the data source using one of the above listed methods, you will need to define the driver environment. Below are the common options with their descriptions for the environment section:

      [Environment DB2]
      DB2DIR             = /dbs/DB2
      DB2INSTANCE        = DB2        ; default instance
      CURSOR_SENSITIVITY = LOW        ; Set to HIGH after loading oplrvc.sql
    

5.2.4. Informix

OpenLink Lite Drivers for Unix can be configured in 3 ways:

Once you have configured the generic parts of the data source using one of the above listed methods, you will need to define the driver environment. Below are the common options with their descriptions for the environment section:

      [Environment Informix 7.3]
      INFORMIXDIR        = /dbs/informix73
      INFORMIXSERVER     = alpha
      DELIMIDENT         = Y  ; Allow quoted identifiers
      OPL_INF_MULTISESS  = Y  ; Allow multiple sessions
      OPL_SPACEPADCHAR   = Y  ; Pad CHAR fields with spaces
      CURSOR_SENSITIVITY = LOW        ; Set to HIGH after loading oplrvc.sql
      ;FET_BUF_SIZE           = 65535         ; Size of the fetch buffer
      ;FORCE_ONLINE_DATABASE  = 1             ; Force mode to (0) SE or (1) ONLINE
    
      [Environment Informix 2000]
      INFORMIXDIR        = /dbs/informix2000
      INFORMIXSERVER     = alpha
      DELIMIDENT         = Y  ; Allow quoted identifiers
      OPL_INF_MULTISESS  = Y  ; Allow multiple sessions
      OPL_SPACEPADCHAR   = Y  ; Pad CHAR fields with spaces
      CURSOR_SENSITIVITY = LOW        ; Set to HIGH after loading oplrvc.sql
      ;FET_BUF_SIZE           = 65535         ; Size of the fetch buffer
      ;FORCE_ONLINE_DATABASE  = 1             ; Force mode to (0) SE or (1) ONLINE
    

5.2.5. Ingres

OpenLink Lite Drivers for Unix can be configured in 3 ways:

Once you have configured the generic parts of the data source using one of the above listed methods, you will need to define the driver environment. Below are the common options with their descriptions for the environment section:

      [Environment Ingres II]
      II_SYSTEM          = /dbs
      II_DATE_FORMAT     = US
      ING_SET            = set lockmode session where readlock=nolock
      CURSOR_SENSITIVITY = LOW        ; Set to HIGH after loading oplrvc.sql
    

5.2.6. Oracle

OpenLink Lite Drivers for Unix can be configured in 3 ways:

Once you have configured the generic parts of the data source using one of the above listed methods, you will need to define the driver environment. Below are the common options with their descriptions for the environment section:

      [Environment Oracle 8.0.x]
      ORACLE_HOME        = /dbs/oracle80
      ORACLE_SID         = ORCL
      ;ORACLE_SERVER          = T
      ;TWO_TASK               = P:
      ;ODBC_CATALOGS          = Y     ; Uncomment after loading odbccat8.sql
      ;MULTIPLEX_LDA          = 5     ; Allow 5 OpenLink clients on a single lda
      ;OPL_USR_TBLS_FIRST     = Y     ; Sort SQLTables starting with user tables
      SHOW_REMARKS       = N  ; Retrieve SQLColumns REMARKS field
      CURSOR_SENSITIVITY = LOW        ; Set to HIGH after loading odbccat8.sql
      ;OCI_PREFETCH_ROWS      = 100   ; Number of rows to prefetch
      ;OCI_PREFETCH_MEMORY    = 65535 ; Amount of memory to use for prefetching
    
      [Environment Oracle 8.1.x]
      ORACLE_HOME        = /dbs/oracle81
      ORACLE_SID         = ORCL
      ;ORACLE_SERVER          = T
      ;TWO_TASK               = P:
      ;ODBC_CATALOGS          = Y     ; Uncomment after loading odbccat8.sql
      ;MULTIPLEX_LDA          = 5     ; Allow 5 OpenLink clients on a single lda
      ;OPL_USR_TBLS_FIRST     = Y     ; Sort SQLTables starting with user tables
      SHOW_REMARKS       = N  ; Retrieve SQLColumns REMARKS field
      CURSOR_SENSITIVITY = LOW        ; Set to HIGH after loading odbccat8.sql
      ;OCI_PREFETCH_ROWS      = 100   ; Number of rows to prefetch
      ;OCI_PREFETCH_MEMORY    = 65535 ; Amount of memory to use for prefetching
    
      [Environment Oracle 8.1.x]
      ORACLE_HOME        = /dbs/oracle81
      ORACLE_SID         = ORCL
      ;ORACLE_SERVER          = T
      ;TWO_TASK               = P:
      ;ODBC_CATALOGS          = Y     ; Uncomment after loading odbccat8.sql
      ;MULTIPLEX_LDA          = 5     ; Allow 5 OpenLink clients on a single lda
      ;OPL_USR_TBLS_FIRST     = Y     ; Sort SQLTables starting with user tables
      SHOW_REMARKS       = N  ; Retrieve SQLColumns REMARKS field
      CURSOR_SENSITIVITY = LOW        ; Set to HIGH after loading odbccat8.sql
      ;OCI_PREFETCH_ROWS      = 100   ; Number of rows to prefetch
      ;OCI_PREFETCH_MEMORY    = 65535 ; Amount of memory to use for prefetching
    

5.2.7. PostgreSQL

OpenLink Lite Drivers for Unix can be configured in 3 ways:

Once you have configured the generic parts of the data source using one of the above listed methods, you will need to define the driver environment. Below are the common options with their descriptions for the environment section:

      [Environment PostgreSQL]
      CURSOR_SENSITIVITY = LOW        ; Set to HIGH after loading oplrvc.sql
      ;ODBC_CATALOGS          = Y             ; Uncomment after loading odbccat defs
    

The following options can be used in the ConnectOptions or Options field of the client configuration:

5.2.7.1. Datatype Mapping from ODBC Datatypes to Postgres Datatypes

This information can be queried by the SQLTypeInfo catalog call.

Table: 5.2.7.1.1. Default Rule Book settings
SQL type Postgres type
SQL_CHAR char
SQL_VARCHAR varchar
SQL_LONGVARCHAR text
SQL_DECIMAL varchar
SQL_NUMERIC varchar
SQL_BIT bit
SQL_TINYINT int2
SQL_SMALLINT int2
SQL_INTEGER int4
SQL_BIGINT varchar
SQL_REAL float4
SQL_DOUBLE float8
SQL_FLOAT float8
SQL_BINARY not supported
SQL_VARBINARY not supported
SQL_LONGVARBINARY not supported
SQL_DATE not supported
SQL_TIME not supported
SQL_TIMESTAMP not supported


5.2.7.2. Datatype Mapping from Postgres Datatypes to ODBC Datatypes

This information can be queried by the SQLColumns catalog call.

Table: 5.2.7.2.1. Default Rule Book settings
Postgres type SQL type Precision
bool SQL_CHAR 1
char SQL_CHAR 1
name SQL_VARCHAR 32
char16 SQL_CHAR 16
int2 SQL_SMALLINT
int4 SQL_INTEGER
regproc SQL_VARCHAR 16
text SQL_LONGVARCHAR 8000
oid SQL_INTEGER (*)
tid SQL_VARCHAR 19
xid SQL_VARCHAR 12
cid SQL_VARCHAR 3
oid8 SQL_VARCHAR 89
smgr SQL_VARCHAR 12
char2 SQL_VARCHAR 2
char4 SQL_VARCHAR 4
char8 SQL_VARCHAR 8
filename SQL_VARCHAR 255
float4 SQL_REAL
float8 SQL_DOUBLE
abstime SQL_VARCHAR 60
reltime SQL_VARCHAR 60
tinterval SQL_VARCHAR 60
unknown SQL_VARCHAR 255
bpchar SQL_CHAR 255
varchar SQL_VARCHAR 255
date SQL_CHAR 10
time SQL_CHAR 16
other type SQL_LONGVARCHAR 8000

(*) Note: An oid is returned as a SQL_INTEGER, because otherwise it would not be useable for SQLSpecialColumns.

Binary data / large objects are not supported in this release.



5.2.8. MySQL

OpenLink Lite Drivers for Unix can be configured in 3 ways:

Once you have configured the generic parts of the data source using one of the above listed methods, you will need to define the driver environment. Below are the common options with their descriptions for the environment section:

      [Environment MySQL]
      CURSOR_SENSITIVITY = LOW        ; Set to HIGH after loading oplrvc.sql
      ;ODBC_CATALOGS          = Y             ; Uncomment after loading odbccat defs
    

The following options can be used in the ConnectOptions or Options field of the client configuration:

5.2.8.1. Datatype Mapping from ODBC Datatypes to MySQL Datatypes

This information can be queried by the SQLTypeInfo catalog call.

Table: 5.2.8.1.1. Default Rule Book settings
SQL type MySQL type
SQL_CHAR char
SQL_VARCHAR varchar
SQL_LONGVARCHAR text
SQL_DECIMAL decimal
SQL_NUMERIC decimal
SQL_BIT not supported
SQL_TINYINT tinyint
SQL_SMALLINT smallint
SQL_INTEGER integer
SQL_BIGINT bigint
SQL_REAL real
SQL_DOUBLE double
SQL_FLOAT double
SQL_BINARY tinyblob
SQL_VARBINARY tinyblob
SQL_LONGVARBINARY longblob
SQL_DATE date
SQL_TIME time
SQL_TIMESTAMP timestamp


5.2.8.2. Datatype Mapping from MySQL Datatypes to ODBC Datatypes

This information can be queried by the SQLColumns catalog call.

Table: 5.2.8.2.1. Default Rule Book settings
MySQL type SQL type Precision
bigint SQL_BIGINT 19
blob SQL_VARBINARY 2^16-1
char(n) SQL_CHAR n
date SQL_CHAR 32
datetime SQL_CHAR 32
decimal(p,s) SQL_DECIMAL p
double SQL_DOUBLE 15
enum SQL_VARCHAR 255
float SQL_REAL 7
int SQL_INTEGER 10
longblob SQL_LONGVARBINARY 2^32-1
longtext SQL_LONGVARCHAR 2^32-1
mediumblob SQL_VARBINARY 2^24-1
mediumint SQL_INTEGER 8
mediumtext SQL_LONGVARCHAR 2^24-1
set SQL_VARCHAR 255
smallint SQL_SMALLINT 5
text SQL_LONGVARCHAR 2^16-1
time SQL_VARCHAR 32
timestamp(n) SQL_VARCHAR n
tinyblob SQL_VARBINARY 255
tinyint SQL_TINYINT 3
tinytext SQL_VARCHAR 255
varchar(n) SQL_VARCHAR n
varchar(n) binary SQL_VARCHAR n
year SQL_VARCHAR 4



5.2.9. Progress SQL92

OpenLink Lite Drivers for Unix can be configured in 3 ways:

Once you have configured the generic parts of the data source using one of the above listed methods, you will need to define the driver environment. Below are the common options with their descriptions for the environment section:

      [Environment Progress 91SQL]
      DLC                = /dbs/dlc9.1C
      PROCFG             = /dbs/dlc9.1C/progress.cfg
      CURSOR_SENSITIVITY = LOW        ; Set to HIGH after loading oplrvc.sql
    

5.2.10. Microsoft or Sybase SQL Server (TDS)

5.2.10.1. Installation

Login to your Unix or Linux client machine.

Figure: 5.2.10.1.1.

cd into the installation directory.

Figure: 5.2.10.1.1.

The installation files ship as an installation shell script, a driver and admin .taz file, and a license .lic file. The installation shell script should be ftp'd in ascii. The rest of the files should be ftp'd in binary, where applicable.

Figure: 5.2.10.1.1.

Run the following command to start the installation: sh install.sh

Figure: 5.2.10.1.1.

If you have a pre-existing installation running on the machine, you will be presented with the following options.

Figure: 5.2.10.1.1.

You must choose a TCP port on which to run your HTTP-based iODBC Data Sources Administrator. The default is 8000. You will need to know this port number and your local machine's IP address or hostname to access your Admistrator in a Web browser. This is how you call it: http://machine:portnumber

Figure: 5.2.10.1.1.

This enables you to name your administrator's log file. It is best to go with the default.

Figure: 5.2.10.1.1.

You can choose to log all requests. This is not diagnostic-level odbc tracing or connection logging. The default is no.

Figure: 5.2.10.1.1.

You can change the iODBC Data Source Administrator's default username from "admin". This is the name that you will need to login to OpenLink's HTTP-based iODBC Data Sources Administrator.

Figure: 5.2.10.1.1.

You can change the iODBC Data Source Administrator's default password from "admin".

Figure: 5.2.10.1.1.

The installation is complete.

Figure: 5.2.10.1.1.


5.2.10.2. Configuration

Execute the bash command to open a bash shell. If you do not have have the bash shell, substitute the sh command for the bash command. This will open the bourne shell.

Figure: 5.2.10.2.1.

Use the export command to set an OPL_LICENSE_DIR variable that points to the directory that contains your OpenLink license. This is typically the bin sub-directory of the OpenLink installation. However, you can put your license files in /etc/, the root of the installation, or virtually anywhere else.

Figure: 5.2.10.2.1.

Run the following command to set your ODBC environment variables: . ./openlink.sh

Figure: 5.2.10.2.1.

cd into the bin sub-directory of your OpenLink installation.

Figure: 5.2.10.2.1.

Use the ls(1) command to display your files.

Figure: 5.2.10.2.1.

Run the following command to start your HTTP-based iODBC Data Sources Administrator: ./iodbc-admin-httpd.sh start

Figure: 5.2.10.2.1.

Open a Web browser on any computer and type the URL for your administrator in the address bar.

Figure: 5.2.10.2.1.

Click the Client Components Administration link in the left hand side navigation bar.

Figure: 5.2.10.2.1.

Click the Configure ODBC Data Sources link in the left hand side navigation bar.

Then, login with your username and password.

Figure: 5.2.10.2.1.

Click the Add button.

Figure: 5.2.10.2.1.

Click the OpenLink SQL Server Lite Driver (multi-threaded). Then, click Create DSN.

Figure: 5.2.10.2.1.

Provide a descriptive name and optional name for your DSN. Then, click Next.

Figure: 5.2.10.2.1.

Pass the following values in the next dialog:

Figure: 5.2.10.2.1.

Click Next.

Set the following variables on the next dialog:

Figure: 5.2.10.2.1.

Click Next.

You can set the following, optional values on the fourth dialog:

Figure: 5.2.10.2.1.

Click Next.

Additional, optional parameters appear on the fifth, and final dialog:

Figure: 5.2.10.2.1.

Click Next.

Your new DSN is highlighted and persisted on the the Data Sources tab. Click the Test tab.

Figure: 5.2.10.2.1.

Type your password in the password field and click test.

Figure: 5.2.10.2.1.

You have established a connection.

Figure: 5.2.10.2.1.



5.2.11. ODBC-JDBC Bridges for Java

OpenLink Lite Drivers for Unix can be configured in 3 ways:

Once you have configured the generic parts of the data source using one of the above listed methods, you will need to define the driver environment. Below are the common options with their descriptions for the environment section:

      [Environment Jdbc14]
      CLASSPATH =.;c:\Program Files\OpenLink\Virtuoso 3.0\jdk14\virtjdbc3.jar
      ;PATH =
      ;JET_DROPCATALOGFROMDBMETACALLS  = YES
      ;JET_DROPSCHEMAFROMDBMETACALLS   = YES
      ;JET_NOSUPPORTOFQUOTEDIDENTIFIER = YES
      ;PATCHNULLSIZEOFSQLCHAR = 4096
      ;JET_SQLSTATISTICSOFF   = YES
    

Note that CLASSPATH is the critical environment variable that must be set to enable the JDBC driver class files to be located.