OracleConnection(string, OracleCredential)

This constructor instantiates a new OracleConnection class instance using the provided connection string and OracleCredential class.

Declaration

// C#
public OracleConnection(string connectionString, OracleCredential orclCredential);

Parameters

Remarks

Use this constructor to create a new OracleConnection object with an OracleCredential object containing user credentials and a connection string that does not contain any of user id, password, DBA Privilege, proxy user id, nor proxy password.

ODP.NET uses a modified connection pooling algorithm with OracleCredential, which is described in more detail in the section Connection Pooling with OracleCredential.

Exceptions

InvalidOperationException is raised when non-null OracleCredential object is used with a connection string containing any of user id, password, DBA Privilege, proxy user id, or proxy password.

See Also: