Database client settings
This section describes the settings defining the locale for the database client.
Each database software has its own client character set configuration.
Database Client | Locale settings | Notes |
---|---|---|
Oracle® database server |
The database client locale must be set with NLS_LANG environment variable. |
By default, the client locale is set from the database server locale. The locale can also be defined after connection, with the ALTER SESSION instruction. However, this is not supported by Genero BDL. |
IBM® Informix® |
The database client locale is defined by the CLIENT_LOCALE environment variable. |
If CLIENT_LOCALE is not defined, other settings are used when defined (DBDATE / DBTIME / GL_DATE / GL_DATETIME, as well as standard LC_* variables). |
IBM DB2® |
The database client locale is defined by the DB2CODEPAGE profile variable. |
The DB2CODEPAGE variable can be set with the db2set command. However, you usually do not need to set this variable: If DB2CODEPAGE is not defined, DB2 uses the operating system code page on Windows® and the LANG/LC_ALL locate setting on UNIX™. When using a UTF-8 locale on Windows, DB2CODEPAGE must be set to 1208. |
IBM Netezza® |
N/A |
With IBM
Netezza, there is no
configuration setting to define database client: When using
|
Microsoft® SQL Server with SNC driver (Microsoft ODBC). |
On Windows platforms, the database client locale is defined by the language settings for non-Unicode applications. The current ANSI code page (ACP) is used by the SQL Server client and the Genero runtime system. On Linux® platforms, the database client locale is always UTF-16. The ODI driver uses the MS ODBC Wide Char API, and makes the required character set conversions between the application locale and UTF-16. |
See Microsoft ODBC documentation for more details regarding character set configuration. |
Microsoft SQL Server with FTM driver (FreeTDS). |
The database client character set is defined by the |
See FreeTDS documentation for more details regarding character set configuration. |
Microsoft SQL Server with ESM driver (Easysoft). |
The database client character set is defined by the Depending on the application locale and SQL Server CHAR/VARCHAR or NCHAR/NVARCHAR usage, you
might also need to define the |
If you want to support all possible UNICODE characters (not only UCS-2), define
When using CHAR/VARCHAR types in the database and when the database collation is different from
the client locale, you must also set the |
PostgreSQL |
The database client locale must be set with the PGCLIENTENCODING environment variable, or with
the |
After the database connection, the locale can be set with the SET CLIENT_ENCODING instruction. This is not recommended with Genero BDL. Check the pg_conversion system table for available character set conversions. |
Oracle® MySQL and MariaDB |
The database client locale is defined by the |
The character set can also be changed at runtime with the |
See database vendor documentation for more details.