Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7172127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:33:13+00:00 2026-05-28T15:33:13+00:00

This is my code: CREATE OR REPLACE TRIGGER unsuccessful_logins AFTER INSERT OR UPDATE ON

  • 0

This is my code:

CREATE OR REPLACE TRIGGER unsuccessful_logins
    AFTER INSERT OR UPDATE
    ON temp_logins
    for each row

DECLARE

        CURSOR c_unsuccessful_attempts 
        IS
        SELECT * from temp_attempts
         and user_id= :new.user_id;

    max_fails EXCEPTION;


    BEGIN
         FOR r_unsuccessful_attempts in c_unsuccessful_attempts  
         LOOP

             if(:new.user_id = r_unsuccessful_attempts.user_id) then
                 if (r_unsuccessful_attempts.locked = 'Y') then
                    raise max_fails;
                end if;
            else
                null;
            end if;

        END LOOP;       

EXCEPTION  
    WHEN max_fails THEN  
        RAISE_APPLICATION_ERROR (-20300,'User '''||:new.login_name||''' has reached maximum failed logins. Please contact your system administrator ');    

   END unsuccessful_logins;

The error I am getting in my oracle apps screen is:

APP-01564: ORACLE error 20300 in fdssgn
cause: fdssgn failed due to ORA-20300: You have reached maximum failed logins. Please contact your system administrator.
    ORA-06512: at "APPS.UNSUCCESSFUL_LOGINS",line 24
    ORA-04088: error during excution of trigger 'APPS.UNSUCCESSFUL_LOGINS'.

The SQL statement being executed at the time of the error was:
INSERT INTO TEMP_LOGINS (USER_ID, ATTEMPT_TIME,TERMINAL_ID,LOGIN_NAME)
values(:user_id, sysdate,:erminal_id,:login_name)

I just want to display ORA-20300: You have reached maximum failed logins. Please contact your system administrator part.

And want to omit:

    ORA-06512: at "APPS.UNSUCCESSFUL_LOGINS",line 24
    ORA-04088: error during excution of trigger 'APPS.UNSUCCESSFUL_LOGINS'.
  The SQL statement being executed at the time of the error was: 
INSERT INTO TEMP_LOGINS (USER_ID, ATTEMPT_TIME,TERMINAL_ID,LOGIN_NAME)
values(:user_id, sysdate,:erminal_id,:login_name)

How can I get rid off these extra messages on the screen?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:33:14+00:00Added an answer on May 28, 2026 at 3:33 pm

    I’m not sure exactly what you mean by ‘oracle apps’, but this link may help; it has a section on exception handling.

    As I suggested in an earlier comment, I suspect you need something in your application code to catch and gracefully handle the exception raised by the trigger, so some kind of wrapper around the insert statement. The link is specifically talking about handling an exception in Forms, which (as is probably quite clear) I’m not familiar with, but the principal is likely to be the same if you’re using something related.

    Adapting their example slightly, something like this might fit what I think you’re trying to do:

    DECLARE
        too_many_attempts EXCEPTION;
        PRAGMA EXCEPTION_INIT(too_many_attempts, -20300);
    BEGIN
        INSERT INTO TEMP_LOGINS (USER_ID, ATTEMPT_TIME,TERMINAL_ID,LOGIN_NAME)
        values(:user_id, sysdate,:erminal_id,:login_name);
    EXCEPTION
        WHEN too_many_attempts THEN
           fnd_message.set_string(SQLERRM);
           fnd_message.error;
           RAISE FORM_TRIGGER_FAILURE;
    END;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've create a trigger which work on 2 tables like this: - when insert
Recently, I encountered a BEFORE INSERT OR UPDATE trigger on a table. In this
I have a trigger in Oracle SQL. CREATE OR REPLACE TRIGGER test BEFORE INSERT
Why, this code create 2 the same columns in grid (Color and Color). How
I have this code to create an ATOM feed Dim xmlResult As New StringBuilder
I have this code which should create a splash image with either no animation
I have the this code that will create excel file and work sheet then
this is the code: def create(request, form_class=MapForm, template_name=maps/create.html): map_form = form_class(request.POST or None) if
With this code: var db = google.gears.factory.create('beta.database'); db.open('cominar'); db.execute('CREATE TABLE IF NOT EXISTS Ajax
Having this code: using (BinaryWriter writer = new BinaryWriter(File.Open(ProjectPath, FileMode.Create))) { //save something here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.