Skip to main contentSkip to search
Powered by Zoomin Software. For more details please contactZoomin
Progress DocumentationProgress Documentation
Progress Documentation
  • Home
  • Home
  • EnglishČeštinaDeutsch (Germany)Español (Spain)Français (France)Italiano (Italy)Português (Brasil)日本語Русский (Russia)中文 (简体) (China)中文 (繁體, 台灣) (Taiwan)ar-AR
  • Login

Progress DataDirect for ODBC for Oracle Wire Protocol Driver User's Guide Release 8.0.2

Configuring failover-related options

Save PDF
Save selected topicSave selected topic and subtopicsSave all topics
Share
Share to emailCopy topic URL
Print
Table of Contents
  • Welcome to the Progress DataDirect for ODBC Oracle Wire Protocol Driver
    • What's new in this release?
    • Driver requirements
    • Installing and setting up the driver (Windows)
    • Installing and setting up the driver (UNIX/Linux)
    • ODBC compliance
    • Version string information
      • getFileVersionString function
    • Data types
      • XMLType
        • Examples
      • Retrieving data type information
    • SQL support
    • Additional information
    • Contacting Technical Support
  • Tutorials
    • The Example application
    • Tableau (Windows only)
    • Microsoft Excel (Windows only)
    • Power BI (Windows only)
  • Using the driver
    • Configuring and connecting to data sources
      • Configuring the product on UNIX/Linux
        • Environment variables
          • Library search path
          • ODBCINI
          • ODBCINST
          • DD_INSTALLDIR
        • Data source configuration on UNIX/Linux
          • Configuring a data source in the system information file
            • Sample default odbc.ini file
        • The example application
        • DSN-less connections
          • Sample odbcinst.ini file
        • File data sources
        • UTF-16 applications on UNIX and Linux
      • Data source configuration through a GUI
        • Advanced tab
        • Security tab
        • Performance tab
        • Failover tab
        • Pooling tab
        • Bulk tab
        • Client Monitoring tab
        • Advanced Security tab
        • Proxy tab
      • Using a connection string
      • Password Encryption Tool (UNIX/Linux only)
      • Using a logon dialog box
    • Performance considerations
    • Using LDAP
    • Connecting through a proxy server
      • Oracle Connection Manager
    • Support for Oracle RAC
    • XA interface support
    • MTS support
    • OS authentication
    • Isolation and lock levels supported
    • Unicode support
    • Using parameter arrays
    • Support of materialized views
    • Stored procedure results
    • Unexpected characters
    • Using failover
      • Connection failover
      • Extended connection failover
      • Select connection failover
      • Guidelines for primary and alternate servers
      • Using client load balancing
      • Using connection retry
      • Configuring failover-related options
        • A connection string example
        • An odbc.ini file example
      • Configuring failover using the TNSNAMES.ORA file
    • Using client information
      • How databases store client information
      • Storing client information
    • Using security
      • Authentication
        • Kerberos requirements
        • Kerberos authentication
        • OS authentication
        • Oracle Internet Directory (OID)
        • Oracle Wallet SSL Authentication
        • Oracle Wallet Password Store
        • Entra ID access token authentication
      • Data encryption across the network
      • Data encryption and integrity
        • TLS/SSL encryption
          • Certificates
          • TLS/SSL server authentication
            • Using SQL_COPT_INMEMORY_TRUSTSTORECERT
            • Importing root certificates into the Windows certificate store
              • Importing root certificates using Certificate Import Wizard
              • Importing root certificates using a PowerShell script
          • TLS/SSL client authentication
          • Generating TLS/SSL certificates using OpenSSL 3.5-compliant algorithms
          • Designating an OpenSSL library
        • Using Oracle Wallet as a keystore
        • Oracle Advanced Security
      • Summary of security-related options
    • Using DataDirect Connection Pooling
      • Creating a connection pool
      • Adding connections to a pool
      • Removing connections from a pool
      • Handling dead connections in a pool
      • Connection pool statistics
      • Summary of pooling-related options
    • Using DataDirect Bulk Load
      • Bulk export and load methods
      • Exporting data from a database
      • Bulk loading to a database
      • The bulk load configuration file
        • Bulk load configuration file schema for Oracle
        • Verification of the bulk load configuration file
      • Sample applications
      • Character set conversions
      • External overflow files
      • Limitations
      • Summary of related options for DataDirect Bulk Load
    • Using bulk load for batch inserts
      • Determining the bulk load protocol
      • Limitations
      • Summary of related options for bulk load for batch inserts
    • Persisting a result set as an XML data file
      • Using the Windows XML persistence demo tool
      • Using the UNIX/Linux XML persistence demo tool
    • Packet logging
  • Connection option descriptions
    • Accounting Info
    • Action
    • Alternate Servers
    • Application Name
    • Application Using Threads
    • Array Size
    • Authentication Method
    • Batch Size
    • Batch Failure Returns Error
    • Bind Params As Unicode
    • Bulk Binary Threshold
    • Bulk Character Threshold
    • Bulk Options
    • Cached Cursor Limit
    • Cached Description Limit
    • Catalog Functions Include Synonyms
    • Catalog Options
    • Client Host Name
    • Client ID
    • Client User
    • Connection Pooling
    • Connection Reset
    • Connection Retry Count
    • Connection Retry Delay
    • Credentials Wallet Entry
    • Credentials Wallet Path
    • Crypto Protocol Version
    • CryptoLibName
    • Data Integrity Level
    • Data Integrity Types
    • Data Source Name
    • Default Buffer Size for Long/LOB Columns (in Kb)
    • Describe at Prepare
    • Description
    • Edition Name
    • Enable Bulk Load
    • Enable FIPS
    • Enable N-CHAR Support
    • Enable Scrollable Cursors
    • Enable Server Result Cache
    • Enable SQLDescribeParam
    • Enable Static Cursors for Long Data
    • Enable Timestamp with Timezone
    • Encryption Level
    • Encryption Method
    • Entra Access Token
    • Encryption Types
    • Failover Granularity
    • Failover Mode
    • Failover Preconnect
    • Fetch TSWTZ as Timestamp
    • Field Delimiter
    • GSS Client Library
    • Host
    • Host Name In Certificate
    • IANAAppCodePage
    • Impersonate User
    • Initialization String
    • Key Password
    • Key Store
    • Key Store Password
    • LDAP Crypto Protocol Version
    • LDAP Distinguished Name
    • LDAP Encryption Method
    • LDAP Key Store
    • LDAP Trust Store
    • LDAP Validate Server Certificate
    • Load Balancing
    • LoadBalance Timeout
    • LOB Prefetch Size
    • Local Timezone Offset
    • Lock Timeout
    • Login Timeout
    • Max Pool Size
    • Min Pool Size
    • Module
    • OpenSSLConfigFile
    • OpenSSLProviderPath
    • Password
    • Port Number
    • Proxy Host
    • Proxy Mode
    • Proxy Password
    • Proxy Port
    • Proxy User
    • PRNGSeedFile
    • PRNGSeedSource
    • Procedure Returns Results
    • Program ID
    • Query Timeout
    • Record Delimiter
    • Report Codepage Conversion Errors
    • Report Recycle Bin
    • SDU Size
    • Server Name
    • Server Process Type
    • Service Name
    • SID
    • SSLLibName
    • Support Binary XML
    • TCP Keep Alive
    • Timestamp Escape Mapping
    • TNSNames File
    • Trust Store
    • Trust Store Password
    • Use Current Schema for SQLProcedures
    • User Name
    • Validate Server Certificate
    • Wallet Password
    • Wire Protocol Mode
  • Copyright
