13 The Oracle Driver : Connection Option Descriptions

Connection Option Descriptions
The following connection option descriptions are listed alphabetically by the GUI name that appears on the driver Setup dialog box. The connection string attribute name, along with its short name, is listed immediately underneath the GUI name.
In most cases, the GUI name and the attribute name are the same; however, some exceptions exist. If you need to look up an option by its connection string attribute name, please refer to the alphabetical table of connection string attribute names.
Also, a few connection string attributes, for example, Password, do not have equivalent options that appear on the GUI. They are in the list of descriptions alphabetically by their attribute names.
Table 13-1 lists the connection string attributes supported by the Oracle driver.
Alternate Servers
Attribute
AlternateServers (ASRV)
Description
A list of alternate database servers to which the driver tries to connect if the primary database server is unavailable. Specifying a value for this option enables connection failover for the driver. The value you specify must be in the form of a string that defines the physical location of each alternate server. All of the other required connection information for each alternate server is the same as what is defined for the primary server connection.
Valid Values
(ServerName=servervalue[, . . .])
You must specify the server name of each alternate server.
Example
The following Alternate Servers value defines two alternate database servers for connection failover:
(ServerName=AcctBackup1, ServerName=AcctBackup2)
Default
None
GUI tab
Failover tab
Application Using Threads
Attribute
ApplicationUsingThreads (AUT)
Description
Determines whether the driver works with applications using multiple ODBC threads.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the driver works with single-threaded and multi-threaded applications.
If set to 0 (Disabled), the driver does not work with multi-threaded applications. If using the driver with single-threaded applications, this value avoids additional processing required for ODBC thread-safety standards.
Default
1 (Enabled)
GUI tab
Advanced tab
Array Size
Attribute
ArraySize (AS)
Description
The number of bytes the driver can fetch in a single network round trip. Larger values increase throughput by reducing the number of times the driver fetches data across the network. Smaller values increase response time, as there is less of a delay waiting for the server to transmit data.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
An integer from 1 to 4,294,967,296 (4 GB)
The value 1 does not define the number of bytes but, instead, causes the driver to allocate space for exactly one row of data.
Default
60000
GUI Tab
Performance tab
Catalog Functions Include Synonyms
Attribute
CatalogIncludesSynonyms (CIS)
Description
Determines whether synonyms are included in calls to SQLProcedures, SQLStatistics, and SQLProcedureColumns.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), synonyms are included in calls to SQLProcedures, SQLStatistics, and SQLProcedureColumns.
If set to 0 (Disabled), synonyms are excluded (a non-standard behavior) and performance is thereby improved.
Default
1 (Enabled)
GUI Tab
Performance tab
Catalog Options
Attribute
CatalogOptions (CO)
Description
Determines whether SQL_NULL_DATA is returned for the result columns REMARKS and COLUMN_DEF.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the result column REMARKS (for the catalog functions SQLTables and SQLColumns) and the result column COLUMN_DEF (for the catalog function SQLColumns) return actual values. Enabling this option reduces the performance of your catalog (SQLColumns and SQLTables) queries.
If set to 0 (Disabled), SQL_NULL_DATA is returned for the result columns REMARKS and COLUMN_DEF.
Default
0 (Disabled)
GUI Tab
Advanced tab
Client Version
Attribute
ClientVersion (CV)
Description
A value to specify the Oracle client software version. The driver assumes that it is using the version of Oracle client software specified by this option to connect to an Oracle server.
Valid Values
8i | 9iR1 | 9iR2 | 10gR1
When set to 10gR1 and later, the driver binds all non-integer numerics as BINARY FLOAT and BINARY DOUBLE. When set to any Oracle version previous to Oracle10g R1, the driver binds non-integer numerics as if connected to an Oracle 9i R2 or earlier version of the server (regardless of the actual version of the server to which it is connected). When connecting to an Oracle 10g server with a pre-10g client, this attribute must be set to the same version as the actual Oracle client software in use; otherwise, numeric parameter bindings may fail. Versions of the Oracle client software prior to 10g R1 do not fully support the new features of the Oracle 10g database server.
Default
9iR2
GUI Tab
General tab
Connection Pooling
Attribute
Pooling (POOL)
Description
Specifies whether to use the driver’s connection pooling.
NOTE: The application must be thread-enabled to use connection pooling.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the driver uses connection pooling.
If set to 0 (Disabled), the driver does not use connection pooling.
Default
0 (Disabled)
GUI Tab
Pooling tab
Connection Reset
Attribute
ConnectionReset (CR)
Description
Determines whether the state of connections that are removed from the connection pool for reuse by the application is reset to the initial configuration of the connection.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the state of connections removed from the connection pool for reuse by an application is reset to the initial configuration of the connection. Resetting the state can negatively impact performance because additional commands must be sent over the network to the server to reset the state of the connection.
If set to 0 (Disabled), the state of connections is not reset.
Default
0 (Disabled)
GUI Tab
Pooling tab
Connection Retry Count
Attribute
ConnectionRetryCount (CRC)
Description
The number of times the driver retries connection attempts to the primary database server, and if specified, alternate servers until a successful connection is established.
This option and the Connection Retry Delay connection option, which specifies the wait interval between attempts, can be used in conjunction with failover.
Valid Values
0 | x
where x is a positive integer from 1 to 65535.
If set to 0, the driver does not try to connect after the initial unsuccessful attempt.
If set to x, the driver retries connection attempts the specified number of times. If a connection is not established during the retry attempts, the driver returns an error that is generated by the last server to which it tried to connect.
Default
0
GUI Tab
Failover tab
Connection Retry Delay
Attribute
ConnectionRetryDelay (CRD)
Description
The number of seconds the driver waits between connection retry attempts when Connection Retry Count is set to a positive integer.
This option and the Connection Retry Count connection option can be used in conjunction with failover.
Valid Values
0 | x
where x is a positive integer from 1 to 65535.
If set to 0, there is no delay between retries.
If set to x, the driver waits the specified number of seconds between connection retry attempts.
Default
3
GUI Tab
Failover tab
Data Source Name
Attribute
DataSourceName (DSN)
Description
The name of a data source in your Windows Registry or odbc.ini file.
Valid Values
string
where string is the name of a data source.
Default
None
GUI Tab
General tab
Default Buffer Size for Long/LOB Columns (in Kb)
Attribute
DefaultLongDataBuffLen (DLDBL)
Description
The maximum length of data (in KB) the driver can fetch from long columns in a single round trip and the maximum length of data that the driver can send using the SQL_DATA_AT_EXEC parameter.
NOTE: If this option is enabled, the Optimize Long Performance option is ignored.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
An integer in multiples of 1024
The value must be in multiples of 1024 (for example, 1024, 2048). You need to increase the default value if the total size of any Long data exceeds 1 MB. This value is multiplied by 1024 to determine the total maximum length of fetched data. For example, if you enter a value of 2048, the maximum length of data would be 1024 x 2048, or 2097152 (2 MB).
Default
1024
GUI Tab
Advanced tab
Describe At Prepare
Attribute
DescribeAtPrepare (DAP)
Description
Determines whether the driver describes the SQL statement at prepare time.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the driver describes the SQL statement at prepare time.
If set to 0 (Disabled), the driver does not describe the SQL statement at prepare time.
Default
0 (Disabled)
GUI Tab
Advanced tab
Description
Attribute
Description (n/a)
Description
An optional long description of a data source. This description is not used as a runtime connection attribute, but does appear in the ODBC.INI section of the Registry and in the odbc.ini file.
Valid Values
string
where string is a description of a data source.
Default
None
GUI Tab
General tab
Enable N-CHAR Support
Attribute
EnableNcharSupport (ENS)
Description
Determines whether the driver provides support for the N-types NCHAR, NVARCHAR2, and NCLOB. These types are described as SQL_WCHAR, SQL_WVARCHAR, and SQL_WLONGVARCHAR, and are returned as supported by SQLGetTypeInfo. In addition, the "normal" char types (char, varchar2, long, clob) are described as SQL_CHAR, SQL_VARCHAR, and SQL_LONGVARCHAR regardless of the character set on the Oracle server.
See “Unicode Support” for details.
NOTE: Valid only on Oracle 9i and higher.
Valid Values
0 | 1
If set to 1 (Enabled), the driver provides support for the N-types NCHAR, NVARCHAR2, and NCLOB.
If set to 0 (Disabled), the driver does not provide support for the N-types NCHAR, NVARCHAR2, and NCLOB.
Default
0 (Disabled)
GUI Tab
Advanced tab
Enable Scrollable Cursors
Attribute
EnableScrollableCursors (ESC)
Description
Determines whether scrollable cursors, both Keyset and Static, are enabled for the data source.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), scrollable cursors are enabled for the data source.
If set to 0 (Disabled), scrollable cursors are not enabled.
Default
1 (Enabled)
GUI Tab
Performance tab
Enable SQLDescribeParam
Attribute
EnableDescribeParam (EDP)
Description
Determines whether the SQLDescribeParam function describes all parameters with a data type of SQL_VARCHAR for Select statements. For Insert/Update/Delete statements and for stored procedures, the parameters are described as the actual Oracle data types on the Oracle server. This option must be enabled to access data when using Microsoft Remote Data Objects (RDO).
Valid Values
0 | 1
If set to 1 (Enabled), the SQLDescribeParam function describes all parameters with a data type of SQL_VARCHAR for Select statements.
If set to 0 (Disabled), the SQLDescribeParam function does not describe all parameters with a data type of SQL_VARCHAR for Select statements.
Default
0 (Disabled)
GUI Tab
Advanced tab
Enable Static Cursors for Long Data
Attribute
EnableStaticCursorsForLongData (ESCLD)
Description
Determines whether the driver supports Long columns when using a static cursor. Enabling this option causes a performance penalty at the time of execution when reading Long data.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the driver supports Long columns when using a static cursor.
If set to 0 (Disabled), the driver does not support Long columns when using a static cursor.
NOTE: You must enable this option if you want to persist a result set that contains Long data into an XML data file.
Default
0 (Disabled)
GUI Tab
Performance tab
Enable Timestamp with Timezone
Attribute
EnableTimestampwithTimezone (ETWT)
Description
Determines whether the driver exposes timestamps with timezones to the application.
Valid Values
0 | 1
If set to 1 (Enabled), the driver exposes timestamps with timezones to the application. The driver issues an ALTER SESSION at connection time to modify NLS_TIMESTAMP_TZ_FORMAT. NLS_TIMESTAMP_TZ_FORMAT is changed to the ODBC definition of a timestamp literal with the addition of the timezone literal: 'YYYY-MM-DD HH24:MI:SSXFF TZR'.
If set to 0 (Disabled), timestamps with timezones are not exposed to the application.
Default
0 (Disabled)
GUI Tab
Advanced tab
IANAAppCodePage
Attribute
IANAAppCodePage (IACP)
Description
An Internet Assigned Numbers Authority (IANA) value. You must specify a value for this option if your application is not Unicode‑enabled or if your database character set is not Unicode. Refer to Chapter 4 “Internationalization, Localization, and Unicode” in the DataDirect Connect Series for ODBC Reference for details.
The driver uses the specified IANA code page to convert "W" (wide) functions to ANSI.
The driver and Driver Manager both check for the value of IANAAppCodePage in the following order:
If the driver does not find an IANAAppCodePage value, the driver uses the default value of 4 (ISO 8859-1 Latin-1).
Valid Values
IANA_code_page
where IANA_code_page is one of the valid values listed in Chapter 1 “Values for the Attribute IANAAppCodePage” in the DataDirect Connect Series for ODBC Reference. The value must match the database character encoding and the system locale.
Default
4 (ISO 8559-1 Latin-1)
GUI Tab
Advanced tab
Load Balance Timeout
Attribute
LoadBalanceTimeout (LBT)
Description
The number of seconds to keep inactive connections open in a connection pool. An inactive connection is a database session that is not associated with an ODBC connection handle, that is, a connection in the pool that is not in use by an application.
NOTE: The Min Pool Size option may cause some connections to ignore this value.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | x
where x is a positive integer that specifies a number of seconds.
If set to 0, inactive connections are kept open.
If set to x, inactive connections are closed after the specified number of seconds passes.
Default
0 (Disabled)
GUI Tab
Pooling tab
Load Balancing
Attribute
LoadBalancing (LB)
Description
Determines whether the driver uses client load balancing in its attempts to connect to the database servers (primary and alternate). You can specify one or multiple alternate servers by setting the Alternate Servers option.
Valid Values
0 | 1
If set to 1 (Enabled), the driver uses client load balancing and attempts to connect to the database servers (primary and alternate servers) in random order.
If set to 0 (Disabled), the driver does not use client load balancing and connects to each server based on their sequential order (primary server first, then, alternate servers in the order they are specified).
NOTE: This option has no effect unless alternate servers are defined for the Alternate Servers connection option.
Default
0 (Disabled)
GUI Tab
Failover tab
Local Timezone Offset
Attribute
LocalTimezoneOffset (LTZO)
Description
A value to alter local time zone information. The default is "" (empty string), which means that the driver determines local time zone information from the operating system. If it is not available from the operating system, the driver defaults to using the setting on the Oracle server.
Valid Values
Valid values are specified as offsets from GMT as follows: (–)HH:MM. For example, -08:00 equals GMT minus 8 hours.
The driver uses the value of this option to issue an ALTER SESSION for local time zone at connection time.
Default
"" (Empty String)
GUI Tab
Advanced tab
Lock Timeout
Attribute
LockTimeout (LTO)
Description
Specifies the amount of time, in seconds, the Oracle server waits for a lock to be released before generating an error when processing a Select...For Update statement on an Oracle 9i or higher server.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
-1 | 0 | x
where x is an integer that specifies a number of seconds.
If set to -1, the server waits indefinitely for the lock to be released.
If set to 0, the server generates an error immediately and does not wait for the lock to time out.
If set to x, the server waits for the specified number of seconds for the lock to be released.
NOTE: If you are connected to an Oracle 8i server, any value greater than 0 is equivalent to the value -1.
Default
-1
GUI Tab
Performance tab
Max Pool Size
Attribute
MaxPoolSize (MXPS)
Description
The maximum number of connections allowed within a single connection pool. When the maximum number of connections is reached, no additional connections can be created in the connection pool.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
An integer from 1 to 65535
For example, if set to 20, the maximum number of connections allowed in the pool is 20.
Default
100
GUI Tab
Pooling tab
Min Pool Size
Attribute
MinPoolSize (MNPS)
Description
The minimum number of connections that are opened and placed in a connection pool, in addition to the active connection, when the pool is created. The connection pool retains this number of connections, even when some connections exceed their Load Balance Timeout value.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | x
where x is an integer from 1 to 65535.
For example, if set to 5, the start-up number of connections in the pool is 5 in addition to the current existing connection.
If set to 0, no connections are opened in addition to the current existing connection.
Default
0
GUI Tab
Pooling tab
Optimize Long Performance
Attribute
OptimizeLongPerformance (OLP)
Description
Allows the driver to fetch Long data directly into the application’s buffers rather than allocating buffers and making a copy. This option decreases fetch times on Long data; however, it can cause the application to be limited to one active statement per connection.
NOTE: If this option is enabled, the Default Buffer Size for Long/LOB Columns option is ignored.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the driver fetches Long data directly into the application’s buffers rather than allocating buffers and making a copy.
If set to 0 (Disabled), the driver does not fetch Long data directly into the application’s buffers.
Default
0 (Disabled)
GUI Tab
Performance tab
Password
Attribute
Password (PWD)
Description
The password that the application uses to connect to your database. The Password option cannot be specified through the driver Setup dialog box and should not be stored in a data source. It is specified through the Logon dialog box or a connection string.
Valid Values
pwd
where pwd is a valid password.
Default
None
GUI Tab
n/a
Procedure Returns Results
Attribute
ProcedureRetResults (PRR)
Description
Determines whether the driver returns result sets from stored procedures/functions.
See “MTS Support” for details.
Valid Values
0 | 1
If set to 1 (Enabled), the driver returns result sets from stored procedures/functions. When set to 1 and you execute a stored procedure that does not return result sets, you will incur a small performance penalty.
If set to 0 (Disabled), the driver does not return result sets from stored procedures.
Default
0 (Disabled)
GUI Tab
Advanced tab
Report Codepage Conversion Errors
Attribute
ReportCodepageConversionErrors (RCCE)
Description
Specifies how the driver handles code page conversion errors that occur when a character cannot be converted from one character set to another.
An error message or warning can occur if an ODBC call causes a conversion error, or if an error occurs during code page conversions to and from the database or to and from the application. The error or warning generated is Code page conversion error encountered. In the case of parameter data conversion errors, the driver adds the following sentence: Error in parameter x, where x is the parameter number. The standard rules for returning specific row and column errors for bulk operations apply.
Valid Values
0 | 1 | 2
If set to 0 (Ignore Errors), the driver substitutes 0x1A for each character that cannot be converted and does not return a warning or error.
If set to 1 (Return Error), the driver returns an error instead of substituting 0x1A for unconverted characters.
If set to 2 (Return Warning), the driver substitutes 0x1A for each character that cannot be converted and returns a warning.
Default
0 (Ignore Errors)
GUI Tab
Advanced tab
Report Recycle Bin
Attribute
ReportRecycleBin (RRB)
Description
Determines whether support is provided for reporting objects that are in the Oracle Recycle Bin.
On Oracle 10g R1 and higher, when a table is dropped, it is not actually removed from the database, but placed in the recycle bin instead.
Valid Values
0 | 1
If set to 1 (Enabled), support is provided for reporting objects that are in the Oracle Recycle Bin.
If set to 0 (Disabled), the driver does not return tables contained in the recycle bin in the result sets returned from SQLTables and SQLColumns. Functionally, this means that the driver filters out any results whose Table name begins with BIN$.
Default
0 (Disabled)
GUI Tab
Advanced tab
Server List
Attribute
ServerList
Description
A list of client connection strings that appear in the logon dialog box. This option applies to GUIs only and is not a runtime connection string attribute.
See “Performance Considerations” for details about the logon dialog box.
Valid Values
string
where string is a list of valid client connection strings. Separate the strings with commas. If the client connection string contains a comma, enclose it in quotation marks, for example, "Serv,1", "Serv,2", "Serv,3".
Default
None
GUI Tab
Advanced tab
Server Name
Attribute
ServerName (SRVR)
Description
The client connection string of the computer containing the Oracle database tables you want to access.
Valid Values
string
where string is a valid client connection string.
For local servers, use the SQL*Net connection string. If the SQL*Net connection string contains semicolons, enclose it in quotation marks. Refer to your SQL*Net documentation for more information.
For remote servers, the Oracle TNS Client connection string is the alias name of the Oracle Listener on your network.
Default
None
GUI Tab
General tab
Timestamp Escape Mapping
Attribute
TimestampEscapeMapping (TEM)
Description
Determines how the driver maps Date, Time, and Timestamp literals.
Valid Values
0 | 1
If set to 0 (Oracle Version Specific), the driver determines whether to use the TO_DATE or TO_TIMESTAMP function based on the version of the Oracle server to which it is connected. If the driver is connected to an 8.x server, it maps the Date, Time, and Timestamp literals to the TO_DATE function. If the driver is connected to a 9.x or higher server, it maps these escapes to the TO_TIMESTAMP function.
If set to 1 (Oracle 8x Compatible), the driver always uses the Oracle 8.x TO_DATE function as if connected to an Oracle 8.x server.
Default
0 (Oracle Version Specific)
GUI Tab
Advanced tab
Use Current Schema for SQLProcedures
Attribute
UseCurrentSchema (UCS)
Description
Determines whether the driver returns only procedures owned by the current user when executing SQLProcedures.
This connection option can affect performance. See “Performance Considerations” for details.
Valid Values
0 | 1
When set to 1 (Enabled), the call for SQLProcedures is optimized, but only procedures owned by the user are returned.
When set to 0 (Disabled), the driver does not specify only the current user.
Default
1 (Enabled)
GUI Tab
Performance tab
User Name
Attribute
LogonID (UID)
Description
The default user ID that is used to connect to your database. Your ODBC application may override this value or you may override it in the logon dialog box or connection string.
You can also use OS Authentication to connect to your Oracle database. See “OS Authentication” for details.
Valid Values
userid
where userid is a valid user ID with permissions to access the database.
Default
None
GUI Tab
Advanced tab