Help with a Before Delete Triggger

Hello:
When I do a delete operation on a table that has the following trigger, it comes up with an error message,
":ORA-04091: table INNOBOX.SUGGEST is mutating, trigger/function may not see it
ORA-06512: at "INNOBOX.DELSUGGEST", line 44
ORA-04088: error during execution of trigger 'INNOBOX.DELSUGGEST'"
Can somebody tell me what I am doing wrong?
CREATE OR REPLACE TRIGGER INNOBOX.delSuggest
BEFORE DELETE
ON INNOBOX.SUGGEST
     FOR EACH ROW
          BEGIN
               INSERT INTO INNOBOX.SUGGEST_LOG
                    Sugg_Log_ID_N,
                    Sugg_No_N,
                    Cat_CD_C,
                    Liaison_CD_C,
                    S_Desc_C,
                    L_Desc_C,
                    S_Stat_CD_C,
                    S_Stat_DT,
                    Benefit_C,
                    Cost_Sav_C,
                    Resol_C,
                    D_Stat_CD_C,
                    D_Stat_DT,
                    ACD_CD_C,
                         Cr_By_ID_C,
                    Cr_DT,
                    Up_By_ID_C,
                    Up_DT     
               VALUES
                         INNOBOX.Suggest_Log_Seq.NEXTVAL,
                    :old.Sugg_No_N,
                    :old.Cat_CD_C,
                    :old.Liaison_CD_C,
                    :old.S_Desc_C,
                    :old.L_Desc_C,
                    :old.S_Stat_CD_C,
                    :old.S_Stat_DT,
                    :old.Benefit_C,
                    :old.Cost_Sav_C,
                    :old.Resol_C,
                    :old.D_Stat_CD_C,
                         :old.D_Stat_DT,
                         'D',
                         :old.Cr_By_ID_C,
                         :old.Cr_DT,
                         :old.Up_By_ID_C,
                         :old.Up_DT
               DELETE SUGGEST WHERE Sugg_No_N = :old.Sugg_No_N
          END;
Thanks.
Venki

Hi,
Try to remove the last line from your trigger :
DELETE SUGGEST WHERE Sugg_No_N = :old.Sugg_No_N, you delete a line from a table for which there is the same before delete trigger, also there is a muttating trigger.
HTH,
Nicolas.