Table of Contents

Configuring failover-related options

Save PDF
Save selected topicSave selected topic and subtopicsSave all topics
Share
Share to emailCopy topic URL
Print
  • Last Updated: October 28, 2020
  • 3 minute read
    • DataDirect Connectors
    • ODBC
    • Oracle Database Wire Protocol 8.0
    • Documentation

The following table summarizes how failover-related connection options work with the driver. See "Connection option descriptions" for details about configuring the options. The step numbers in the table refer the procedure that follows the table

Table 1. Summary: Failover and Related Connection Options
Option Characteristic
Alternate Servers (AlternateServers)

(See step 1)

One or multiple alternate database servers. An IP address or server name identifying each server is required.

Default: None

Connection Retry Count (ConnectionRetryCount)

(See step 5)

Number of times the driver retries the primary database server, and if specified, alternate servers until a successful connection is established.

Default: 0

Connection Retry Delay (ConnectionRetryDelay)

(See step 6)

Wait interval, in seconds, between connection retry attempts when the Connection Retry Count option is set to a positive integer.

Default: 3

Failover Granularity (FailoverGranularity)

(See step 3)

Determines whether the driver fails the entire failover process or continues with the process if errors occur while trying to reestablish a lost connection.

If set to 0 (Non-Atomic), the driver continues with the failover process and posts any errors on the statement on which they occur.

