PL/SQL Function to check user name and password

Hi,
I am new to PL/SQL. I have a table that stores user name and password. I want to write a PL/SQL function that checks if the entered user name and password is correct, by validation against the values in the table... Can someone help me with the code? Both user name and password is varchar2

First of all, I believe you mean a procedure that would check the application username and password. Fot, if you mean a PL/SQL procedure, that runs in the database, and that means it has to be executed after the client application is connected to the database.
Maybe you need a procedure like this:
procedure check_pass(p_user varchar2, p_pass varchar2) is
pragma autonomous_transaction;
v_passwd varchar2(200);
begin
select passwd into v_passwd
from password_table
where user_name=p_user;
if v_passwd!=p_pass then
update password_table set
last_unsucc_logon=sysdate
,unsucc_logon_n=nvl(unsucc_logon_n,0)+1
where user_name=p_user;
commit;
raise_application_error(-20101,'Invalid username/password!');
end if;
exception
when no_data_found then
raise_application_error(-20101,'Invalid username/password!');
end;
Study this piece of code and see if this will do.

Similar Messages

  • Can't login to my verizon on my new galaxy s3 check user name and password in correct but says that it is not does login over internet

    My new gaxay s3 doesn't login to my verizon on my phone comes up username doesn't match password and I entered right but doesn't work but does login over internet on phone

    ericm1969 wrote:
    My new gaxay s3 doesn't login to my verizon on my phone comes up username doesn't match password and I entered right but doesn't work but does login over internet on phone
      Is the phone that you are running the app from, the primary line for your plan? I had an issue with my RAZR MAXX where with my Fascinate it worked fine, but the MAXX would not let me access it, as it was not the primary line. Once I created a new MyVerizon account username and password it let me in, and I could see everything. The original account worked fine if I ran the app from the primary line phone.

  • I am receiving the 'Could not sign you in [Access denied: 530]. Check your user name and password' problem on Adobe Muse CC 2014 and I cannot access the xml file that is supposed to fix this issue?

    I am a PC user and I have Adobe Creative Cloud Muse 2014. I have received the 'Could not sign you in [Access denied: 530]. Check your user name and password' error when trying to upload my muse site to my ftp host, GoDaddy. I have successfully done this in the past and only recently it has stopped working. I looked online at the FAQ Adobe Muse Help | Uploading an Adobe Muse Site to a third-party hosting service and it said to download the ftpprefs.xml file but this file simply leads to a blank page that says /*Not found*//*Not found*/.
    Can someone direct me to a working page with this file or provide a different solution? Thank you!

    Hello,
    As you are getting error [Access denied: 530] it means issue is with access. Either the username and password you are entering is incorrect or you do not have proper permissions.
    I would suggest you to contact Godaddy to either reset password or reset the permissions.
    Regards
    Vivek

  • Firefox will not save my user name and password for one of my sites. How can I fix this problem. It is getting annoying having to reenter every time I check this site. Is there a solution.

    I had my user name and password saved for my library site. My grandson hit something and now the saved user name and password are gone. It asks me every time to enter it and it is getting annoying. How do I fix this. I want Firefox to remember these codes.

    You can create a bookmark with the JavaScript code via a right-click on the "Remember Password" link on the squarefree.com website and choose "Bookmark This Link" and select the "Bookmarks Toolbar" as the destination folder for easy access.
    * https://www.squarefree.com/bookmarklets/forms.html#remember_password
    You need to use the "Remember Password" bookmarklet before or after filling the name and password field on the website with the <u>login form</u>, but before submitting the login form by clicking a button on the web page.
    If the site is using autocomplete="off" then you see a number not equal to 0 (i.e. attributes were removed) in the pop-up alert from the bookmarklet and Firefox should offer to remember the name and password via a drop down dialog of the key icon that will appear on the location bar (Firefox 4+) or via an info bar at the top (Firefox 3).

  • Mail has stopped sending all mail.  Insist that outgoing servers are offline.  Have checked all setting preferences for outgoing servers including user name and password.

    Mail has stopped sending all email.  Says all outgoing servers are offline and server certificate are invalid.  Have gone into preferences/accounts/edit SMTP servers and reentered all data including user name and password.
    Have had  this happen before and had to upgrade to Maverick to cure it.

    So? What's your problem? BTW, you show SL as the OS, but mention installing Mavs. Very confusing.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.1), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • User name and password for Oracle BI Spreadsheet Add-in

    Dear all,
    I downloaded Oracle Database 10g Express Edition and I installed it successfully. I created a new account. Then I downloaded Oracle Business Intelligence Spreadsheet Add-in and I installed it successfully as well (both on my PC).
    Now I would like to run Oracle Business Intelligence Spreadsheet Add-in but I don't know the way of running it. I click "New query". Then I go to the "Connection editor". There are four boxes.
    "Description box" is clear. I write 127.0.0.1 or k219 (it's the name of my computer) into the "Host name box". As the "Port Number box" I use 1521. Then I write xe into the "SID box".
    Then I return to the "OLAP connection tab". There are items: user name and password. I try to write user name and password created in Oracle Database 10g Express Edition. And the result is an error: Faild to connect to OLAP service
    BIB-10701 An error occured during connecting to metadata
    oracle.dss.metadataManager.common.MetadataManagerException: BIB-10701 An error occured during connecting to the database
    oracle.dss.connection.common.ConnectionException: BIB-16627 It's not possible to connect to the databse
    java.sql.SQLException: ORA-06550: line 1, column 13:
    PLS-00201: identifier 'OLAPIBOOTSTRAP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    Please, is there anyone who can help me?
    Your user Frank

    When u install Oracle 10g, it forces u to enter new passwords for System as well as scott user and it does not allow u to keep old know passwords as manager and tiger.
    If u installed with new passwords successfully, u must be knowing those new passwords and there is no reason to try with system/manager. Instead try to connect with new passwords. We never faced such problems.
    If the problems still persits, check that
    a) Oracle service is running
    b) Instance is running by and whether u are able to connect / as sysdba
    Suresh Bansal

  • Invalid User Name and Password after changing the sa Password

    Hi All,
    I've Installed SAP 9.0 PL 05 ,while installing I've given database details as
    User Name : sa
    Password : abcd
    Installation got success and I could able to log in to listed companies.
    But, after I've changed sa user Password in SQL Server
    i.e
    User Name : sa
    Password : xyz
    Now , companies are not listed , then I had reset the password in (SAP Business One Service Manager - > Configure Security - > SLD)
    When I check after this companies are listing, But
    If I try to login with my regular user it is saying
    Invalid User Name and Password
    for testing purpose I've reset the earlier password for sa and tried., then it is working fine.
    does the sa password affecting anywhere?
    how can I change my sa password and use normally?
    any help or knowledge would be very helpful
    Thanks & Regards
    M G

    Hi,
    Please refer SAP note:
    1882731 - Cannot Display Company List After Database User Password
    Is Changed
    Thanks & Regards,
    Nagarajan

  • XDB user name and password

    Hi everyone I running apex 4.2 against oracle 12c database.
    I have imported an application and install it into my workspace.
    Anytime I tried to run the application , I get this pop up to login  for  XDB  user name and password .
    I have tried all the admin user name and password I can think of during my apex installation . Nothing seems to work.
    I want to disable this authentication so that it doesnt appear agian.  Please I need help.
    Can anyone be of help. Thank.s

    Hi DBENG,
    DBENG wrote:
    Hi everyone I running apex 4.2 against oracle 12c database.
    I have imported an application and install it into my workspace.
    Anytime I tried to run the application , I get this pop up to login  for  XDB  user name and password .
    I have tried all the admin user name and password I can think of during my apex installation . Nothing seems to work.
    I want to disable this authentication so that it doesnt appear agian.  Please I need help.
        Please check the status of the users whether they are open:
    Login into SQL Plus with SYS user and SYSDBA privilege
    Check the status of the users:
    SELECT USERNAME
         , ACCOUNT_STATUS
      FROM DBA_USERS
    WHERE USERNAME IN ('ANONYMOUS','XDB');
        NOTE : If the account status is not OPEN then follow the next step to unlock the accounts.
    Unlock the locked/expired users with valid password:
    ALTER USER anonymous IDENTIFIED BY "password" ACCOUNT UNLOCK; 
    ALTER USER xdb IDENTIFIED BY "password" ACCOUNT UNLOCK; 
        NOTE : Replace "password" with a valid password.
        Also check whether the ANONYMOUS user has CREATE SESSION privilege. If not grant the privilege:
    GRANT CREATE SESSION TO ANONYMOUS;
         Refer :
    Getting Windows Security pop up for user name and password when trying to access APEX
    Re: Apex 4.2.6 Installation Windows Security Popup and HTTP 404 Not Found
        Hope this helps!
    Regards,
    Kiran

  • Safari 3.2.1 User Names and Password Retention

    Despite having checked the box in autofill to save user names and passwords, Safari no longer asks me whether I want to save them in the keychain. Also, I wonder if there is a different kind of glitch, as my screen for that window (under edit) does not show anything except remove and *remove all* and done. It has nothing for me to add user names and passwords if I wanted to do so manually. How can I convince Safari to memorize these user names and passwords? I've saved them for months, but all of a sudden they seem to have decided to take a long vacation.

    Do you suggest the one about Safari Forms Autofill or some other one?
    Leave the Safari Forms alone. Instead, delete any specific keychain entry relative to a web site with which you are having a problem. To facilitate the search, use the Spotlight Panel within the Keychain Access app. by typing in part or all of the related site name. When the entry appears, simply click on it, then press the delete key.
    Regarding your comment about Safari's Auto-Fill, not sure what would automatically deselect this function within Safari. Might be a corrupt Safari preference file. To create a new file, go to the Finder: Your User Account>Library>Preferences folder. There, move the com.apple.safari.plist file to the trash, then restart Safari. You'll need to reestablish any custom settings in System Preferences, plus in Safari's View Menu.
    Post back

  • The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError) Log on failed. Ensure the user name and password are correct. (rsLogonFailed) Logon failure: unknown user name or bad

    The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)
    Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
    Logon failure: unknown user name or bad password 
    am using Windows integrated security,version of my sql server 2008R2
    I have go throgh the different articuls, they have given different answers,
    So any one give me the  exact soluction for this problem,
    Using service account then i will get the soluction or what?
    pls help me out it is urgent based.
    Regards
    Thanks!

    Hi Ychinnari,
    I have tested on my local environment and can reproduce the issue, as
    Vaishu00547 mentioned that the issue can be caused by the Execution Account you have configured in the Reporting Services Configuration Manager is not correct, Please update the Username and Password and restart the reporting services.
    Please also find more details information about when to use the execution account, if possible,please also not specify this account:
    This account is used under special circumstances when other sources of credentials are not available:
    When the report server connects to a data source that does not require credentials. Examples of data sources that might not require credentials include XML documents and some client-side database applications.
    When the report server connects to another server to retrieve external image files or other resources that are referenced in a report.
    Execution Account (SSRS Native Mode)
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Time Capsule won't accept my user name and password for access - Help!

    Hi all,
    My Time Capsule seemed to stop working one day and I had to do a hard reset with the little button at the back. After that it worked and I restored my wireless network settings but now I can't access the Time Capsules hard drive with Time Machine.
    When I try to choose it as my Backup Disk in the Time Machine preferences it says "Enter your user name and password so Time Machine can access the file server "Our Time Capsule" (the name of my time capsule). However, every time I try to enter my password I get "Sorry, you entered an invalid username or password".
    I've already tried several resets of the Time Capsule and I've also tried logging on my computer as the Root user and changing my administrator account password back and forth but no go.
    Help! and Thanks.

    Norman & Harry,
    Consider the following:
    *_Time Capsule Keeps Asking Me For a Password_*
    It will be important to know what is going on, or what you are doing when it asks for the password. Is it asking for a password only when Time Machine attempts a backup? Consider this:
    It is NOT your username and password it wants when you try accessing the Time Capsule. (I know... it SAYS "username and password") But it means the Time Capsule's Name and Password.
    You will find that by launching Airport Utility.
    Select the TC on the left.
    Click "Manual Setup".
    Click the "Time Capsule" Tab.
    You will see "Time Capsule Name:" and "Time Capsule Password".
    Make sure “Remember password in keychain" is checked.
    That is the information you need to enter when it asks for "username & password."
    *I Don’t Remember What My Time Capsule Password Is*
    You can see what your current TC password is by going into Keychain.
    Open your Keychain and select "login" from the Keychains pane in the top left. Highlight "Passwords" in the Category pane from the lower left.
    Sort all the items by Kind. Note everything labeled "Airport...". How many do you have listed? There should only be one "Airport base station password" for each base station that you have active. Also, there should only be one "Airport network password" for each network you have created. If there are more than these, then delete all but the ones with the most recent Modification date.
    To see what passwords are being stored, double-click your Time Capsules' entry. A new window will appear.
    Put a check beside "Show Password". You may be asked for your own Admin password so enter that.
    Now the Password field will display the password you entered into Airport Utility for your Time Capsule
    *It Still Won’t Accept the TC Name and Password*
    Launch Airport Utility --> Manual Setup.
    Select "Disks" in the tool bar above.
    Click the "File Sharing" tab.
    Is "File Sharing" checked? It should be.
    What is selected beside "Secure Shared Disks"? If it says "With Accounts" or "With a Disk Password" then the system will ask you for a password every time it mounts the TC hard disk. If you switch it to "With Time Capsule Password" then use the password you designated earlier in the “Time Capsule" tab. It should only ask you once and then never again - because you had checked "Remember password in keychain".
    If you have made any changes then click "Update".
    Let us know if this resolves your issue.
    Cheers!

  • I receive an error stating user name and password are not valid on my ipad and iphone 3Gs when attempting to load email from my icloud account. When I log onto icloud from my Mac, it wont load the email either.

    One day, my ipad and iphone pick up my emails (.mac account) from icloud just fine. the next day, I recieved error messages that say my user name and password are not accurate. I removed the icloud program on both devices and added it back on to both devices and get the same message. I logged into icloud from my Mac and while I can log in, it times out when I select email and wont load the email there either. Any Suggestons?

    I am having the same problem; it started about 24-36 hours ago.
    I know my ID/PW combo are correct because I can access all other aspects of iCloud except mail.
    iPhone -- returns incorrect ID / Password
    iPad -- Same
    Mail.app on Mac -- returns incorrect password error
    icloud.com -- allows me to log in and use all functions accept mail.  When I try to use mail it stays on a white screen for about 60 seconds then returns a dialogue box that indicates a server error.
    I contacted Apple and they placed my iCloud account into something called "Troubleshooting" mode.  They generated a new strong password and sent it on to "Engineering."
    I suspect there are a small number ofo users like you who are affected with the same problem I am.  Too small a number for it to be reported as an outtage.  I suggest you call Apple and open a case to have your mail investigaged.
    Hope this helps...

  • What is the default user name and password for oracle databse 10g

    Hi: gurus, I just recently installed the oracle 10g personal edition and trying to log on to the enterprise manger, but can't figure it out the user name and password, can some one help me and tell me what is the default user name and password to logon to the oracle instance. BTW during the installation I choose two passowrds one for the schema and one for the global database orcl. I wonder will I be using one of these passwords. Still I don't have any clue for the "User Name".
    thanks

    system/manager and sys/change_on_install are still valid default passwords when database is manually created. If DBCA was used, passwords will be those defined at creation time inside DBCA.
    In case passwords have been forgotten, those can be reset:
    From an OS commnad prompt, set ORACLE_SID, ORACLE_HOME and PATH environment variables, just to make sure you are pointing to the right Oracle Home installation, and issue:
    OS> sqlplus / as sysdba
    SQL> alter user sys identified by yourNewSysPassword;
    SQL> alter user system identified by yourNewSystemPassword;
    And you're done with it.
    HR Madrid

  • CIC0 - CRM system requests user name and password

    Hi folks,
    I am a BASIS  gui  am facing a peculiar problem with our production CRM system. It is a CRM 5.0 system and we have no java stack . The customer service users have reported on a daily basis when they are logged into CRM system and  working with CIC0 transaction for several hours, suddenly a pop up comes up stating
    "The server <CRM server server name> is requesting that a user name and password be sent in an insecure manner (basic authentication without a secure connection) "
    This is happening when a user logged on the CRM system itself. There is no java stack on this system, pure ABAP system. When this popup comes up,  the user then puts his/her user name and password and hits ok and is able to continue with work only to be interrupted the next day in the middle of work. So they are able to login , keep doing their for hours and suddenly are asked to revalidate their user name and password.
    1. If the user is logged in for several hours and is working fine, what happens suddenly that the user name, password is forgotten and requires to be re-inputted?
    2. Is this related to the browser? But the users only work on CIC0 abap system, they do not open a browser , and this is not via portal or a web-ic link...this is all pure abap login via a sapgui.
    3. I have copied the same user and am testing to see if the pop up pops up on me...but so far this pop up is not comming up for me....can this be related to user's local desktop windows or browser settingis there any password cache setting ..if so does it mean every time user tries CIC0, a cached password is sent to the server ......I am confounded ...where is the issue, what settings is this related to...
    Thanks for any help...
    regards, Vikram

    Hello Vikram,
    Apparently CIC0 makes use of WAS which requires separate authentication. This can possibly explain this issue. Just check if you have maintained the local SSL certificate. Also ensure SSO is also in place. Check STRUSTSSO2 for this.
    Regards.
    Ruchit.

  • CIC0 - asks for user name and password on CRM

    Hi folks,
    I am a BASIS  gui  am facing a peculiar problem with our production CRM system. It is a CRM 5.0 system and we have no java stack . The customer service users have reported on a daily basis when they are logged into CRM system and  working with CIC0 transaction for several hours, suddenly a pop up comes up stating
    "The server <CRM server server name> is requesting that a user name and password be sent in an insecure manner (basic authentication without a secure connection) "
    This is happening when a user logged on the CRM system itself. There is no java stack on this system, pure ABAP system. When this popup comes up,  the user then puts his/her user name and password and hits ok and is able to continue with work only to be interrupted the next day in the middle of work. So they are able to login , keep doing their for hours and suddenly are asked to revalidate their user name and password.
    1. If the user is logged in for several hours and is working fine, what happens suddenly that the user name, password is forgotten and requires to be re-inputted?
    2. Is this related to the browser? But the users only work on CIC0 abap system, they do not open a browser , and this is not via portal or a web-ic link...this is all pure abap login via a sapgui.
    3. I have copied the same user and am testing to see if the pop up pops up on me...but so far this pop up is not comming up for me....can this be related to user's local desktop windows or browser settingis there any password cache setting ..if so does it mean every time user tries CIC0, a cached password is sent to the server ......I am confounded ...where is the issue, what settings is this related to...
    Thanks for any help...
    regards, Vikram

    Hello Vikram,
    Apparently CIC0 makes use of WAS which requires separate authentication. This can possibly explain this issue. Just check if you have maintained the local SSL certificate. Also ensure SSO is also in place. Check STRUSTSSO2 for this.
    Regards.
    Ruchit.

Maybe you are looking for

  • Tax code conditions not appearing

    Hi Friends we are using TAXINN tax procedure, I am maintaining conditions in FV11 using tax code V1. When i select this tax code at the time of raising PO system in the invoice tab and presses taxes tab system is not popping up separate window where

  • Clear throu fb60

    Hi all, I tried to clear the sales tax gl account payble throu vendor in t.code fb60.. but the system asking for tax code again.. (My process is to pay the sales tax to the govt authorities throu vendor) where we change this? i tried in obc4 to check

  • Music not syncing between pcs

    I have two pcs which are activated for homesharing, but when I buy music from Itunes store, it does not show up on both PCs in the Music library. What am I doing wrong? Thanks for the support.

  • Photos not responding

    I have just bought my first ipod and whilst the music side is great( after much editing ) the photo side is rubbish. I have been reading the forum and my ipod has the same displaying problems as already discussed. Also the photos load in an incorrect

  • TS3276 How do I block a sender who keeps offering me a banking deal?

    Mearly every day I receive an email from a Bank with whom I have no account and no dealings. I would like to block this sender from contacting me.