Created
September 7, 2019 23:08
-
-
Save sonnyksimon/8cad7a54acc94bfcad88ae662e61112e to your computer and use it in GitHub Desktop.
Unlock an Oracle APEX admin user (when apxchpwd.sql doesn't work)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Find the userId. | |
select user_id from APEX_040200.WWV_FLOW_FND_USER where user_name = 'ADMIN' order by last_update_date desc; | |
2. Set a new password. | |
update APEX_040200.WWV_FLOW_FND_USER | |
set web_password = 'password' | |
where user_name = 'ADMIN' | |
and user_id = 56502607595642; | |
commit; | |
3. Unlock the Admin account. | |
alter session set current_schema = APEX_040200; | |
begin | |
wwv_flow_security.g_security_group_id := 10; | |
wwv_flow_fnd_user_api.UNLOCK_ACCOUNT('ADMIN'); | |
commit; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment