Database Configuration Settings
This section defines the configuration variables used in the interaction with data sources including the ODBC (Open DataBase Compliance) implementation in Eagle. Effectively this method allows Eagle to gain access to an almost limitless number of data sources however each site may require a few parameters to be tuned before any database transaction is performed and this section is provided for that purpose.
|
|
SQL_ACCESS_MODE |
|
Values |
SQL_MODE_READ_ONLY | SQL_MODE_READ_WRITE |
|
Description |
Define access mode to database using this variable to wither R/W or R/O mode. |
|
Default |
SQL_MODE_READ_WRITE |
|
Example |
SQL_ACCESS_MODE = SQL_MODE_READ_WRITE |
|
|
SQL_AUTOCOMMIT |
|
Values |
SQL_AUTOCOMMIT_ON | SQL_AUTOCOMMIT_OFF |
|
Description |
Set to commit each statement immediately after executed or manually commit and roll back transactions. When SQL_AUTOCOMMIT_OFF , the driver uses manual-commit mode, and the application must explicitly commit or roll back transactions. When SQL_AUTOCOMMIT_ON , the driver uses auto-commit mode. Each statement is commit immediately after it is executed. Note : When a driver is in autocommit mode, the DB COMMIT and DB ROLLBACK are not processed. |
|
Default |
SQL_AUTOCOMMIT_ON |
|
Example |
SQL_AUTOCOMMIT = SQL_AUTOCOMMIT_OFF |
|
SQL SERVER SETTINGS |
|
|
SQL_LOGIN_TIMEOUT |
|
Values |
a number | unset |
|
Description |
A value corresponding to the number of seconds to wait for a login request to complete. The default is driver-dependent and must be nonzero. If the value is 0, the timeout is disabled and a connection attempt will wait indefinitely. |
|
Default |
unset |
|
Example |
SQL_LOGIN_TIMEOUT=5 |
|
|
SQL_TXN_ISOLATION |
|
Values |
SQL_TXN_VERSIONING| SQL_TXN_READ_UNCOMMITTED| SQL_TXN_READ_COMMITTED | SQL_TXN_REPEATABLE_READ | SQL_TXN_SERIALIZABLE |
|
Description |
SQL_TXN_ISOLATION Transaction isolation level refers to the degree to which multiple interleaved transactions are prevented from interfering with each other in a multi-user database system. Ideally, one would like to have "serialised" transactions - that is, the interleaved execution of any set of concurrent transactions will produce the same effect as some (unspecified) serial execution of those same transactions. The ANSI SQL 2 standard defines three specific ways in which the serialisation of a transaction may be violated (with the implication that these are the only permitted violations): |
|
Default |
SQL_TXN_VERSIONING |
|
Example |
SQL_TXN_ISOLATION=SQL_TXN_SERIALIZABLE |
|
|
SQL_ERROR |
|
Values |
an error code |
|
Description |
When a function did not complete because of an error. Call SQLError to get more information on the problem. |
|
Default |
driver generated |
|
Example |
SQL_ERROR=00000 , 0 |
|
|
SQL_CONNECT |
|
Values |
a string | unset |
|
Description |
Enable addition of special connection options when connecting to SQL server This is used in connection with PATCH3240. When connecting with ORACLE DB through the direct specification of the database name the connection failed. Comment: this was due to the lack of extension in the database_name specification. A "workaround" solves the problem and this can be activated setting an environment variable setenv patch3240 yes The default is to not use this patch. |
|
Default |
unset |
|
Example |
SQL_CONNECT=UID=root;PWD=%4£HNg |
|
|
SQL_CURSOR_TYPE |
|
Values |
SQL_CURSOR_DYNAMIC | unset |
|
Description |
Set to allow multiple cursors for ODBC connection on some databases such as SQL Server. This option relates to the introduction of DB CURSORS which allows for multiple database cursors. This variable enables the operation of either these multiple cursors or the previous behaviour. |
|
Default |
unset |
|
Example |
SQL_CURSOR_TYPE=SQL_CURSOR_DYNAMIC |
|
|
MAX_DB_COL |
|
Values |
a number |
|
Description |
Extend the number of columns for query set of any DB command |
|
Default |
100 |
|
Example |
MAX_DB_COL=100: |
|
Data Management |
|
|
DECODE_SEPERATOR |
|
Values |
a character |
|
Description |
User definable decode separator for both for ENCODE and DECODE commands. |
|
Default |
unset |
|
Example |
DECODE_SEPERATOR : |