From cf1c5945d53c0dbba07ca5a1b1164f5a6b22898d Mon Sep 17 00:00:00 2001 From: haszi Date: Fri, 28 Jun 2024 21:49:13 +0200 Subject: [PATCH] Add missing OCI8 constants --- reference/oci8/constants.xml | 124 ++++++++++++++++++++++++++++++++++- 1 file changed, 123 insertions(+), 1 deletion(-) diff --git a/reference/oci8/constants.xml b/reference/oci8/constants.xml index d4361d075655..9e7020522b1f 100644 --- a/reference/oci8/constants.xml +++ b/reference/oci8/constants.xml @@ -397,7 +397,7 @@ SQLT_RSET - The same as OCI_B_CURSOR. + The same as OCI_B_CURSOR. @@ -475,6 +475,128 @@ + + OCI8 Transparent Application Failover (TAF) Constants + + + OCI_FO_ABORT + (int) + + + + Failover was unsuccessful and there is no option of retrying. + + + + + + OCI_FO_BEGIN + (int) + + + + Failover has detected a lost connection and failover is starting. + + + + + + OCI_FO_END + (int) + + + + Failover completed successfully. + + + + + + OCI_FO_ERROR + (int) + + + + Failover was unsuccessful but it gives the application the opportunity + to handle the error and return OCI_FO_RETRY to retry failover. + + + + + + OCI_FO_NONE + (int) + + + + The user has not requested a failover type. + + + + + + OCI_FO_REAUTH + (int) + + + + An Oracle user has been re-authenticated. + + + + + + OCI_FO_RETRY + (int) + + + + The failover should be attempted again by Oracle. + In case of an error while failing over to a new + connection, TAF is able to retry the failover. + Typically, the application code should sleep for + a while before returning OCI_FO_RETRY. + + + + + + OCI_FO_SELECT + (int) + + + + The user has requested SELECT failover as well. + It allows users with open cursors to continue fetching from them after failure. + + + + + + OCI_FO_SESSION + (int) + + + + The user has requested only session failover. + For example, if a user's connection is lost, + then a new session is automatically created for the user on the backup. + This type of failover does not attempt to recover SELECTs. + + + + + + OCI_FO_TXNAL + (int) + + + + The user has requested a transaction failover. + + + +