OracleBrains.Com header image 2

Changing the password of Application Express internal ADMIN account

February 27th, 2008 by Rajender Singh · No Comments

Recently I forget the Application Express (version 3.0.1) internal ADMIN account of my development site.

So to change the password without knowing the old password, I login as SYS into the Database Server and run the following script.

SQLPLUS> :\oraclexe\apex\apxxepwd.sql new_password

Where “C:\oraclexe\apex” is APEX_HOME directory.

What this script is doing is as follows:

First it changes the current schema to “FLOWS_030000″

alter session set current_schema = FLOWS_030000;

The set the security group id and and user name using wwv_flow_security package as follows:
wwv_flow_security.g_security_group_id := 10;
wwv_flow_security.g_user := ‘ADMIN’;

The change the status as “import in progress” using wwv_flow_security package
wwv_flow_security.g_import_in_progress := true;

Then get the internal user id of the “ADMIN” with a security group of 10.
for c1 in (select user_id
from wwv_flow_fnd_user
where security_group_id = wwv_flow_security.g_security_group_id
and user_name = wwv_flow_security.g_user) loop

Then edit the user using wwv_flow_security package as follows:
wwv_flow_fnd_user_api.edit_fnd_user(
p_user_id => c1.user_id,
p_user_name => wwv_flow_security.g_user,
p_web_password => ‘&1′,
p_new_password => ‘&1′);
end loop;

The change the status back to normal using wwv_flow_security package
wwv_flow_security.g_import_in_progress := false;

If you want to see script, can download from here apxxepwd.txt


Tags: Application Express

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment