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)FrancésItaliano (Italy)Português (Brasil)日本語Русский (Russia)中文 (简体) (China)中文 (繁體, 台灣) (Taiwan)ar-AR
  • Login

Progress DataDirect for ODBC for Amazon Redshift Wire Protocol Driver User's Guide Release 8.0.0

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 for Amazon Redshift Wire Protocol Driver
    • What's new in this release?
    • Driver requirements
    • ODBC compliance
    • Version string information
      • getFileVersionString function
    • Data types
      • Retrieving data type information
    • SQL support
    • Additional information
    • Troubleshooting
    • Contacting Technical Support
  • Getting started
    • Configuring and connecting on Windows
      • Configuring a data source
      • Testing the connection
    • Configuring and connecting on UNIX and Linux
      • Environment configuration
      • Test loading the driver
      • Configuring a data source in the system information file
      • Testing the connection
  • Tutorials
    • The Example application
    • Accessing data in Tableau (Windows only)
    • Accessing data in Microsoft Excel from the Data Connection Wizard (Windows only)
    • Accessing data in Microsoft Excel from the Query Wizard (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
        • The test loading tool
        • Data source configuration on UNIX/Linux
          • Configuration through the system information (odbc.ini) file
            • Sample default odbc.ini file
        • 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
        • Failover tab
        • Pooling tab
        • Authentication tab
      • Using a connection string
      • Password Encryption Tool (UNIX/Linux only)
      • Using a logon dialog box
    • Performance considerations
    • 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
    • Using security
      • Data encryption across the network
      • TLS/SSL encryption
        • Certificates
        • TLS/SSL server authentication
        • TLS/SSL client authentication
        • Generating TLS/SSL certificates using OpenSSL 3.5-compliant algorithms
        • Designating an OpenSSL library
      • Summary of security-related options
      • Authentication
        • Basic authentication
        • Azure Active Directory authentication
        • JWT authentication
    • Isolation and lock levels supported
    • Unicode support
    • Binding parameter markers
    • Persisting a Result Set as an XML Data File
    • Packet logging
  • Connection option descriptions
    • Alternate Servers
    • Application Using Threads
    • Authentication Method
    • Auto Create
    • AWS Cluster
    • AWS DB Group
    • AWS DB User
    • AWS Region
    • Azure Client ID
    • Azure Client Secret
    • Azure Tenant ID
    • Connection Pooling
    • Connection Reset
    • Connection Retry Count
    • Connection Retry Delay
    • Crypto Protocol Version
    • CryptoLibName
    • Database Name
    • Data Source Name
    • Description
    • Enable FIPS
    • Enable SQLDescribeParam
    • Encryption Method
    • Extended Column MetaData
    • Failover Granularity
    • Failover Mode
    • Failover Preconnect
    • Fetch TSWTZ as Timestamp
    • Host Name
    • Host Name In Certificate
    • IANAAppCodePage
    • Initialization String
    • Key Password
    • Key Store
    • Key Store Password
    • Load Balance Timeout
    • Load Balancing
    • Login Timeout
    • Max Char Size
    • Max Pool Size
    • Max Varchar Size
    • Min Pool Size
    • OpenSSLConfigFile
    • OpenSSLProviderPath
    • Password
    • Port Number
    • Proxy Host
    • Proxy Mode
    • Proxy Password
    • Proxy Port
    • Proxy User
    • Query Timeout
    • Report Codepage Conversion Errors
    • Show Selectable Tables
    • SSLLibName
    • TCP Keep Alive
    • Transaction Error Behavior
    • Truststore
    • Truststore Password
    • User Name
    • Validate Server Certificate
    • Web Identity Token
  • 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 23, 2020
  • 3 minute read
    • DataDirect Connectors
    • ODBC
    • Amazon Redshift 8.0
    • Documentation

The following table summarizes how failover-related connection options work with the driver. The connection options are listed alphabetically by the GUI name that appears on the driver Setup dialog box. The connection string attribute name is listed immediately after the GUI name in parentheses. 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)

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. For additional information, see "Alternate Servers."

Default: None

Connection Retry Count (ConnectionRetryCount)

(See step 5)

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.

Default: 0

Connection Retry Delay (ConnectionRetryDelay)

(See step 6)

Specifies the number of seconds the driver waits between connection retry attempts when Connection Retry Count 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 disabled, the driver tries to connect to an alternate server only when failover is caused by an unsuccessful connection attempt or a lost connection.

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

If enabled, the driver uses client load balancing and attempts to connect to the database servers (primary and alternate servers) in random order.

If 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