OracleDataSource Members

OracleDataSource members are listed in the following tables.

OracleDataSource Public Methods

OracleDataSource methods are listed in Table 6-88.

Table 6-88 OracleDataSource Public Methods

Method Description

ClearPool

Clears the OracleDataSource associated pool.

CreateCommand

Returns an OracleCommand ready to execute against the OracleDataSource

CreateConnection

Returns a new, closed database connection represented by the OracleDataSource

Dispose

void Dispose() disposes the OracleDataSource and clears the pool associated with it.

DisposeAsync

ValueTask DisposeAsync() asynchronously disposes the OracleDataSource and clears the pool associated with it.

OpenConnection

Returns a new, open database connection represented by the OracleDataSource

OpenConnectionAsync

Asynchronously returns a new, open database connection represented by the OracleDataSource

OracleDataSource Properties

OracleDataSource properties are listed in Table 6-89.

Table 6-89 OracleDataSource Properties

Property Description

ConnectionString

The connection string associated with the OracleDataSource

Password

Updates the OracleDataSource password

ProxyPassword

Updates the OracleDataSource proxy password

OracleDataSource Public Events

OracleDataSource public events are listed in Table 6-90.

Table 6-90 OracleDataSource Public Events

Public Events Description

ConnectionOpen

OracleConnectionOpenEventHandler ConnectionOpen is triggered upon the OracleDataSource.OpenConnection() method or a connection opening to undertake Application Continuity failover and replay.

See also OracleConnection ConnectionOpen event.

InfoMessage

OracleInfoMessageEventHandler InfoMessage is triggered for any message or warning sent by the database.

See also OracleConnection InfoMessage event.

HAEvent

OracleHAEventHandler HAEvent is triggered when an HA event occurs.

See also OracleConnection HAEvent event.

Failover

OracleFailoverEventHandler Failover is triggered when an Oracle database failover occurs.

See also OracleConnection Failover event.

StateChange

StateChangeEventHandler StateChange is triggered when the connection state changes.

See also OracleConnection StateChange event.