The password for user of APEX ADMIN Reset question

Hi all

I'm trying to reset the password for the ADMIN user by using the following script (taken from apxchpwd.sql) from SQL Developer. I've connected to the database as a user with DBA privileges.
alter session set current_schema = APEX_040000;
begin

    wwv_flow_security.g_security_group_id := 10;
    wwv_flow_security.g_user := 'ADMIN';
    wwv_flow_security.g_import_in_progress := true;

    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

        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  => 'newPassword',
            p_new_password  => 'newPassword');
    end loop;

    wwv_flow_security.g_import_in_progress := false;

end;
/
Commit;
But I am getting following error.
session SET altered.

Error starting at line 2 in command:
begin

    wwv_flow_security.g_security_group_id := 10;
    wwv_flow_security.g_user := 'ADMIN';
    wwv_flow_security.g_import_in_progress := true;

    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

        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  => 'newPassword',
            p_new_password  => 'newPassword');
    end loop;

    wwv_flow_security.g_import_in_progress := false;
end;
Error report:
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 1625
ORA-06512: at line 12

commited.
The Version of database: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
APEX Version: 4.0.2.00.07

Can someone let me know what is the problem?

Kind regards
Hari

If I send the APEX_040000 script to our s/n, he ran the old writing that is on the server, thinking that the two should be the same, since the file name is the same.

Thank you!

Tags: Database

