Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to auto-enable a password protected role

771994May 13 2010
Hi,
I'm currently testing the migration of our application from Oracle
10.2.0.4 to 11.2.0.1.
All tables of the application belong to one schema. Access to these
tables is granted to a password protected role which is enabled at
application start using the command

set role <role> identified by <pwd>

Now there are some users used for batch processes and a few developers
that have this role set as default.
In Oracle 10 the default role is enabled despite of its password. In
Oracle 11 it is not.

I tried setting the role for these users in a logon trigger but get
ORA-06565 saying set role cannot be invoked from within a stored
procedure. Secure application roles are not an option for me since I'm
on Standard Edition One.

Now the question is, is there a way to get a password protected role
enabled automatically for some users?


Regards
Sandeep
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 10 2010
Added on May 13 2010
0 comments
1,189 views