The ODP.Net Oracle data provider exposes the ClientId and ClientInfo
write-only properties on the OracleConnection object.

These properties correspond to the following end-to-end tracing
attributes:

ClientId - Specifies an end user based on the logon ID, such as HR.HR
Client info - Specifies user session information

I would like access to these propterties in my C# code.

On a database trigger these values can be accessed by the selecting
them:

select
sys_context('USERENV','CLIENT_INFO') clientinfo,
sys_context('USERENV','CLIENT_IDENTIFIER') clientidentifier
from dual;

Does anybody know how to set these properties on a NHibernate Session
Factory?

Thanks

Reply via email to