DatabaseConnectionString

class oci.database.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.
hostname [Required] Gets the hostname 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:
  • hostname (str) – The value to assign to the hostname 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’.
hostname

[Required] Gets the hostname of this DatabaseConnectionString. The host name of the database.

Returns:The hostname 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 name of the service alias used to connect to the database.

Returns:The service of this DatabaseConnectionString.
Return type:str