Supported Platforms
ODBC

Windows platforms
UNIX platforms
ODBC Connection Pooling

Windows platforms

General

heitml accesses the databases using ODBC drivers. Many database systems are actually delivered together with ODBC drivers, e.g. Microsoft AccessTM or PostgreSQL. You need ODBC drivers for the operting system you run heitml on and you need 32 or 64 Bit drivers depending on the 32 or 64 bit version of heitml you are using.

Creating Data Sources

To access a database from heitml you must create a data source. The data source must have a unique name. This name has to be specified through the datasource parameter in the heitml configuration file. The data source for the demo application is named "heitml2.1". To create it and to link it to the file \htdocs\heitml2.1\tutor\heitml.mdb in the heitml installation directory perform the following steps:

If your database system requires user authentication, setup a user 'heitml' with password 'heitml' for the database you are going to access through the ODBC data source "heitml2.1" and grant appropriate permissions.

Thread-safe ODBC 32-bit drivers

In a multi-threaded application like an ISAPI compliant Web server, the ODBC driver must be thread-safe. At the time of this writing, all ODBC drivers based on the Microsoft Jet database engine like the Microsoft AccessTM driver are not thread-safe, the Microsoft SQL ServerTM, Oracle and Visual FoxPro ODBC drivers are thread-safe. For more information, see the dbserialize configuration option.

UNIX platforms

How to get ODBC drivers?

At the time of this writing, ODBC Drivers are shipped either

  1. with the latest iODBC (http://www.iodbc.org) distribution,
  2. with the latest unixODBC (http://www.unixodbc.org) distribution,
  3. with Linux distributions like RedHat or SuSE,
  4. or with the latest DataDirect distribution.
heitml has been tested with unixODBC. It is recommended to use unixODBC 2.2.0 or later.

Creating Data Sources

To access a database from heitml you must create an ODBC data source. The data source must have a unique name. This name has to be specified through the datasource parameter in the heitml configuration file. The data source for the demo application is named heitml. The following instructions apply to unixODBC.

To create an ODBC data source, either use the ODBC Administrator of the ODBC distribution, e.g. ODBCConfig, gODBCConfig, use odbcinst, or edit the odbc.ini file.

Creation of an ODBC data source width ODBCConfig is as follows:

  1. issue ODBCConfig from the shell.
  2. In the 'ODBC Data Source Administrator' window, click the 'System DSN' tab.
  3. Now click on the 'Add' button.
  4. Click on the entry with the driver of your favorite database system to highlight it and then click 'Ok'.
  5. In the window coming up, enter heitml as the Data Source Name and provide further database specific information. Depending on the database systen this might require to create a database and database user first.
  6. When you are finished, save your changes and exit.

ODBC Connection Pooling

heitml 2.1 or later supports ODBC Connection Pooling. Note that heitml turns on ODBC Connection Pooling on the process level, even for the ISAPI version. In addition, you have to switch on the connpool configuration option and you have to enable Connection Pooling in the ODBC Data Source Administrator.


This page was dynamically generated by the web application development tool RADpage of H.E.I.
© 1996-2013 H.E.I. All Rights Reserved.