Windows Oracle Data Access Components (MOSC)

MOSC Banner

Need to spoof sys_context OS_USER in SSRS to provide end-user details to Oracle RLS - Can ODP.NET he

edited Apr 29, 2010 11:56AM in Windows Oracle Data Access Components (MOSC) 2 commentsAnswered
 Hi All,

select sys_context('USERENV',OS_USER) from dual

select sys_context('USERENV','EXTERNAL_NAME') from dual

When called from SqlServer Reporting Services, these queries either give blank or a name like "SQLServiceUser" or

"NetworkServices".  I would like to set one of them in SSRS to be the User!UserID global, which will be a per-enduser string like "gspe2009" or "tcar1411".

That way I can derive additional security attributes in Oracle RLS on a per-enduser basis.

Is there a session variable or a connection string parameter that is accessible to programmers to alter the values sent to Oracle by an connection?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center