Hello,
I am using Oracle 8i on a server, and I want to submit a SET ROLE ... IDENTIFIED BY ... command from a stored procedure.
What happens ?
I start an SQL*Plus session, submit SET ROLE NONE to elimiate all roles. Then I check my session roles:
SELECT * FROM SESSION_ROLES; and I have none (thats ok).
Now I enter the command SET ROLE ... directly within SQL*Plus. When I then check again for my session roles, the new role is active !
Now comes the question:
I want the role to be activated thru a stored procedure. I created the stored procedure with AUTHID CURRENT_USER:
CREATE OR REPLACE PROCEDURE SP_SET_ROLE (...)
AUTHID CURRENT_USER
AS
...
When now executing this stored procedure from SQL*Plus, the trace shows that the SET ROLE command is submitted, but when the procedure ends, the role is NOT active.
Can somebody help me ?
Hayo
Thanks
Hayo
I am using Oracle 8i on a server, and I want to submit a SET ROLE ... IDENTIFIED BY ... command from a stored procedure.
What happens ?
I start an SQL*Plus session, submit SET ROLE NONE to elimiate all roles. Then I check my session roles:
SELECT * FROM SESSION_ROLES; and I have none (thats ok).
Now I enter the command SET ROLE ... directly within SQL*Plus. When I then check again for my session roles, the new role is active !
Now comes the question:
I want the role to be activated thru a stored procedure. I created the stored procedure with AUTHID CURRENT_USER:
CREATE OR REPLACE PROCEDURE SP_SET_ROLE (...)
AUTHID CURRENT_USER
AS
...
When now executing this stored procedure from SQL*Plus, the trace shows that the SET ROLE command is submitted, but when the procedure ends, the role is NOT active.
Can somebody help me ?
Hayo
Thanks
Hayo