3

I run @apxchpwd.sql and unluck the account with this script

alter session set current_schema = APEX_050100;
declare
  l_workspace_id number := apex_util.find_security_group_id (p_workspace => 'INTERNAL');
begin
wwv_flow_security.g_security_group_id := 10;

   apex_util.set_security_group_id (p_security_group_id => l_workspace_id);
wwv_flow_fnd_user_api.UNLOCK_ACCOUNT('ADMIN');
commit;
end;

But it doest work. Thanks for any help

enter image description here

 

3 Answers

4

The apxchpwd.sql script is used to change the password, but it also unlocks the ADMIN account (, so - you shouldn't even need any additional code. Just make sure to run the one that belongs to Apex version you use.

SQLPLUS /NOLOG
SQL> CONNECT SYS AS SYSDBA
SQL> @APXCHPWD

Alternatively, also connected as SYS, use the following code:

BEGIN
   apex_util.set_security_group_id(p_security_group_id => 10);
   apex_util.unlock_account(p_user_name => 'ADMIN');
END;
/
COMMIT;