Similar Questions

  • Need help to retrieve the password for user account Windows 8.

    I need help!

    I have configured my windows 8 "admin" or "user account" password for over a year now and I don't remember what it is. I tried to download a new antivirus on the computer software but it takes the administrators password to make changes to this laptop.

    How can I know what is this password and how do I solve the problem in order to be able to install new software?

    Thanks in advance

    Josh

    Hello

    "What to do if you forget your password Windows 8/8.1"

    http://Windows.Microsoft.com/en-us/Windows/what-do-forget-Windows-password#1TC=Windows-8

    If you have forgotten your Windows password, there are several ways to recover or reset:

    • If your PC is on a domain, your system administrator must reset your password.

    • If you use a Microsoft account, you can reset your password online. For more information, see the Web to reset your password page.

    • If you use a local account, use your index of password as a reminder.

    If you've tried these suggestions and still unable to connect:

    • If you have Windows 8.1, you will need to reinstall Windows.

    • If you have Windows RT 8.1, you will need to contact the manufacturer of your PC.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Microsoft prohibits any help given in these Forums for you help bypass or "crack" passwords lost or forgotten.

    Here's information from Microsoft, explaining that the policy:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/keeping-passwords-secure-Microsoft-policy-on/39f56ef0-5d68-41AD-9daa-6e6019c25d37

    See you soon.

  • Cannot set the password for user connection in Vista Home Basic

    My laptop (running Vista SP2) has no password on the user account. Guest account is disabled and my user account is administrator.

    I would like to add a password to secure my PC a little more by doing the following:
    AutoScan (Vista Orb) > Control Panel > user accounts > create a password for your account
    I enter a password to 10 characters. I tried more or less characters, a mixture of uppercase and lowercase letters and numbers etc, but everything I try I get the following message:

    "The password you entered does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements"

    Any ideas what to do here? I tried searching online and through this forum but have been unable to find someone who had the same problem, and even less it is solved!

    I ran Microsoft Security Essentials software, choose scan "Full". The software found no viruses or malware on my computer, but he did put in quarantine RealVNC (software remote access we use occasionally to work).

    I have created a screenshots of system information (to show which operating system I use), the dialogue 'create password for your account' (to show that I am logged on as administrator and to make sure that I do not have the process wrong--always possible!) and the error message "user account control panel.

    Computer info here

    I also took a screenshot of the thing that MSE found after analysis is complete on my system.

    Microsoft Security Essentials here Info

    Thank you

    Eamon

    I solved this problem!

    The problem was caused by HP - something that was installed on my laptop security manager because I bought - I never used and had no idea he was running. I discovered this when I decided to upgrade my operating system to Windows 7. I was running a tool to check if the software I had installed is compatible for the upgrade; It turns out that the HP Security Manager is not compatible with W7, and when I uninstalled it I followed a hunch that it might interfere with my account - tried by adding a password and he succeeded!

    I was also able to install Sophos and it works properly now.

    I've always upgraded to Windows 7 in the end, but it was nice to be able to solve this problem (even if it took me Age to understand!) Hope this helps someone else with a similar problem.

    Eamonlaser

  • I FORGOT THE PASSWORD FOR USER NAME.

    IM USING WINDOWS VISTA HOME BASIC AND I FORGOT THE USER NAME. I DO NOT KNOW WHAT TO OPEN THE COMPUTER. THANKS TO ALL WHO CAN HELP ME

    Hello
    Microsoft technical support engineers cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features. For more information about this policy, please refer to the below sticky

    http://social.answers.Microsoft.com/forums/en-us/vistasecurity/thread/3eba3150-8742-4264-be9f-0daaad2282cd Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I change the password for user sys

    Hi all

    I changed sys user password using the command alter user. but the system still accept the old password; How can I remove the old password and set a new permanent password.

    also on the database machine I can connect without any password for sys and change password for all users in the database. I have this limit?

    Thanks in advance

    Uday

    Hello

    what you see is not a bug, your sysdba connection is authenticated by the operating system
    because your OS user is in the correct dba group, please see the MOS reference:

    notes 242258.1      Why I can't Login AS SYSDBA with any username and password.

    Greetings,

    Damage ten Monkshood

  • Expiry of the password for user SYS and SYSTEM

    My database 11g 2 on Redhat 5 has sys and system user password expired
    SQL> select username,account_status,EXPIRY_DATE
     from dba_users where username like 'SYS%';
      2
    USERNAME                       ACCOUNT_STATUS                   EXPIRY_DA
    ------------------------------ -------------------------------- ---------
    SYSMAN                         OPEN
    SYSTEM                         OPEN                             15-FEB-11
    SYS                            OPEN                             15-FEB-11
    But I can still connect the databsae with expired password t.

    Should I worry about the expiration of the password of the user these? For a normal user, I can not connect with expired password

    Dear user13148231,

    Here's an illustration;

    SQL> alter user sys account lock;
    
    User altered.
    SQL> select username, account_status, lock_date, expiry_date from dba_users where USERNAME='SYS';
    
    USERNAME                      ACCOUNT_STATUS                   LOCK_DATE EXPIRY_DA
    ------------------------------------------------------
    SYS                                      LOCKED                           20-AUG-10      23-FEB-09
    
    SQL> host sqlplus sys/password@opttest as sysdba
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Fri Aug 20 12:25:43 2010
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> alter user sys identified by password password expire;
    
    User altered.
    
    SQL> select username, account_status, lock_date, expiry_date from dba_users where username='SYS';
    
    USERNAME                      ACCOUNT_STATUS                   LOCK_DATE EXPIRY_DA
    ------------------------------------------------------
    SYS                                EXPIRED & LOCKED                 20-AUG-10   20-AUG-10
    
    SQL> host sqlplus sys/password@opttest as sysdba
    
    SQL*Plus: Release 10.2.0.4.0 - Production on Fri Aug 20 12:27:02 2010
    
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> alter user sys identified by password account unlock;
    
    SQL> select username, account_status, lock_date, expiry_date from dba_users where username='SYS';
    
    USERNAME                       ACCOUNT_STATUS                   LOCK_DATE EXPIRY_DA
    ------------------------------ -------------------------------- --------- ---------
    SYS                            OPEN
    

    Even if the State expired and locked it's OK to connect to the database for the user SYS.

    SQL> alter user ogan identified by password account lock password expire;
    
    User altered.
    
    SQL> select username, account_status, lock_date, expiry_date from dba_users where username='OGAN';
    
    USERNAME                       ACCOUNT_STATUS                   LOCK_DATE EXPIRY_DA
    ------------------------------ -------------------------------- --------- ---------
    OGAN                           EXPIRED & LOCKED                 20-AUG-10 20-AUG-10
    
    SQL> conn ogan/password
    ERROR:
    ORA-28000: the account is locked
    
    Warning: You are no longer connected to ORACLE.
    SQL> conn / as sysdba
    Connected.
    SQL> alter user ogan account unlock;
    
    User altered.
    
    SQL> conn ogan/password@opttest
    ERROR:
    ORA-28001: the password has expired
    
    Changing password for ogan
    New password:
    Retype new password:
    Password changed
    Connected.
    SQL>
    

    Ogan

  • Change the password for user Linux Hyperion

    Hi all

    To change the password of the user of Linux with which components Hyperion (Essbase and Studio) have been installed.
    Services run under this username.
    Password changing in any case affect work on the Hyperion services?

    Thank you.

    If you do not use username/password details in one of the EMP configuration then it is not a problem, you should be fine with essbase studio.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • When I connect I have 2 home groups to choose. I forgot the password for one othem, how to reset it if I don't know? also_

    also, I went to see or print windows password and the password it shows does not work.

    everything I work with is in the homegroup that I can't enter. What should do? Help, please!

    Thank you!

    Hello
    I suggest to try the steps from the following links and check if it helps.
     
     

    Hope this information is useful.

     
     
  • reset password for users of domians cannot live

    cannot reset the password for users of domians direct for domain megabitecafe.com

    Hi manisht,

    I would suggest to repost your question in our forums TechNet here:

    http://social.technet.Microsoft.com/forums/en/ieitprocurrentver/threads

    Thank you.

  • In our Production, we can share the password of user of database 'Apps' with our consultants functional, although they would like to examine through fields by (help > Diagnostics > review) and here he asked the password of the user "APPS".

    In our Production, we can share the password of user of database 'Apps' with our consultants functional, although they would like to examine through fields by (help > Diagnostics > review) and here he asked the password of the user "APPS". We need to know the path where they can examine the field without knowing the password for user "apps".

    Check

    How to enforce password Protection to access the Menu help > Diagnostics > review? (Doc ID 1487534.1)

  • Password reset disk error - "year error occurred while the wizard attempted to set the password for this user account.

    Hello!

    -A bit of background: the desktop PC that I use is Windows Vista Ultimate Edition, with active user accounts total five. I have my own account, and I can access the computer through (or through account from my brother, because I know its password).--

    I had this problem recently came where the administrator password (that I know for a long time and never changed) no longer works. So, after some research, I created a reset password on a USB disk, that I found in my house. I managed to create the disc, but when I tried to put the new password, I got the message error "an error occurred while the wizard attempted to set the password for this user account', which I must say is not very clear. I found a few methods of force - reset the password for the account of the admin, as using a sort of Windows Vista DVD or go to Safe Mode to find the hidden administrator account... but I have no idea what this DVD is or where to find, and in Safe Mode, there is no account user administrator to be seen. I believe that my machine is corrupted, but I don't want to buy a new. I want just to reset a password...

    Any help is appreciated. If I was not specific enough, I can specify in comments.

    Thank you!

    Hello

    You must make a password reset disk before that there are problems with a password, not afterwards.

    ________________________________________________________________

    Read this for your problem:

    http://support.Microsoft.com/kb/940765

    If you are unable to connect to Windows 7 or Windows Vista, you can use the Windows Vista System Restore feature, or the Windows 7 system restore feature.

    You may be unable to connect to Windows Vista or Windows 7 in the following scenarios:

    • Scenario 1: You recently set a new password for the protected administrator account. However, you don't remember the password.
    • Scenario 2: You type the correct password. However, Windows Vista or Windows 7 does not accept the password because the system is damaged.
    • Scenario 3: You delete a protected administrator account. Now, you cannot connect to another administrator account.
    • Scenario 4: You change an administrator account protected with a standard user account. Now, you cannot connect to another administrator account.

    You can also borrow and use a Microsoft Vista DVD, which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed. The product key on your computer / Laptop box determines what Edition is installed.

    Other manufacturers recovery DVDs are should not be used for this purpose.

    _____________________________________________________________

    Microsoft prohibits any help given in these Forums for you help bypass or "crack" passwords lost or forgotten.

    Here's information from Microsoft, explaining that the policy:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/keeping-passwords-secure-Microsoft-policy-on/39f56ef0-5d68-41AD-9daa-6e6019c25d37

    See you soon.

  • I tried to reset my password computer laptop but the laptop telling me an error occurred while the wizard attempted to set the password for this user account how can I fix this pleas

    I tried to reset my password computer laptop but the laptop telling me an error occurred while the wizard attempted to set the password for this user account, how can I fix this means if someone knows how to fix teas pleas answer me quickly I have to work

    Logging in as an admin account, then reset the password for the account of the problem.

  • I forgot my password for my admin user account, but I have a secondary account how to get the password for the admin

    original title: admin password.

    I forgot my password for my admin user account, but I have a secondary account how to get the password for the admin

    Hello
    Microsoft technical support engineers cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features. For more information about this policy, please refer to the sticky below.

    http://social.answers.Microsoft.com/forums/en-us/vistasecurity/thread/3eba3150-8742-4264-be9f-0daaad2282cd Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to reset the password for EWS. 6600 e - all - in - one HP

    I did a network factory settings restore three times, but it's the Server Web integrated that I lost the connection to the administrator for. How can I reset my admin name and password?

    Hi JH71,

    Welcome to the HP Forums.

    I see that you have a problem with reset the user name and password on the built-in Web server.

    I see that you said that you tried to restore the network settings factory without success.

    Please make sure you have the printer power cable connected directly to a wall outlet and not a bar/power strip. Here is a document that uses a LaserJet printer for example, but it is intended for HP products in general. Please click the link which explains the problems when connected to an uninterruptible power supply/Strip/surge protector power.

    Please try to reset the default network settings again in the printer and if you are still experiencing a problem, please email me back and I look forward to other search options.

    Thanks for your time.

    See you soon,.

  • Procedure to change the CLI password for user directors

    Hello

    I have Cisco context directory Agent 1.0.0.011 installed by another Member of the team and I want to reset password admin CLI. Tracking how do to reset passwrod (DCO of admin password reset application) but I always connect with the old password.

    Can anyone provide some documents what would be the correct procedure to change/reset password for the user admin CLI? It's password during the original installation is complete.

    Thank you

    The command you typed: application ACD reset admin password changes the password for the application of cda admin only.  This is the admin of WebGUI.

    To change the password for the CLI, try the following command:

    Enter the Configuration mode.

    Run the username password plain | hash role admin | user command

    For example: username, password admin hash Cisco123 admin role

    The words in bold are provided by you.

    Please rate useful messages and mark this question as answered if, in fact, does that answer your question.  Otherwise, feel free to post additional questions.

    Charles Moreton

Maybe you are looking for