Runtime Issues
This section discusses some common issues that can occur at runtime.
Statically-linked Applications
Be sure that you have established connectivity between your client and server machines. Ask your system administrator to help set up your computer for access to the servers.
For a statically-linked application, supply the name of the database as the first parameter for the method
RWDBManager::database().
Table 3 lists the database name for each supported database.
Table 3 – RWDBManager::database() parameters for statically-linked applications
Database | Database name |
DB2 CLI | DB2CLI |
Microsoft SQL Server | MS_SQL |
MySQL | MYSQL |
ODBC | ODBC |
Oracle OCI | ORACLE_OCI |
PostgreSQL | POSTGRESQL |
Sybase | SYBASE_CT |
Dynamically-linked Applications
To run a dynamically-linked application, you must meet the requirements described in
“Working With Dynamic Binding.”In addition, supply the name of the access module dynamic library as the first parameter of the method
RWDBManager::database().
Table 4 lists the library name for each supported database. The first library name entry applies to Windows platforms, the second to UNIX platforms. The UNIX library extension depends on the platform.
Table 4 – RWDBManager::database() parameters for dynamically-linked applications
Database | Library name |
DB2 CLI | db2<ver><buildtag>.dll libdb2<ver><buildtag>.[so|sl|a] |
Microsoft SQL Server | msq<ver><buildtag>.dll |
MySQL | mys<ver><buildtag>.dll mys<ver><buildtag>.[so|sl|a] |
ODBC | odb<ver><buildtag>.dll odb<ver><buildtag>.[so|sl|a] |
Oracle OCI | oci<ver><buildtag>.dll oci<ver><buildtag>.[so|sl|a] |
PostgreSQL | pgs<ver><buildtag>.dll pgs<ver><buildtag>.[so|sl|a] |
Sybase | ctl<ver><buildtag>.dll ctl<ver><buildtag>.[so|sl|a]] |