Skip to Main Content

SQL & PL/SQL

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!

ORA-06565 : cannot execute SET ROLE from within stored procedures

ShaiMay 13 2013 — edited May 13 2013
Hello!

I am trying to call a stored procedure from a function. One of the statements in the stored procedure is to dbms_session.set_role('AI');.

I keep getting the error 'Cannot execute SET ROLE from withing stored proceduers' .I have enclosed the above call in an anonymous block but still the error exists.

Any insight will really help me.

Thanks
This post has been answered by unknown-7404 on May 13 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 10 2013
Added on May 13 2013
3 comments
2,233 views