OracleDataSource Members

OracleDataSource members are listed in the following tables.

OracleDataSource Public Methods

OracleDataSource methods are listed in Table 6-89.

Table 89 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-90.

Table 90 OracleDataSource Properties

Property Description
ConnectionString The connection string associated with the OracleDataSource
DatabaseCharset Returns the database character set
DatabaseMaxIdentifierLength Returns the database maximum identifier length
DatabaseNCharset Returns the database national character set
DatabaseOpenTelemetryTracing Enables database OpenTelemetry span instrumentation for ODP.NET public APIs that perform a database round-trip
OpenTelemetryTracing Specifies whether to dynamically enable or disable ODP.NET OpenTelemetry tracing instrumentation at the OracleDataSource level
Password Updates the OracleDataSource password
ProxyPassword Updates the OracleDataSource proxy password
RetryCount Specifies the number of times a TNS ADDRESS list is traversed before the connection attempt times out
RetryDelay Specifies the delay in seconds between subsequent retries for a connection

OracleDataSource Public Events

OracleDataSource public events are listed in Table 6-91.

Table 91 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.