Similar Messages

  • Help with PowerShell to delete a date range of Calendar meetings

    I'm trying to delete all Calendar items within a date range, from a mailbox. But first I'd like to just make sure my date filter is actually working.
    Here is what i HAVE working:
    Search-Mailbox ME -SearchQuery "Received:01/01/2010..03/18/2010" -EstimateResultOnly
    This works, it gives me a count of all things in my mailbox
    Search-Mailbox ME -SearchQuery kind:meetings -EstimateResultOnly
    This works, it gives me a count of all Meetings in my Calendar.
    I reallly need now to get the date range to work in conjunction with the kind:meetings.
    How can I do that?

    Hi,
    The results include the deleted meetings. I test it in my lab.
    So the command to delete Calendar meetings with a date range is this:
    Search-Mailbox "username" -SearchQuery "Received:01/01/2010..3/18/2015 kind:meetings" –EstimateResultOnly -DeleteContent
    Best Regards.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Lynn-Li
    TechNet Community Support

  • Help with download and delete??

    Ok i have all my music on my library in one computer now my itouch is on auto synce..im goin on vacation so i put my itouch on manual update so i can l add songs to it from my sisters computer. now my question is when i go baq home i wanna put my ipod baq on auto update? will it delete the songs i had added while it was on manuel update beacuse there not on my itunes library??

    Well!
    Sorry if I wasn't being USEFUL, but it does help when you get the full info in a question.
    Try [TouchCopy|http://www.wideanglesoftware.com/touchcopy>, not free but I think you get a thirty day trial.
    Good luck,
    Dud.

  • Need help with Imovie before I throw my computer out the window!

    Ok so I got a canon fs200 for christmas and supposidly it works great with imovie. Now when I first hooked it up it kept crashing saying "IMovie quit unexpectedly while using the Sonix SN9C201 Webcam Plugin." I do not understand why its trying to use that plugin but anyways. So I messed with it some more and thought I figured out the problem and that it was plugged into my mini stack instead of directly into the computer. So when I tried that it loaded up great and worked, now today when trying to bring in videos from the camera it has gone back to crashing with same error! This makes NO sense...it is plugged directly into the computer it comes up as its own drive on my desktop yet crashes everytime I try to bring video in. Please help me with what I can do!

    Wow..I feel like a idiot..I had my webcam plugged in and totally forgot about it b/c I never use it. Unplugged that and bammo works like a charm. Thanks for makin me realize it hah

  • HELP WITH IPOD BEFORE I THROW IT UP THE WALL

    HI I HAD A IPOD ON XMAS DAY ITS THE ONE THAT U CAN PLAY VIDEOS ON WELL ILL TELL U WHATS HAPPENING I READ THROUGH THE LEAFLET AND INSTALLED DISK ON MY COMPUTER AND EVERYTHING I HAD ON ITUNES WAS DOWNLOADED TO IPOD IN SECONDS THEN I UNPLUGGED IT HTEN I BROUGHT MORE MUSIC OF ITUNES BUT CANT DOWNLOAD TO IPOD THERE IS NO IPOD SIMBOL IN ITUNES IV FOLLOWED MANY STEPS BUT NOTHING ALSO IV UPDATED AND CLICKED IPOD UPDATER WHERE U CHOOSE UPDATE OR RESTORE BUT IM GETTING MESSAGE PLUG IN IPOD TO UPDATE BUT MY IPODS PLUGED IN WHAT THE **** IS GOING ON IM GETING DO NOT DISCONNECT SIGN ON IPOD

    There are troubleshooting steps here.
    PC does not recognize the iPod. Very often, just a simple reset cures the recognition problem. Try it several times, it doesn't always work straight away.
    Then there's this.
    iTunes doesn't recognize your ipod.
    Now, could I ask you a favour please? Don't post in capital letters. Here on the forums it's considered shouting and rude. That, coupled with lack of punctuation in your post, makes it difficult to read. Also, it's best not to swear in your posts. That just attracts the attention of the Moderators who will remove your post, and that's not going to help you at all.
    Many thanks.

  • Need help with HR_INFOTYPE_LOG_GET_DETAIL, before/after tables

    Greetings experts:
    I've searched SDN for assistance with this question before posting but haven't been able to find anything to address my specific question which is, how do I "convert" the data that is in the before and after tables returned by this FM into the appropriate structure?
    I tried concatenating all of the data in DATA1-DATA7 into a string and then using ASSIGN to CAST it into a structure of type P0167 (the particular record I was looking at in PCL4 was a change to this infotype).  I noticed, however, in debug that the data just didn't look right, i.e., the DATA1 began with BAREA but there are many other fields ahead of this in P0167 so it's no wonder when this code executed I got garbage in my data object typed as P0167.
    Any advice would be appreciated!

    Hi Jamie
    Just check that 'FIELD' table is optional/mandatory.
    Also cross-check for 'type' of Exporting/tables parameters with the parameters that you are supplying
    Regards
    Ashish Jain

  • I need help with speed of deleting do noy know how to fix

    am not very good at this, need help, deleting button is so slow it is not working as before

    Check your mails are SYNCed properly or not. otherwise reSYNC your emails and check it out.
    Try in safemode also
    *https://support.mozilla.org/en-US/kb/safe-mode

  • Help with inability to delete apps?!

    I recently received an iPad Mini 32GB. I attempted to download a game, but the app icon would just stay blank and it would read "waiting..." I eventually realized I don't need the game that bad, so I attempted to deleted it. I clicked the "x" after holding the app down, and then I pressed "delete" after the confirmation message came up. But the app just stays there. The app icon still doesn't appear and it reads "waiting..." Help?!

    There is a known itunes issue on apple's end. Only recourse right now is to wait it out.
    Apple - Support - System Status

  • Help with MBP before I sell it

    Hi-
    I have a 3 year-old MBP 15" notebook. I am going to the apple store tomorrow to get a new machine. I would like to sell the MBP but I am not good at knowing the ins and outs of computers. I would like to remove as much personal stuff as possible.
    anybody have any help for me regarding getting the notebook as close to what a new MBP would have on its HD? Make sense? I hope so . In other words I want to make the notebook as close to new as possible and remove all my personal stuff off the machine.
    Thanks!

    Boot from the original install DVD. When the install screen shows go up to the top and select Disk Utilities. Check "Zero Drive." If you are really paranoid you can use one of the other options. This will completely wipe you drive, including all the stuff you deleted long ago, but may still be on your drive, just not in the directory.
    If you just install a fresh copy of OS X over your existing one w/o zeroing out then your drive is not secure and someone could potentially recover your data.

  • Help with update,add, delete records

    Hi every one,
    This is a problems that I have been trying to figure out for
    a little while now and I hope you all can help me out. So this is
    the situation.
    I am useing CFX XLS 2 Query to create a query from an excel
    doc I have. Now my problem is how can I loop through and delete the
    records that no longer are in the spreadsheet?
    So in other words my client will be uploading a new XLS each
    day, this xls will have some new data, some of the same and some
    will be gone. So I need the system to check and see if the
    stocknumber is there, if it is it will just update that record, now
    if the record is new it will add the record but for the life of me
    I can't figure out how it can delete record.
    I had thought maybe doing a select where the stock numbers
    dont match but that didnt work out too well :)
    Thanks for any help you may be able to provide

    You could consider using ValueList() to create a list of
    stocknumbers from your excel query, then do something like this:
    <cfset sCurrentStockNumbers =
    ValueList(myQuery.stocknumber)>
    <cfquery name="removeStockNumbers"
    datasource="myDataSource">
    DELETE from myTable
    WHERE stocknumber NOT IN (<cfqueryparam
    value="#sCurrentStockNumbers#" list="Yes">)
    </cfquery>

  • Help with the forward delete key code equivalent

    As a follow-up to this post:
    http://discussions.apple.com/thread.jspa?messageID=702033

    No problem!
    *It's too bad that I can't change my alias, the Geeklord was just something I threw in there when I first registered*
    oh, by the way, you can mark my post as the solution. This points it out to others and helps increase my status

  • Help with texts being deleted?

    My options were set that texts should be saved for 15 days. This morning all of my texts were deleted except saved texts. I figured maybe it just deleted all texts after 15 days maybe instead of deleting texts over 15 days old, so I set it on the "forever" setting, that they would never be deleted. I've gotten more texts today and they all disappeared again. I haven't changed any other options that should be at all related to my text options, and I don't know what to do? One of the texts actually deleted itself as soon as it came so I couldn't even read it. I have no idea what's going on. Phone is very new, only had it about two weeks.

    This is happening due to memory constraints on your device. In BlackBerry when the device couldn't find enough free space for its work it clear out your text messages and call logs. You can check the amount of free space on your handheld from options -> Status -> free space (given in bytes).
    For viewing details database sizes check the following - options -> Status -> click Menu button and select Database size. It’s recommended that you move your picture from device memory to Media card. Keep calendar items for pas 15 days and also keep messages for lower date range.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • Help with Excel Applescript - deleting rows

    Hi,
    I'd like to delete all the rows that contain about 10 to 12 three letter combinations such as EDM, WAS, PIT, NYI and so on. All those three letter combinations are in one column of my spreadsheet (Column C).
    Simon

    Perhaps you can use this as starting point:
    Sub Transform()
    Dim wshS As Worksheet
    Dim wbkT As Workbook
    Dim wshT As Worksheet
    Dim r As Long
    Dim m As Long
    Application.ScreenUpdating = False
    Set wshS = ActiveSheet
    m = wshS.Range("A" & wshS.Rows.Count).End(xlUp).Row
    Set wbkT = Workbooks.Add(xlWBATWorksheet)
    Set wshT = wbkT.Worksheets(1)
    wshT.Range("A1") = "bgroup"
    wshT.Range("B1") = "verses"
    wshT.Range("A2") = "Default"
    For r = 2 To m
    wshT.Cells(2, r) = wshS.Cells(r, 1) & "." & wshS.Cells(r, 2) & _
    "." & wshS.Cells(r, 3)
    Next r
    Application.Dialogs(xlDialogSaveAs).Show
    Application.ScreenUpdating = True
    End Sub
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Why is "erase junk mail" de-highlighted in the drop down menus.  I'm not able to delete my junk mail box without doing each one individually.  Simple, but please someone help with an answer.  Thanks.

    why is "erase junk mail" de-highlighted in the drop down menus.  I'm not able to delete my junk mail box without doing each one individually.  Simple, but please someone help with an answer.  Thanks.

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • I AM A CREATIVE CLOUD MEMBER FOR SOMETIME BUT NOW WHEN I LOGIN WITH THE CORRECT PASSWORD I STILL GET SIGNED OUT MESSAGE AND THEN WHEN TRIED THE SOLUTION GIVEN BY HELP THAT IS TO DELETE OPM.DB FILE OR SECOND SOLUTION INSTALL A FRESH CREATIVE CLOUD FOR DESK

    I AM A CREATIVE CLOUD MEMBER FOR SOMETIME BUT NOW WHEN I LOGIN WITH THE CORRECT PASSWORD I STILL GET SIGNED OUT MESSAGE AND THEN WHEN TRIED THE SOLUTION GIVEN BY HELP THAT IS TO DELETE OPM.DB FILE OR SECOND SOLUTION INSTALL A FRESH CREATIVE CLOUD FOR DESKTOP APP OR EVEN SOLUTION OF RUN OF IMSLIBREPLACER  IM STIILL NOT ABLE TO LOGIN TO MY CREATIVE CLOUD FOR DEKTOP APP . PLEASE HELP ME AS I NEED TO GET IN AND EXPLORE MORE OF MY DOWNLOADED S/W
    I HAVE TRIED ALL POSSIBLE SOLUTION BUT AM AMAZED HOW THIS IS HAPPENING TO ME.
    PLEASE PLEASE HELP ME .Creative Cloud Connection

    Hi Alfred,
    I would like to know the exact error message when you sign in, in the meanwhile please try the following steps assuming its Windows, let me know if its a MAC:
    1) Go to Start button>> Control panel>> Uninstall a program.
    2) Check if you see Browser safeguard there, if yes then uninstall it.
    3) Open Internet explorer>> Tools>> Internet options>> Connections>> Lan Settings>> and it should be like this.
    -Ankit

