Skip to Main Content

APEX

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-20001: Unauthorized access (security group package variable not set).

alarzabalMar 9 2012 — edited Mar 11 2012
I'm creating an app that uses APEX authentication and features self-registration (working) and forgot password (not working) forms.

My forgot password is public (requires no authentication). The user provides username and secret answer, which are validated, then provides the new password. I attempt to use htmldb_util.reset_pw to reset the user's password, but it's not working.

I have a process on the new password page calling a PL/SQL anonymous block that looks like this (see below), where P16_ITEM1 = username and P18_ITEM1 = new password.

BEGIN
apex_040000.htmldb_util.reset_pw( V('P16_ITEM1'), V('P18_ITEM1') );
END;

I also don't know how to send accurate success/failure messages from such PL/SQL block back to APEX, but that's a separate issue I guess.

Anyway, when testing via SQL Developer as the user with APEX_ADMINISTRATOR_ROLE, I get the following error:

ORA-20001: Unauthorized access (security group package variable not set).
ORA-06512: at "APEX_040000.WWV_FLOW_FND_USER_API", line 22
ORA-06512: at "APEX_040000.WWV_FLOW_FND_USER_API", line 1220
ORA-06512: at "APEX_040000.HTMLDB_UTIL", line 1253
ORA-06512: at line 8

I've searched previous threads and tried different suggestions with no luck.

I'm on Oracle DB XE 11g and APEX 4.x.

Any help will be appreciated. Thanks,

Alex.
This post has been answered by MortenBraten on Mar 11 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 8 2012
Added on Mar 9 2012
2 comments
2,065 views