ORACLE Password Change using APEX FORM

Greetings!
I would like to find out, if there is a utility or a sample page that permits the Database password changes for the DB users within the Database. My goal is for users to maintain password using the Browser, instead of using SQL*Plus or similar Windows tools
Thanks in advance for your help!
Muni

So if you and I can both authenticate to this application, we will necessarily have separate accounts, say in the Application Express account repository of that application's workspace. Our accounts will each have a password that is not synchronized with our database account password. The application will allow me (SCOTT) to change only the database account named SCOTT and will allow you (VIKAS) to change only the database account named VIKAS. That rule would make it unnecessary for the provided form to provide an input field for the database account name (it would be pre-populated). Unfortunately, the chosen authentication method requires each of us to remember our application password, and, if the application is built correctly, to remember our old database password as well. (Implementing that verification has its own issues.) If the application used LDAP then a mapping table would be needed to relate [email protected] to VIKAS. Every time a new database user needed the self-service password facility, a new user account (and a new password), and a new mapping table entry would have to be created. All of that complexity is eliminated if the application uses Database Account credentials authentication -- a new database user is created, the user can authenticate to the application and use it; the database user is removed, the user can no longer authenticate.
Let's not confuse the aim of providing a self-service "change my database password" application (the original requirement) with the simpler task of providing a super-user-oriented database account management page (like we did in XE).
Scott

