Package com.oracle.bmc.goldengate.model
Enum OracleConnection.SessionMode
- java.lang.Object
-
- java.lang.Enum<OracleConnection.SessionMode>
-
- com.oracle.bmc.goldengate.model.OracleConnection.SessionMode
-
- All Implemented Interfaces:
BmcEnum,Serializable,Comparable<OracleConnection.SessionMode>
- Enclosing class:
- OracleConnection
public static enum OracleConnection.SessionMode extends Enum<OracleConnection.SessionMode> implements BmcEnum
Specifies the session mode for the database connection.Use REDIRECT only for RAC databases with SCAN listeners that return IP addresses. For RAC databases with SCAN listeners that return FQDNs, and for all other Oracle database technologies, use DIRECT. In RAC deployments, SCAN listeners redirects a connection to a specific database node, identified by either IP address or FQDN. It is recommended to configure RAC with FQDN-based SCAN listeners.
The default is DIRECT, except when databaseId is provided and the discovered database relies on the SCAN listener. In this case, the default is REDIRECT.
Deprecated: Defaulting to the REDIRECT session mode will be removed after March 1, 2027.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DirectRedirectUnknownEnumValueThis value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OracleConnection.SessionModecreate(String key)StringgetValue()static OracleConnection.SessionModevalueOf(String name)Returns the enum constant of this type with the specified name.static OracleConnection.SessionMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Direct
public static final OracleConnection.SessionMode Direct
-
Redirect
public static final OracleConnection.SessionMode Redirect
-
UnknownEnumValue
public static final OracleConnection.SessionMode UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
-
Method Detail
-
values
public static OracleConnection.SessionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OracleConnection.SessionMode c : OracleConnection.SessionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OracleConnection.SessionMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
create
public static OracleConnection.SessionMode create(String key)
-
-