SetEndUserSecurityContext

This method applies the Deep Data Security end-user security context to a database session.

Declaration

// C#
public void SetEndUserSecurityContext(OracleEndUserSecurityContext endUserSecurityCtx)

Parameters

  • endUserSecurityCtx

The end-user security context to associate with the connection.

Exceptions

Connection is not open.

Database does not support setting the end-user security context.

Connection is not using TLS/WSS transport.

Remarks

Once invoked, the specified security context remains active for all subsequent database operations executed through that connection until it is cleared or set to another context.

This method can change the context on the same connection multiple times, allowing the application to set different end-user contexts if needed. It can be called on open connections.

Oracle recommends the security context be cleared before returning a connection to the pool.