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

    • 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 name
        NullPointerException - if the argument is null