DatabaseConnectionString¶
-
class
oci.database_management.models.
DatabaseConnectionString
(**kwargs)¶ Bases:
object
The Oracle Database connection string.
Attributes
PROTOCOL_TCP
A constant which can be used with the protocol property of a DatabaseConnectionString. PROTOCOL_TCPS
A constant which can be used with the protocol property of a DatabaseConnectionString. host_name
[Required] Gets the host_name of this DatabaseConnectionString. port
[Required] Gets the port of this DatabaseConnectionString. protocol
[Required] Gets the protocol of this DatabaseConnectionString. service
[Required] Gets the service of this DatabaseConnectionString. Methods
__init__
(**kwargs)Initializes a new DatabaseConnectionString object with values from keyword arguments. -
PROTOCOL_TCP
= 'TCP'¶ A constant which can be used with the protocol property of a DatabaseConnectionString. This constant has a value of “TCP”
-
PROTOCOL_TCPS
= 'TCPS'¶ A constant which can be used with the protocol property of a DatabaseConnectionString. This constant has a value of “TCPS”
-
__init__
(**kwargs)¶ Initializes a new DatabaseConnectionString object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - host_name (str) – The value to assign to the host_name property of this DatabaseConnectionString.
- port (int) – The value to assign to the port property of this DatabaseConnectionString.
- service (str) – The value to assign to the service property of this DatabaseConnectionString.
- protocol (str) – The value to assign to the protocol property of this DatabaseConnectionString. Allowed values for this property are: “TCP”, “TCPS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
host_name
¶ [Required] Gets the host_name of this DatabaseConnectionString. The host name of the database or the SCAN name in case of a RAC database.
Returns: The host_name of this DatabaseConnectionString. Return type: str
-
port
¶ [Required] Gets the port of this DatabaseConnectionString. The port used to connect to the database.
Returns: The port of this DatabaseConnectionString. Return type: int
-
protocol
¶ [Required] Gets the protocol of this DatabaseConnectionString. The protocol used to connect to the database.
Allowed values for this property are: “TCP”, “TCPS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The protocol of this DatabaseConnectionString. Return type: str
-
service
¶ [Required] Gets the service of this DatabaseConnectionString. The service name of the database.
Returns: The service of this DatabaseConnectionString. Return type: str
-