Sets a user account status to unlocked. Must be run by an authenticated workspace administrator in a page request context.
APEX_UTIL.UNLOCK_ACCOUNT ( p_user_name IN VARCHAR2);
Table 35-124 UNLOCK_ACCOUNT Parameters
The user name of the user account.
The following example shows how to use the
UNLOCK_ACCOUNT procedure. Use this procedure to unlock an Application Express account in the current workspace. This action unlocks the account for use by administrators, developers, and end users.This procedure must be run by a user who has administration privileges in the current workspace
BEGIN FOR c1 IN (SELECT user_name from apex_users) LOOP APEX_UTIL.UNLOCK_ACCOUNT(p_user_name => c1.user_name); htp.p('End User Account:'||c1.user_name||' is now unlocked.'); END LOOP; END;