CREATE DSN MYDSN UNDER "Oracle Service" CONNECT 'DEFAULT_ATTR=(SQL_MAX_COL_SIZE=500);DRIVER=ORACLE'
DEFAULT_ATTR=(attr=value;...)
attr=value
corresponds
to any of the following options:
SQL_CURSORS=n
DEFAULT_ATTR=(SQL_CURSORS=2)
0 | A value of 0 causes
the driver to use client side static cursor emulation if a scrollable
cursor is requested but the database server cannot provide one.
|
1 | A value of 1 causes
the driver to always use client side static cursor emulation if a
scrollable cursor is requested. The database server’s native
cursor will never be used.
|
2 | A value of 2 (default)
causes the driver to never use client side static cursor emulation
if a scrollable cursor is requested. The database server’s
native cursor will be used if available, otherwise the cursor will
be forward only.
|
SQL_AC_BEHAVIOR=n
DEFAULT_ATTR=(SQL_AC_BEHAVIOR=0)
“CREATE
TABLE xxx AS SELECT yyy FROM zzz”
or a multi-row
delete statement that requires multiple operations to delete the underlying
rows. Possible values are 0 (default), 1 and 2.
0 | A value of 0 (default)
means that no transactions are attempted under-the-covers and operations
such as emulated UDPATE, DELETE or INSERT.
|
1 | A value of 1 means
that FedSQL tries to use transaction
to better support the correct behavior when AUTOCOMMIT is ON (where
individual operations like UPDATE, DELETE and INSERT should be atomic).
|
2 | A value of 2 means
that transactions are required. This option will fail if the underlying
drivers do not support transactions.
|
SQL_MAX_COL_SIZE=n
DEFAULT_ATTR=(SQL_MAX_COL_SIZE=1048576)
varchar
or varbinary
that
is used for the potentially truncated long data when direct bind is
not possible. The default value is 32767. The limit for this size
is 1 MG. If the value exceeds 1 MG, FedSQL resets the value and returns
an Option value changed
warning
SQL_STMT_MEM_LIMIT=n
DEFAULT_ATTR=(SQL_STMT_MEM_LIMIT=209715200)
SQL_TXN_EXCEPTIONS=n
DEFAULT_ATTR=(SQL_TXN_EXCEPTIONS=2)
0 | Specify a value of 0 to
disable support for dynamic connections.
|
2 | Specify a value of 2 to
enable support for dynamic connections.
|
SQL_USE_EVP=n
DEFAULT_ATTR=(SQL_USE_EVP=0)
0 | Specify 0 to turn
optimization OFF.
|
1 | Specify 1 to enable
optimization (ON).
|
SQL_VDC_DISABLE=n
DEFAULT_ATTR=(SQL_VDC_DISABLE=1)
0 | Specify a value of 0 to
enable cached data.
|
1 | Specify a value of 1 to
disable cached data.
|
SQL_XCODE_WARN=n
DEFAULT_ATTR=(SQL_XCODE_WARN=1)
0 | Specify 0 to return
an error if data cannot be transcoded.
|
1 | Specify 1 to return
a warning if data cannot be transcoded.
|
2 | Specify 2 to ignore
transcoding errors.
|
DEFAULT_CATALOG=catalog-name