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
dbserialize configuration option.
| UNIX platforms |
How to get ODBC drivers?
At the time of this writing, ODBC Drivers are shipped either
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:
ODBCConfig from the shell.
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.
| 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.