Java Mailing List Archive

http://www.dba.5341.com/

Home » Home (12/2007) » oracle-l »

Re: using set role command in a logon trigger

Sriram Kumar

2007-04-04

Replies:

Hi,
 
There is this new feature in 10g that allows you to authenticate roles based on packages. You can use that feature for this situation of yours.
 
 
create role <> identified using schema.package;
 
Cheers
 
Sriram Kumar

 
On 4/4/07, laura pena <lizzpenaorclgrp@yahoo.com> wrote:
Hello,
 
I have been asked to set specific roles when a user logs into oracle from a specific application.
 
 
Meaning if the user is using for example Toad  we only want that user for that session to have read-only privs.
 
So I am wondering if it is possible to use the set role command in a trigger?
 
I can use sys_context and v$session to determine what application the user has loged in from but not sure about using the set role command.
 
Can anyone confirm this can be done or offer alternatives?
 
Many Thanks,
Laura


Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.


©2008 dba.5341.com - Jax Systems, LLC, U.S.A.