Maybe you are looking for

  • Can't see my 3TB lacie external drive (for Time Machine)

    since upgrading to Yosemite my Time Machine backup won't operate, says the drive is Read Only. Don't see where I can change this, I have verified and run repair and looks good but still no Time Machine backups will function, last successful one was w

  • Pogo won't play games java won;t work with firefox

    I was playing pogo and it came up to update Java. Did it and now can't play most of the games like canasta. Says java won't work with firefox.....it did before. try for 4 days not and no luck

  • Exchange 2013 Autodiscover Android IOS not working

    Hello, I configured exchange 2013 in my organization. Android, thunderbird and IOS not working with autodiscover. Windows Phone example Lumia worked with autodiscover correctly. All needed DNS entry and certificate are uploaded to Exchange. Test on h

  • Wha' Happen? I Can't Do My Wurk!!!

    Sorry for the Mighty Wind reference..<G> But I was arranging some files in the HD window, you know where the side bar lists; Desktop,Users,Applications, Documents, Pictures and used to list MUSIC! I say used to as I accidently slid it out the window

  • Delete current veiwed page help!!!

    Hi I've created a form that adds a new instance when i click on a button with the click script "Mysubform.addinstanceManger.addInstance (1);" This copies my complete form to a new page which is what i want it to do. However when veiwed in on the web