Linux
Pervasive PSQL v11 SP1 includes the following support for the Linux operating system:
64-bit ODBC Driver
Pervasive PSQL v11 SP1 supports the ODBC interface for 64-bit applications on Linux. The 64-bit ODBC driver is installed with Pervasive PSQL Server 64-bit and Pervasive PSQL Client 64-bit.
On Linux distributions, individual ODBC drivers are loaded through the driver manager UNIXODBC. The driver manager maintains a mapping from Data Source Names (DSNs) to the specific Pervasive PSQL ODBC drivers.
The installation of Pervasive PSQL Server 64-bit or Client 64-bit leaves user-defined, pre-existing 32-bit DSNs as is, meaning they are not immediately accessible from a 64-bit application. For new DSNs, the installation of both products assigns a 32-bit and a 64-bit ODBC driver in odbcinst.ini. This assignment allows a single DSN to be used by both a 32-bit application and a 64- bit application.
If you want pre-existing 32-bit DSNs to be accessible to both 32-bit and 64- bit applications, you must recreate them as new-style DSNs (see Pervasive ODBC Interface in Table 7).
ODBC and Data Source Names (DSNs)
The client application bitness does not have to match the bitness of the Pervasive PSQL Server product. For example, the 64-bit ODBC driver or the 32-bit ODBC driver can be used to connect to either Pervasive PSQL Server 64-bit or Pervasive PSQL Server 32-bit.
For the Pervasive PSQL Client, however, the application bitness does have to match the bitness of the Pervasive PSQL Client on the client machine. That is, if you want to use a 64-bit application on the client, the Pervasive PSQL 64-bit Client must be installed.
Pervasive PSQL v11 provides three ODBC drivers, as explained in the following table.
No longer created by default with dsnadd utility (the -engdsn option must be specified). See also Utilities Affected by ODBC Changes.
Frequently Asked Questions
The following table answers some frequently asked questions (FAQs) about the ODBC and DSN support for Linux in Pervasive PSQL v11 SP1.
Yes, but you must specify the -engdsn or -clntdsn option with dsnadd. See Utilities Affected by ODBC Changes. DSNs created with either option support only 32-bit applications.
See ODBC Connection Strings in SQL Engine Reference.
A point of clarification is that SQL_ROWSET_SIZE is supported by both SQLGetStmtOption and SQLGetStmtAttr. If you are using the 64-bit ODBC driver and you call either SQLGetStmtOption or SQLGetStmtAttr, a 64-bit value is returned in *ValuePtr when that attribute parameter is set to SQL_ROWSET_SIZE.
ODBC Header Files
The sql.h, sqltypes.h, and sqlext.h header files for ODBC contain differences for the compilation of 32-bit and 64-bit applications. Refer to the ODBC documentation on the UNIXODBC Web site for a discussion of 64-bit ODBC. For example, you may find the following information useful: http://www.unixodbc.org/doc/ODBC64.html.
Utilities Affected by ODBC Changes
If you want to create a deprecated, legacy-style Engine DSN or a Client DSN, you must specify the -engdsn or -clntdsn option, respectively. See dsnadd in Pervasive PSQL User's Guide.
PCC is a 32-bit application; a 64-bit version of it is not available. See also What Was New in Pervasive PSQL v11 SP1.
Red Hat Enterprise Linux 6
Pervasive PSQL supports Red Hat Enterprise Linux 6. Note that, by default, the 64-bit edition of this Linux distribution supports only 64-bit components and executables. The distribution media for 64-bit Red Hat Enterprise Linux 6 includes the 32-bit libraries, but they are not installed by default.
The following table summarizes installation notes specific to Red Hat Enterprise Linux 6, including a discussion of certain 32-bit libraries required for Pervasive PSQL.