Adding a PASSWORD/login feature using PL/SQL

Hello,
I have an application written in PL/SQL that sits on top of an Oracle database. I want to know how add a password/login feature to the application.
Thank You
Douglas McGillivray

You sould create a href to an sql statement ( create new user / passwd : and insert in a table (C_user,C_PASSWD), to have a list of users registred at your application)
A htp page can manage this
you should create roles that be granted to users,
1- create &user dientified by &passwd;
2- create role1....;
3- grant &role1 to &user1;
:user will be added by user if he chooses registration href.
then he must add information in order to continue registration or push OK to confirm registration and let oracle grant previleges to the new user, a trigger can insert the new informations to the user_table_traces.

Similar Messages

  • How to implement a password/login feature using the package OWA_SEC

    HELLO.....
    I have another question:
    I am using the following versions of Oracle products
    Connected to:
    Oracle9i Release 9.2.0.5.0 - Production
    JServer Release 9.2.0.5.0 - Production
    SQL> select owa_util.get_version from dual;
    GET_VERSION
    9.0.4.0.1
    (version of OWA packages)
    I have successfully compiled the following package:
    (It is based on a package in the text “Oracle Web Application Programming for PL/SQL Developers” by Susan Boardman etc… page 687-688
    The SPEC and BODY code is as follows:
    CREATE OR REPLACE PACKAGE AUTHEN_TEST IS
    FUNCTION AUTHORIZE RETURN BOOLEAN;
    PROCEDURE HELLO_WORLD;
    END;
    CREATE OR REPLACE PACKAGE BODY AUTHEN_TEST IS
    FUNCTION AUTHORIZE RETURN BOOLEAN IS
    v_user VARCHAR2(10);
    v_password VARCHAR2(10);
    BEGIN
    owa_sec.set_protection_realm('The Realm of Testing');
    v_user := UPPER(owa_sec.get_user_id);
    v_password := UPPER(owa_sec.get_password);
    IF v_user = 'PREN' AND v_password = 'HALL' THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    END AUTHORIZE;
    PROCEDURE HELLO_WORLD IS
    v_status BOOLEAN;
    BEGIN
    htp.p('TESTING');
    v_status := authorize;
    IF v_status = TRUE THEN
    htp.p('WENT TO PASSWORD SECTION');
    ELSE
    htp.p('DID NOT GO TO PASSWORD SECTION');
    END IF;
    END HELLO_WORLD;
    END AUTHEN_TEST;
    As I said the code compiles!!
    However what I want it to do is successfully run the following code from the above package:
    owa_sec.set_protection_realm('The Realm of Testing');
    v_user := UPPER(owa_sec.get_user_id);
    v_password := UPPER(owa_sec.get_password);
    I want the user to be asked for a password and login
    Currently when I use the web based application the browser displays:
    TESTING DID NOT GO TO PASSWORD SECTION
    Any advice is appreciated
    Thank You
    Douglas

    Hello,
    The URL:
    http://www.columbia.edu/~br111/plsqltools/configur.htm#1002513
    has useful information related to my question
    Also this post from Paul M was helpful:
    Finding which OWA packages are available for use in the schema/database
    Thanks
    Doug

  • Implementing a password/login feature using the package OWA_SEC

    THANK YOU….
    I have another question:
    I am using the following versions of Oracle products
    Connected to:
    Oracle9i Release 9.2.0.5.0 - Production
    JServer Release 9.2.0.5.0 - Production
    SQL> select owa_util.get_version from dual;
    GET_VERSION
    9.0.4.0.1
    (version of OWA packages)
    I have successfully compiled the following package:
    (It is based on a package in the text “Oracle Web Application Programming for PL/SQL Developers” by Susan Boardman etc… page 687-688
    The SPEC and BODY code is as follows:
    CREATE OR REPLACE PACKAGE AUTHEN_TEST IS
    FUNCTION AUTHORIZE RETURN BOOLEAN;
    PROCEDURE HELLO_WORLD;
    END;
    CREATE OR REPLACE PACKAGE BODY AUTHEN_TEST IS
    FUNCTION AUTHORIZE RETURN BOOLEAN IS
    v_user VARCHAR2(10);
    v_password VARCHAR2(10);
    BEGIN
    owa_sec.set_protection_realm('The Realm of Testing');
    v_user := UPPER(owa_sec.get_user_id);
    v_password := UPPER(owa_sec.get_password);
    IF v_user = 'PREN' AND v_password = 'HALL' THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    END AUTHORIZE;
    PROCEDURE HELLO_WORLD IS
    v_status BOOLEAN;
    BEGIN
    htp.p('TESTING');
    v_status := authorize;
    IF v_status = TRUE THEN
    htp.p('WENT TO PASSWORD SECTION');
    ELSE
    htp.p('DID NOT GO TO PASSWORD SECTION');
    END IF;
    END HELLO_WORLD;
    END AUTHEN_TEST;
    As I said the code compiles!!
    However what I want it to do is successfully run the following code from the above package:
    owa_sec.set_protection_realm('The Realm of Testing');
    v_user := UPPER(owa_sec.get_user_id);
    v_password := UPPER(owa_sec.get_password);
    I want the user to be asked for a password and login
    Currently when I use the web based application the browser displays:
    TESTING DID NOT GO TO PASSWORD SECTION
    Any advice is appreciated
    Thank You
    Douglas

    Hello,
    The URL:
    http://www.columbia.edu/~br111/plsqltools/configur.htm#1002513
    has useful information related to my question
    Also this post from Paul M was helpful:
    Finding which OWA packages are available for use in the schema/database
    Thanks
    Doug

  • Password/Login feature on a website?

    Hello,
    I am trying to have the feature where the user has to enter a login and password in order to access certain parts of a website. Is there a way to implement a password/login feature using PL/SQL?
    Any ideas would be appreciated
    Thanks
    Douglas McGillivray

    It's a while since I've worked with the pl/sql cartridge but from memory I think you have the option of enforcing login via the DAD (i.e. configure it to request username and password rather than automatically logging in). I think that you could then get hold of 'session' data such as user_id and code something into your packages to restrict access. Since it's all on the database you have the option of using Oracle security (e.g. roles and grants) or coding something yourself.
    Hope this helps,
    Mike.

  • Developer-Online: Create a Digg login style using jQuery and CSS

    Create a Digg login style using jQuery and CSS
    Hello Friend, today We'll see how to create a Digg Login panel using only CSS3 and a bit of jQuery script. You'll see how is simple present a login feature using a modal window creates by js. You'll find the .ZIP tutorial visiting: http://www.beatfly.com/download.php
    Tags:    tips & tricks | JS
    Author: patrizio Quatrini
    Posted: 2010-02-04 10:57:48
    Brought to you by: Developer-Online

    Thanks Leonard
    On the surface that looks a mighty powerful product that probably goes far beyond what we require. Looking at the system requirements, it seems that some specific Application Servers are needed (is this correct?), which we won't have. Am I correct in thinking this is a modular based product, in that I buy a base product (being LiveCycle ES ... not sure what this product does on it's own) and then add a module such as PDF Generator to it?
    It's difficult to glean from the product web site exactly what this product is all about but my gut feel is it'll be a few steps beyond what we need to achieve. I might be wrong, so feel free to pull me up there but it seems this is along the lines of a total back-end Adobe solution.
    If you have any other suggestions I'd be grateful, otherwise I may need to continue down the "clunky yet serviceable" HTML to PDF route
    Adrian 

  • Sp2-0575: Use of oracle SQL feature  not in sql 92 entry level.

    Hi,
    While logging to sqlplus I'm getting the following message
    "sp2-0575: Use of oracle SQL feature not in sql 92 entry level."
    and login is successful, but I'm not able to generate next value from the sequence .
    t says no rows selected when i request
    for nextval a
    EX: select mySeq.nextval from dual; (mySeq is sequence)
    Thanx,
    Ravi.

    What has happened is that someone has enabled the Oracle feature called as FIPS flagger.
    This is a feature that Oracle provides to you if you plan to write SQL code that should be portable
    to other RDBMS systems. IF you enable this flagger and use a feature which is not in the SQL standard,
    Oracle will complain that use of this feature will make your application Oracle dependent, and you may not
    be able to run this application against any other RDBMS.
    To disable this for your SQL*Plus session do this:
    SQL> set flagger off
    SQL>
    Once you do this it will allow you to use all SQL commands including Oracle specific extensions.

  • I have a iphone 5 and I can login with my apple id to purchase music. However, when I try to login into icloud using the very same username and password that I use in the apple store it does not work to enter icloud, so what what gives???

    I have a iphone 5 and I can login with my apple id to purchase music. However, when I try to login into icloud using the very same username and password that I use in the apple store it does not work to enter icloud, so what what gives???

    I could do that, however when I select the icloud button (or whatever the heck it is) I am asked to enter the apple id and password. So if you are suppose to create another one for icloud you'd think it would give you the option at this point which would be logical.

  • How to change the password of a schema using Oracle SQL Developer

    Hi need to change the password of a schema using Oracle SQL Developer how do i do it?

    Hi
    alter user username identified by password

  • I have a new computer and I want to use the "MasterPassword" again. How do I import all of the saved website passwords/logins from my old FireFox computer?

    I have a new computer and I want to use the "MasterPassword" again. How do I import all of the saved website passwords/logins from my old FireFox computer?

    A couple of methods.
    The first is to copy 2 files, key3,db and signons.sqlite from the profile folder of the old computer t the profile folder of the new computer. For details of how to find the profile folder see the [[profiles]] article.
    The second method is to install the [https://addons.mozilla.org/en-US/firefox/addon/2848/ Password Exporter] add-on on both computers and use that to export/import the passwords.

  • The feature: "The edition of Reporting Services that you are using requires that you use local SQL Server relational databases for report data sources and the report server database." is not supported in this edition of Reporting Services.

    Hello all,
    I have SQL express 2014 advance edition installed ..
    and i am connecting SQl server 2008 r2 instance which is in network 
    while creating datasource in Reportserver which has Express installed ..
    got this error ..
    please help me how to connect to remote server
    Dilip Patil..

    Error message says it all.
    With SQL Express, Data source should be local SQL DB.
    With SQL Enterprise, Standard, BI edition, you can create Data soruce which are hosted on other servers.
    Please refer similar thread:
    https://social.msdn.microsoft.com/Forums/en-US/c0468e3f-bad7-47a7-a695-75c13762280a/the-feature-the-edition-of-reporting-services-that-you-are-using-requires-that-you-use-local-sql?forum=sqlreportingservices
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • Is it possible to login into the Java instance without password's input, using only my Windows workstation authorization?

    Dear Sirs,
    I try to do an authorization to my NW 7.3 Java instance through my Windows domain authorization.
    I done:
    1) Create connection to LDAP-server and tested it.
    2) Add windows domain certificate to TrustedCAs
    3) Configure SPnego
    Now, I can to login in my NW7.3 Java instance with my windows password, but however I must to input password when I open NW7.3 Java homepage.
    Is it possible to login into the Java instance without password's input, using my windows workstation login/password?
    What I have to do for that?
    I use Windows XP on my workstation and IE 8.0.6 & Chrome 38.0.2125.
    Best regards,
    Alexey Lugovskoy

    Please check
    Using Kerberos Authentication on SAP NetWeaver AS Java - User Authentication and Single Sign-On - SAP Library (NW7.3)
    Using Kerberos Authentication for Single Sign-On - User Authentication and Single Sign-On - SAP Library (NW7.0)

  • Features No longer used from Sql Server 2005 to 2008 R2

    As part of our Migration process from 2005 to 2008 R2, which Specific features should i be taking into consideration in Upgrade to Sql Server 2008 R2 in prespective of T-Sql queries already written in 2005 and need to be changed to 2008 r2 compatibility.Thanks!
    Srikanth

    According to the Link, SET ROWCOUNT function has to be replaced with TOP keyword , but SET ROWCOUNT is still used in SQL Server 2008 R2 and its later versions according to microsoft :
    http://msdn.microsoft.com/en-us/library/ms188774.aspx 
    Can anyone help me in this regard.Thanks!
    If you read further below there is a note mentioned as
    Using SET ROWCOUNT will not affect DELETE, INSERT, and UPDATE statements in a future release of SQL Server. Avoid using SET ROWCOUNT with DELETE, INSERT, and UPDATE statements in new development work, and plan to modify applications that currently use it.
    For a similar behavior, use the TOP syntax. For more information, see TOP (Transact-SQL).
    MS cannot remove it completely knowing to fact that we are Lazy and will not immediately change our code :)
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Apple ID password login every time I used an application

    Hello,
    I'm getting an Apple ID Password Login every time I used an application, phone (Verizon, iPhone 4), or any other programs.  I login correctly and it still ask me to login again.  I don't think my phone needs to get any updates, becasue I update my phone and applications when I get home at night.
    Anyone having this problem?  This is annoying!
    Thanks

    Are you logged into your account in Settings/Store?

  • IOS 7 How do you turn off the security feature that requires me to type in my password everytime I use the phone?

    IOS 7 How do you turn off the security feature that requires me to enter my 4 digit password everytime I use my phone?

    Hi puravidamaine,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Click on the link to see more details and screenshots. 
    If you know your passcode, here are the instructions to turn it off:
    iOS: Understanding passcodes
    http://support.apple.com/kb/HT4113
    If you don't remember your passcode, follow these instructions:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/HT1212?viewlocale=en_US
    Cheers,
    - Judy

  • Connection to internet via ADSL with password login - using airport extreme

    my connection to internet is via ADSL with account name and password login. i was able to set up the PPPoE settings of my new macbook properly to connect to the internet via an Ethernet cable. however, when i was trying to set up the airport extreme base station, the amber light was on all the time and has been giving me the error message "no connection to internet" - can someone pls help?
    thanks
    macbook   Mac OS X (10.4.9)   new to mac and airport extreme base station
    macbook   Mac OS X (10.4.9)  

    btam, Welcome to the discussion area!
    The first thing to do is DISABLE PPPoE on your Mac. Since your AirPort Extreme base station (AEBS) will be handling PPPoE, your Mac doesn't need to do it.
    Next configure the AEBS to connect to your ISP using PPPoE. You can see where to enter the PPPoE information by looking at Page 33 in the "Designing AirPort Networks" (http://manuals.info.apple.com/en/DesigningAirPortNetworks.pdf).

Maybe you are looking for

  • XML extractvalue and NULL result-Problem

    I've got a very strange problem: One select gets restults in my development-database, the same select in production retrieves NULL. The following sql-construct: SELECT (   CASE     WHEN personkey!=-1     THEN       ( SELECT extractvalue( v.xml, '/p:P

  • Computer no longer Sleeping

    I have an iMac G5(2nd Gen) with Leopard (10.5.3) and my computer will not sleep no matter what I do. I tried ejecting all external drives (Firewire and USB), turning off all USB devices, disconnecting from my wireless network, quitting all running ap

  • ATI Radeon X1600

    I am a new Mac user and still trying to get familier with it. Do I need to periodically check for updates to the video driver?

  • Nokia X1-01 Cell Info Display Problem

    My X1-01 sw version 05.27 ,26-05-11,RM -713, Language: MG The problem is that it does not display Cell Info display correctly. Only few times it shows, But only for sometime. Is this bug fixed in the latest version 5.44 ???? and it also has the signa

  • Configuring XML Gateway Inbound OTA in R12

    Hi, We have followed the metalink note : How to Configure OTA For XML Gateway in Release 12 [ID 418926.1] and have done all the steps mentioned.Even then we are unable to configure the OTA. We have set the value oa_web_server for Load OXTA Servlet (s