README for the HP Neoview ODBC Drivers for UNIX (R2.4)

Using a Third Party Driver Manager
If you are using an external driver manager, you must point to libhpodbc_drvr and not to
libhpodbc. (Use libhpodbc_drvr64 if you are using 64-bit versions of external driver
managers.)
The driver (libhpodbc_drvr.so) has been verified with iODBC and unixODBC driver
managers.
These driver managers, as well as documentation, can be found at these Web sites:
http://www.iodbc.org/
http://www.unixodbc.org/
The three environment variables that control tracing are:
— HPODBC_TRACE_LEVEL sets trace level (ERROR, WARNING, CONFIG, INFO,
or DEBUG)
— HPODBC_TRACEFILE_NAME specifies the name of the log file
— HPODBC_TRACEFILE_SIZE specifies the maximum files size of the log files
For information on the necessary data source configuration options, you will need to add
to the respective configuration files (for example, to odbc.ini). For more information, see the
Neoview ODBC Drivers Manual at http://www.hp.com/go/neoviewdocs.
Running the Sample Program
NOTE: The examples after each step assume that you have default installation directories.
If you have a previous version of the hpodbc driver installed, you need to re-link your existing
application to ensure that you pick up the correct version of the driver. If you are unsure of the
version, check the version of your application with this command:
ldd <object file>
1. Move to the directory where you installed the sample program:
cd /etc/hpodbc/sample
2. Compile the sample program.
All drivers, other than the 64-bit driver for HP-UX(IA-64), x86_64 Linux driver, and IA-64
Linux are 32-bit drivers; therefore, applications need to be compiled accordingly.
Compile CommandClient OS
g++ connect_test.cpp -L/usr/lib -I/usr/include/hpodbc -lhpodbc \
-o connect_test
NOTE: This Linux driver is a 32-bit driver. If you are using an x86-64 machine, you need to
explicitly compile your application as a 32-bit application. For example:
g++ connect_test.cpp -m32 -L/usr/lib \
-I/usr/include/hpodbc -lhpodbc -o connect_test
x86 Linux
g++ connect_test.cpp -L/usr/lib -I/usr/include/hpodbc \
-lhpodbc64 -o connect_test
x86_64 Linux
12