Neoview ODBC Drivers Manual (R2.2 SP1)
Table Of Contents
- HP Neoview ODBC Drivers Manual
- Table of Contents
- About This Document
- 1 HP Neoview ODBC Driver Overview for Windows
- 2 HP Neoview ODBC Drivers Overview for Linux, HP-UX, IBM AIX®, and Sun Solaris
- 3 Installing the HP Neoview ODBC Drivers
- Installing ODBC Client Software
- Avoiding Driver-Platform Version Incompatibility
- Installing the HP Neoview ODBC Driver for Windows
- Reinstalling the HP Neoview ODBC Driver for Windows
- Uninstalling the HP Neoview ODBC Driver for Windows
- Setting Up the Client Environment
- Troubleshooting
- Getting the Version of the Driver
- ODBC API Reference
- Installing or Reinstalling HP Neoview ODBC Drivers for Linux, HP-UX, IBM AIX®, and Sun Solaris
- Setting Up the Client Environment
- Running the Sample Program
- Troubleshooting
- Debugging
- Getting the Version of the Driver
- ODBC API Reference
- 4 Configuring Client Data Sources
- 5 HP Neoview ODBC Drivers Conformance
- 6 HP Neoview ODBC Drivers Messages
- Index
aCC +DD64 -AA connect_test.cpp -L/usr/lib -I/usr/include/hpodbc \
-lhpodbc64 -o connect_test -lm
To use cc for compiling and linking:
1. Rename connect_test.cpp to connect_test.c
2. cc connect_test.c -I/usr/include/hpodbc -L/usr/lib \
-lstd_v2 -lCsup -lunwind -lm -lhpodbc -o connect_test
• For HP-UX(PA-RISC)
aCC -AA connect_test.cpp -L/usr/lib -I/usr/include/hpodbc \
-lhpodbc -lhppa -lstd_v2 -lCsup_v2 -lm
To use cc for compiling and linking:
1. rename connect_test.cpp to connect_test.c
2. cc connect_test.c -L/usr/lib -I/usr/include/hpodbc -lhppa \
-lstd_v2 -lCsup -lunwind -lm -lhpodbc -o connect_test
• On IBM AIX®:
g++ -mxaix32 connect_test.cpp -L/usr/lib -I/usr/include/hpodbc \
-lhpodbc -o connect_test
• On IBM AIX® 64–bit:
g++ -mxaix64 connect_test.cpp -L/usr/lib -I/usr/include/hpodbc \
-lhpodbc64 -o connect_test
• On Sun SPARC® :
g++ -m32 connect_test.cpp -L/usr/lib -I/usr/include/hpodbc \
-lhpodbc -o connect_test
• On Sun SPARC® 64–bit:
g++ -m64 connect_test.cpp -L/usr/lib -I/usr/include/hpodbc \
-lhpodbc64 -o connect_test
3. Make sure that the data source is configured correctly. If needed, modify the
/etc/hpodbc/MXODSN file.
4. Run the sample program:
./connect_test -d data-source -u userid -p password
The output of successfully running the sample program is:
OUTPUT: Connect Test Passed...
Troubleshooting
If your sample program does not work:
40 Installing the HP Neoview ODBC Drivers