Similar Messages

  • How do I create a "Reset Password Link" using apex for OracleExpress 10g?

    I'd like to add a "Reset Password" link to my application, but am not sure how to implement this.
    I see there is htmldb_util.reset_pw procedure, but this can only be called if the current user has admin privs. Clearly, an end user will not be able to logon as the administrator in order to reset their password!
    I tried preceding the call to htmldb_util.reset_pw with a call to htmldm_custom_auth.set_user, and whilst the page showed the name of the admin user when it displayed, the call to htmldb_util.reset_pw still raised the exception that the current user must have admin privs.
    Can anyone help please? Thanks Pete
    Message was edited by:
    pcarlisl
    Message was edited by:
    pcarlisl

    You can either "play" with permissions for each user or you collect the reset password requests into a table and use DBMS_SCHEDULER to run the reset procedure every few minutes - this of course makes only sense, if said reset procedure can be used on different users from one account.
    C.
    Message was edited by:
    cd

  • Is there a way to login to Iplanet 5.2 by using a URL that contains the login and password (without using the form) ?

    I would like to be able to login to Iplanet using a URL like this:
    http://server:port/<exec>?user=john&password=doe
    or like http://user:password@server:port/<some_params>
    I knew how to do it with SIMS 4, but with Iplanet 5.2 I just don't have a clue. Do you know how to do that?

    http://server:port/login.msc?user=john&password=doe
    This works for me.
    Regards,
    Niels

  • Changing passwords using APEX and Database Credentials

    We are developing an application that uses database credentials. We can login very easily. Is there a simple way to create a page so that the users can change their own passwords? I understand that the users will in effect be issuing an ALTER USER statement from within APEX. However, we get an "Insufficient Privileges" error message when issuing the command from APEX. So, whose credentials is APEX using?

    J,
    So, whose credentials is APEX using?
    There are no credentials involved here. All code in your PL/SQL application is parsed as the schema that owns the application. When you implement your PL/SQL application using Application Express, that schema is the "Owner" attribute, or parsing schema.
    See Re: ORACLE Password Change using APEX FORM
    Scott

  • *** How to get the username in a custom password change routine....

    How to get the username in a custom password change routine / procedure / form when a user's password has expired and is redirected automatically to this custom program?
    We use the 2nd parameter in LOGIN_URL column in WWSSO_LS_CONFIGURATION_INFO$ table to get to this custom change-password proc.

    OK !
    Use that maybe good :
    select USERID into v_user from sys.aud$
      where ntimestamp#=(
      select max(ntimestamp#)
      from sys.aud$ );

  • Blob upload using either forms 9i or plsql

    I would like to upload over 100 thousand different images (.doc, .pdf, .txt, .gif, .xls, etc.) into an Oracle 9i database using either Forms 9i Release 2 or plsql. I would like to do this in one batch program... Would anyone please give me some ideas?
    I tried using the bin2hex program and the initialize_container in Forms 6i but there is no such command in Forms 9i...
    Thanks in advance,
    Terry Sicard

    Take a look at the following :
    Re: Storing a PDF in a BLOB
    Re: Retrive Image from DB into Image_item
    although the threads above are reffered to images and word doc... the procedure/steps are the same....
    Greetings...
    Sim

  • Using alter user to change oracle password for logged in web user on XE

    Hi All
    I'm building an app using the pl/sql web toolkit on XE (installed on Win XP Pro SP2). (I'm not using the APEX front-end).
    I'm using basic authentication and oracle database user accounts, and when a user registers for the first time I create them an oracle user account with dynamic sql, followed by some initial setup stuff, and they then log in with it.
    All fine so far.
    However I want to allow the user to change their oracle password as part of maintaining their user details. I've done this in the past using the web toolkit and Oracle 9i and it has worked fine using dynamic sql.
    Unfortunately I can't get the same thing to work in XE.
    For example, if I create the following procedure in the schema aligned to the DAD which holds my application and then run it from a browser (IE or Firefox) then the
    Browser and the db just hangs - not even an error message:
    CREATE OR REPLACE PROCEDURE ut
    AS
    v_stmt varchar2(300);
    BEGIN
    HTP.htmlOpen;
    HTP.headOpen;
    HTP.title ('User Test');
    HTP.headClose;
    HTP.bodyOpen;
    v_stmt := 'alter user "'||user||'" identified by "BERT"';
    htp.print(v_stmt);
    EXECUTE IMMEDIATE v_stmt;
    htp.print('Done');
    HTP.bodyClose;
    HTP.htmlClose;
    END;
    If I run the same statement in SQL*plus it's fine, and if I run the same proc for a different user then it's fine too.
    I'm sure it's something to do with trying to change the credentials of the currently logged in user, but I would at least have expected an error message.
    I'd be grateful for any ideas.
    Thanks
    Steve

    Hi g.myers
    Thanks for your response.
    Sorry, yes, bad turn of phrase there. It's not the entire db that hangs. The web browser (either IE or FF) hangs, and if I look at v$session at this point, I can see that the user STATUS=ACTIVE and the STATE=WAITING.
    I should also point out that I am using standard Oracle users as users of the application, (e.g. create a new user account called TESTER1). These users are then granted the appropriate privileges on the owning schema in order to run the app, access the tables etc.
    Therefore it is the user account (e.g. TESTER1) that is running the password change procedure that is owned by the SYS schema. (However again, this is the exact code and method that I've used in the past and it has worked fine).
    If I leave the browser hanging long enough, it will eventually return with the following error:
    Proxy Error
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request POST /h/hopapp.pwdmaint_do.
    Reason: Error reading from remote server
    cheers
    Steve

  • Apex-config.xml is broken after password change with encryption

    Greetings,
    I am using Apex Listener 1.1 with Oracle GlassFish Open Source Edition 3.1.
    I found something strange when changing the connection password in apex-config.xml.
    If I change the password to keep it plain text like the following, it works fine.
    <entry key="apex.db.password">my_password</entry>
    But if I change the password to a value to be encrypted, the new password is accepted but the configuration file get messed up.
    <entry key="apex.db.password">!my_password2</entry>
    After restarting the listener, I get the following content in my apex-config.xml.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
    <properties>
    <comment> Updated: Mon Mar 14 10:58:16 EDT 2011 Version: 1.1.0.60.10.38 </comment>
    </properties>
    Needless to say that after the next restart nothing works. Am I missing something, or is this a bug?

    You have corrupted your web.xml somehow, repeat the steps making sure the web.xml is well formed.

  • Form for password changing. code problem

    hi dears,
    i am using forms6i. i was making a form for password changing purpose. i've written this code this is successfully compiled but it is not changing the password. wil u plz tell me where is the problem.
    declare
         v_user varchar2(50);
         v_oldpassword varchar2(50);
         v_var2 varchar2(50);
         v_leng number(3);
    begin
         v_oldpassword := get_application_property(password);
         v_user:=user;
         v_var2:=upper(:password_old);
         if v_var2<>v_oldpassword then
         message ('Old Password Is Not Correct...');
         message ('Old Password Is Not Correct...');
         raise form_trigger_failure;
         end if;
         if :password1<>:password2 then
              message ('Typed Passwords Are Not The Same...');
              message ('Typed Passwords Are Not The Same...');
              raise form_trigger_failure;
         end if;
         v_leng:=length(:password2);
         if :password1=:password2 and v_leng<=3 then
         message ('Password Must Have Four Characters...');
         message ('Password Must Have Four Characters...');
              raise form_trigger_failure;
         end if;
         if v_var2=v_oldpassword and :password1=:password2 then
         FORMS_DDL('alter user ' || v_user || ' identified by ' ||:password.password2);
         message ('Password Is Changed... Please Restart The Oracle Applications...');
         end if;
    end;
    COMMIT;
    LOGOUT;
    thanks

    Hi dear,
    Please use this code to change your password:
    declare
    v_user varchar2(50);
    v_oldpassword varchar2(50);
    v_var2 varchar2(50);
    v_leng number(3);
    begin
    v_oldpassword := get_application_property(password);
    v_user:=user;
    v_var2:=upper(:password_old);
    v_leng:=length(:password2);
    if v_var2 != v_oldpassword then
    message ('Old Password Is Not Correct...');
    message ('Old Password Is Not Correct...');
    raise form_trigger_failure;
    elsif
    :password1 != :password2 then
    message ('Typed Passwords Are Not The Same...');
    message ('Typed Passwords Are Not The Same...');
    raise form_trigger_failure;
    elsif
    :password1=:password2 and nvl(v_leng,0) <=3 then
    message ('Password Must Have Four Characters...');
    message ('Password Must Have Four Characters...');
    raise form_trigger_failure;
    elsif
    v_var2 = v_oldpassword and :password1 = :password2 then
    FORMS_DDL('alter user ' || v_user || ' identified by ' ||:password.password2);
    message ('Password Is Changed... Please Restart The Oracle Applications...');
    end if;
    end;

  • Calling APEX form with dynamic parameters from Oracle Apps 11.5.8

    I have successfully managed to setup access to APEX forms from Oracle Apps 11.5.8 menus utilising Form Functions passing a number of hardcoded parameter values as outlined in the document, http://www.oracle.com/technology/products/database/application_express/pdf/Extend_Oracle_Applications_11i.pdf.
    I am now trying to ZOOM from an Oracle Form passing values of form items (dynamic parameters) to an APEX form. I have so far not been able to do this.
    I've also tried using;
    web.show_document('http://derep.obup.co.uk:4657/pls/apex/f?p=100:1::::::p1_cust_account_id:'||name_in('ast_cu_act.account_id')||':', '_TOP');
    but this prompts for a username/password again as this bypasses the APEX Launch process that is defined in my Form Function.
    Is this possible in the parameters section of Form Functions? or elsewhere.
    Regards,
    Naeem

    Hi Daan
    We do havea couple of customers doing this, they have taken two approaches:
    1. Install XMLP on a separate server entirely - kick off conc request to extract data and then use Java Messaging Service (JMS) to push the resulting XML to the external server where they are using AQ to set up jobs for the XMLP server to work through, generating and delivering the final documents.
    2. Set XMLP up as a virtual printer - here the conc request again generates XML but this time the result is directed to a virtual printer namely XMLP. There is a perl or similar wrapper that gets called as the printer and accepts the data, template, output format and delivery destination as parameters.
    Apologies for the 10,000 feet overview, hope it helps. Tim

  • How to make changes to .fmx file using the form builder

    Hi all
    I have a .fmx form in the AR_TOP directory of the Oracle E-business suite.Now I need to make some changes to the form and compile it and place it back .But the .fmx file didnot open using the form builder 6i .So is there any way that i can convert the .fmx to .fmb so that I can open the form using the Form builder 6i??
    I have the toad s/w installed but I dont know how to open the form using the Toad.
    Thanks

    I have a .fmx formYou cannot open a fmx-file with any developer tool. To make changes to the source-code you need the fmb-file and open it witj Forms-builder
    AR_TOP -directory of the Oracle E-business suiteBe careful when changing source-code in the ebusiness-suite. If its a module from oracle i don't if its supported if you do changes in it.
    I have the toad s/w installed but I dont know how to open the form using the Toad.Toad is definitely the wrong tool for forms-modules.

  • Change the SYS & SYSTEM Oracle passwords with BRTOOLS, any concerns ?

    Hello, I would like to change both the SYS and SYSTEM Oracle passwords with BRTOOLS :
    (1) Can I use BRTOOLS to change them, or, I have to change them through SQLPlus ?
    (2) Any concerns, will this password change affect my SAP normal operations ?
    (3) Do I need to re-start the whole SAP UNIX system when I complete the password changing ?
    (4) Or changing these 2 passwords is totally an Oracle RDBMS issue, it will not have any effect on SAP ?

    But I failed. I was going to change the password of SYSTEM, but why SAP asked me to enter the password of SAPDEV ?
    Why ? OK, then I entered the SAPDEV password (it is the same as SYSTEM's old password).
    Then, I called SQLPlus and entered login name : SYSTEM, but why its correct password was still the old one, the new one failed. Why ?
    I just wanted to change the password of SYSTEM, why it was related to SAPDEV ?
    Here is the screen message :
    BR*Tools main menu
    1 = Instance management
    2 - Space management
    3 - Segment management
    4 - Backup and database copy
    5 - Restore and recovery
    6 - Check and verification
    7 - Database statistics
    8 - Additional functions
    9 - Exit program
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    8
    BR0280I BRTOOLS time stamp: 2010-01-15 10.22.46
    BR0663I Your choice: '8'
    BR0280I BRTOOLS time stamp: 2010-01-15 10.22.46
    BR0656I Choice menu 2 - please make a selection
    Additional BR*Tools functions
    1 = Show profiles and logs
    2 - Clean up DBA logs and tables
    3 - Adapt NEXT extents
    4 - Change password of database user
    5 - Create/change synonyms for DBA tables
    6 - Reset program status
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    4
    BR0280I BRTOOLS time stamp: 2010-01-15 10.23.14
    BR0663I Your choice: '4'
    BR0280I BRTOOLS time stamp: 2010-01-15 10.23.14
    BR0657I Input menu 59 - please check/enter input values
    BRCONNECT options for changing password of database user
    1 - BRCONNECT profile (profile) ............... [initDEV.sap]
    2 - Database user/password (user) ............. [/]
    3 ~ Database owner to change password (owner) . []
    4 - Message language (language) ............... [E]
    5 - BRCONNECT command line (command) .......... [-p initDEV.sap -l E -f chpass]
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    2
    BR0280I BRTOOLS time stamp: 2010-01-15 10.28.56
    BR0663I Your choice: '2'
    BR0280I BRTOOLS time stamp: 2010-01-15 10.28.56
    BR0681I Enter string value for "user" [/]:
    SYSTEM
    BR0280I BRTOOLS time stamp: 2010-01-15 10.29.08
    BR0683I New value for "user": 'SYSTEM'
    BR0263I Enter password for database user 'SYSTEM' (maximum 8 characters):
    BR0280I BRTOOLS time stamp: 2010-01-15 10.29.32
    BR0657I Input menu 59 - please check/enter input values
    BRCONNECT options for changing password of database user
    1 - BRCONNECT profile (profile) ............... [initDEV.sap]
    2 - Database user/password (user) ............. [SYSTEM/*******]
    3 ~ Database owner to change password (owner) . []
    4 - Message language (language) ............... [E]
    5 - BRCONNECT command line (command) .......... [-p initDEV.sap -l E -f chpass]
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:
    c
    BR0280I BRTOOLS time stamp: 2010-01-15 10.29.41
    BR0663I Your choice: 'c'
    BR0259I Program execution will be continued...
    BR0291I BRCONNECT will be started with options '-p initDEV.sap -l E -f chpass'
    BR0280I BRTOOLS time stamp: 2010-01-15 10.29.41
    BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
    c
    BR0280I BRTOOLS time stamp: 2010-01-15 10.29.49
    BR0257I Your reply: 'c'
    BR0259I Program execution will be continued...
    BR0801I BRCONNECT 6.40 (39)
    BR0280I BRCONNECT time stamp: 2010-01-15 10.29.52
    BR0263I Enter password for database user 'SAPDEV' (maximum 8 characters):
    BR0280I BRCONNECT time stamp: 2010-01-15 10.34.58
    BR0263I Reenter password for database user 'SAPDEV' (maximum 8 characters):
    BR0280I BRCONNECT time stamp: 2010-01-15 10.35.57
    BR0482W The passwords entered must be identical
    BR0280I BRCONNECT time stamp: 2010-01-15 10.35.57
    BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRCONNECT:
    c
    BR0280I BRCONNECT time stamp: 2010-01-15 10.36.31
    BR0257I Your reply: 'c'
    BR0259I Program execution will be continued...
    BR0280I BRCONNECT time stamp: 2010-01-15 10.36.31
    BR0263I Enter password for database user 'SAPDEV' (maximum 8 characters):
    BR0280I BRCONNECT time stamp: 2010-01-15 10.37.03
    BR0263I Reenter password for database user 'SAPDEV' (maximum 8 characters):
    BR0280I BRCONNECT time stamp: 2010-01-15 10.38.08
    BR0482W The passwords entered must be identical
    BR0280I BRCONNECT time stamp: 2010-01-15 10.38.08
    BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRCONNECT:
    BR0280I BRCONNECT time stamp: 2010-01-15 10.38.11
    BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRCONNECT:
    c
    BR0280I BRCONNECT time stamp: 2010-01-15 10.38.14
    BR0257I Your reply: 'c'
    BR0259I Program execution will be continued...
    BR0280I BRCONNECT time stamp: 2010-01-15 10.38.14
    BR0263I Enter password for database user 'SAPDEV' (maximum 8 characters):
    BR0280I BRCONNECT time stamp: 2010-01-15 10.38.16
    BR0263I Reenter password for database user 'SAPDEV' (maximum 8 characters):
    BR0280I BRCONNECT time stamp: 2010-01-15 10.38.18
    BR0829I Password changed successfully in database for user SAPDEV
    BR0830I Password changed successfully in table OPS$DEVADM.SAPUSER for user SAPDEV
    BR0280I BRCONNECT time stamp: 2010-01-15 10.38.18
    BR0803I BRCONNECT completed successfully with warnings
    BR0292I Execution of BRCONNECT finished with return code 1
    BR0668I Warnings or errors occurred - you can continue to ignore them or go back to repeat the last action
    BR0280I BRTOOLS time stamp: 2010-01-15 10.38.18
    BR0670I Enter 'c[ont]' to continue, 'b[ack]' to go back, 's[top]' to abort:
    c
    BR0280I BRTOOLS time stamp: 2010-01-15 10.38.44
    BR0257I Your reply: 'c'
    BR0259I Program execution will be continued...
    BR0280I BRTOOLS time stamp: 2010-01-15 10.38.44
    BR0656I Choice menu 2 - please make a selection
    Additional BR*Tools functions
    1 = Show profiles and logs
    2 - Clean up DBA logs and tables
    3 - Adapt NEXT extents
    4 + Change password of database user
    5 - Create/change synonyms for DBA tables
    6 - Reset program status
    Standard keys: c - cont, b - back, s - stop, r - refr, h - help
    BR0662I Enter your choice:

  • Integrating apex form with oracle portal

    Afternoon friends,
    I have got a senario like integrating apex form with oracle portal.I dont have any idea on oracle portals.so please let me know the basic steps on how to go ahead to integrate apex forms with oracle portal and for that what i need to have apart with my database and apex.

    Hello
    Couldn't see my previous post... so here it is again
    We have integrated Apex into Oracle Portal
    Here's how we did it.
    In the portal page, we have created an Element region with the following code:
    <script language="Javascript">
       <!--
       function changeIframeHeight(){
          var ifrmObj = document.getElementById('apexIframe');
          if(ifrmObj) {
             if(navigator.appName=='Microsoft Internet Explorer') { //IE
                ifrmObj.height = ifrmObj.contentWindow.document.body.scrollHeight+20;
             else {
                ifrmObj.style.height = ifrmObj.contentWindow.document.body.offsetHeight+50;
       //-->
    </script>
    <p><iframe width="100%" height="500" frameborder="0" onload="javascript: changeIframeHeight();" src="/pls/apex/f?p=115:10" marginheight="0" marginwidth="0" name="apexIframe" id="apexIframe"></iframe></p>You just have to make sure that the name and id of the iFrame and the elementId in the javascript are the same.
    And change the SRC so that it point you application.
    Hope that helped you.
    Max

  • Using Access forms after migrating data to Oracle

    Hi,
    One of the features provided by the original Migration Workbench appears to be the ability to modify a migrated Access database to use an ODBC connection to Oracle so that the original forms could still be used. I have just been through the process of migrating the demo Northwind database into Oracle using the SQL Developer Migration Workbench but this doesn't appear to be an option.
    I am missing something or is this feature not available using the migration tools in SQL Developer?
    And if it is missing what would be the easiest way to achieve this? From my limited exposure to Access converting the Northwind application manually appears to be rather painful.
    Many thanks,
    Vince

    Hi Vince,
    As you have correctly stated, the option to modify an MS Access database for the purpose of using the original forms is not available in Oracle SQL Developer Migration Workbench. As this option is no longer available, the easiest way to achieve the same result is to manually update your MDB file to reference the migrated Oracle tables. Once your MS Access Forms are referencing the link tables, you can continue using the forms as before. I would suggest doing the following:
    NOTE: These steps should only be carried out after you have migrated your tables from Access to Oracle using Oracle SQL Developer Migration Workbench. I would also recommend that you take a back-up of your MDB file before carrying out the following steps...just to be on the safe side!
    1. Create a new System DSM (using the ODBC Data Source Administrator dialog, via the Control Panel > Administrative Tools on your OS), using the connection details to access the newly migrated Oracle database schema. Test the connection, to ensure it's working correctly.
    2. Open your MDB file in database view - double-click the MDB file, holding down the Shift key.
    3. Remove the original Access tables.
    4. Using the Insert > Table menu item in MS Access, start the New Table wizard and create Link Tables to each of the migrated tables in your Oracle schema. NOTE: Rename the Link Table(s) so it matches the original Access table name. This will save you from having to edit each of the Forms, to change the Record Source it's based on. The form will still have a reference to the original table name, so by reusing the same name your form should just continue working as before. The only difference is that the data is being retrieved from the Oracle database now!
    If you have any questions regarding any of the above information, just respond to this thread & I'll get back to you.
    I hope this helps.
    Regards,
    Hilary

  • Saving a PDF or DOC file into Oracle 9i using Developer Forms 10g

    Hi guys,
    I want to save a pdf or doc file into oracle 9i. I am using Developer 10 g. Please help me;
    1. What datatype field should be in database table to store such file.
    2. Which code should I use in Forms 10g to display open file dialog, get the name and save that into database table.
    Thanks in advance

    WEBUTIL is a library used with forms to interact with the client. With Forms10G the library comes shipped with the developer suite, for forms 9i i'm not sure, check the forms-page at otn if there is any download available. For documentation about how to do a file-upload, simply search the forum, there are lots of examples.

Maybe you are looking for