If set to 1 (Atomic) the driver fails the entire failover process if an error is generated as the result of anything other than executing and repositioning a Select statement. If an error is generated as a result of repositioning a result set to the last row position, the driver continues with the failover process, but generates a warning that the Select statement must be reissued.

If set to 2 (Atomic Including Repositioning), the driver fails the entire failover process if any error is generated as the result of restoring the state of the connection or the state of work in progress.

If set to 3 (Disable Integrity Check), the driver does not verify that the rows that were restored during the failover process match the original rows. This value applies only when Failover Mode is set to 2 (Select).

Default: 0 (Non-Atomic)

Failover Mode (FailoverMode)

(See step 2)

Specifies the type of failover method the driver uses.

If set to 0 (Connection), the driver provides failover protection for new connections only.

If set to 1 (Extended Connection), the driver provides failover protection for new and lost connections, but not any work in progress.

If set to 2 (Select), the driver provides failover protection for new and lost connections. In addition, it preserves the state of work performed by the last Select statement executed.

Default: 0 (Connection)

Failover Preconnect (FailoverPreconnect)

(See step 4)

Specifies whether the driver tries to connect to the primary and an alternate server at the same time.

If set to 0 (Disabled), the driver tries to connect to an alternate server only when failover is caused by an unsuccessful connection attempt or a lost connection. This value provides the best performance, but your application typically experiences a short wait while the failover connection is attempted.

If set to 1 (Enabled), the driver tries to connect to the primary and an alternate server at the same time. This can be useful if your application is time-sensitive and cannot absorb the wait for the failover connection to succeed.

Default: 0 (Disabled)

Load Balancing (LoadBalancing)

(See step 7)

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.

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).

Default: 0 (Disabled)

  1. To configure connection failover, you must specify one or more alternate database servers that are tried at connection time if the primary server is not accepting connections. To do this, use the Alternate Servers connection option. Connection attempts continue until a connection is successfully established or until all the database servers in the list have been tried once (the default).
  2. Choose a failover method by setting the Failover Mode connection option. The default method is Connection (FailoverMode=0).
  3. If Failover Mode is Extended Connection (FailoverMode=1) or Select (FailoverMode=2), set the Failover Granularity connection option to specify how you want the driver to behave if errors occur while trying to reestablish a lost connection. The default behavior of the driver is Non-Atomic (FailoverGranularity=0), which continues with the failover process and posts any errors on the statement on which they occur. Other values are:

    Atomic (FailoverGranularity=1): the driver fails the entire failover process if an error is generated as the result of anything other than executing and repositioning a Select statement. If an error is generated as a result of repositioning a result set to the last row position, the driver continues with the failover process, but generates a warning that the Select statement must be reissued.

    Atomic including Repositioning (FailoverGranularity=2): the driver fails the entire failover process if any error is generated as the result of restoring the state of the connection or the state of work in progress.

    Disable Integrity Check (FailoverGranularity=3): the driver does not verify that the rows restored during the failover process match the original rows. This value applies only when Failover Mode is set to Select (FailoverMode=2).

  4. Optionally, enable the Failover Preconnect connection option (FailoverPreconnect=1) if you want the driver to establish a connection with the primary and an alternate server at the same time. This value applies only when Failover Mode is set to Extended Connection (FailoverMode=1) or Select (FailoverMode=2). The default behavior is to connect to an alternate server only when failover is caused by an unsuccessful connection attempt or a lost connection (FailoverPreconnect=0).
  5. Optionally, specify the number of times the driver attempts to connect to the primary and alternate database servers after the initial unsuccessful connection attempt. By default, the driver does not retry. To set this feature, use the Connection Retry Count connection option.
  6. Optionally, specify the wait interval, in seconds, between attempts to connect to the primary and alternate database servers. The default interval is 3 seconds. To set this feature, use the Connection Retry Delay connection option.
  7. Optionally, specify whether the driver will use client load balancing in its attempts to connect to primary and alternate database servers. If load balancing is enabled, the driver uses a random pattern instead of a sequential pattern in its attempts to connect. The default value is not to use load balancing. To set this feature, use the Load Balancing connection option.
Contents
  • A connection string example
  • An odbc.ini file example
Related Links
  • Connection option descriptions
TitleResults for “How to create a CRG?”Also Available inAlert