ORA-06565 : cannot execute SET ROLE from within stored procedures
ShaiMay 13 2013 — edited May 13 2013Hello!
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