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 8870251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:40:40+00:00 2026-06-14T17:40:40+00:00

I have a trigger which I’m trying to use to update the same table

  • 0

I have a trigger which I’m trying to use to update the same table it listens to.

However, upon submitting a create or update, I get the following errors:

ORA-04091: table [username].ADDRESSES is mutating, trigger/function may not see it ORA-06512: at "[username].ADDRESSES_T1", line 9 ORA-04088: error during execution of trigger '[username].ADDRESSES_T1'

I appreciate any help!

  • 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-06-14T17:40:41+00:00Added an answer on June 14, 2026 at 5:40 pm

    You’re updating the same table the trigger is written. You need something like this:

    create or replace trigger "ADDRESSES_T1"
    BEFORE
    insert or update on "ADDRESSES"
    for each row
    begin
    DECLARE
       l_lat NUMBER;
       l_lng NUMBER;
       l_postcode VARCHAR2(8) := :NEW.POSTCODE;
    
    BEGIN
      brian.POSTCODE_TO_LAT_LNG_GM_API (l_postcode, l_lat, l_lng);
      :new.location = SDO_GEOMETRY(2001, --SDO_GTYPE
                                   8307, --SDO_SRID
                                   SDO_POINT_TYPE(l_lng, --X lng
                                                  l_lat, --Y lat
                                                  null),     --Z
                                   null, --SDO_ELEM_INFO_ARRAY
                                   null);
    END;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to use an update trigger which checks for the title_id
I have a trigger which works after insert|update on one table(suppose table 1). The
hi i have created a trigger which i want to update a table field
I am trying to create a trigger which will enter values into a table
I have a stored procedure which is called inside a trigger on Insert/Update/Delete. The
I'm trying to write a table trigger which queries another table that is outside
I have written an update trigger which works fine when i update only one
I have a trigger which is for a few fields in a table. But
I have a trigger AFTER INSERT inside which I must update the value of
I have the following trigger which inserts records into Table B whenever Table A

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.