How to over come mutating error

Can Anyone explain me how to OVERCOME Mutating error when firing a trigger ?
Thanks in advance.

1. Don't use triggers
2. Don't perform DML on the same table your trigger is based on.
Without information (such as your table create statement and your trigger code) there's not a lot else we can say right now.
If you're getting a mutating table error, it's an indication that either your logic or your design (or both!) need rethinking...

Similar Messages

  • No Response From Application Server - How To over come this error message

    I am Using Oracle 10g Application server. if we run a report from our front end - jsp , if the transaction takes more than 10 minutes then 'No Response From Application Server ' error message is coming in browser. How to over come this. whether i have to set any transaction time in application server. If anybody knows this kindly give reply immediatly.

    There are settings in the reports configuration to modify your timeout. This is documented in the repors config file itself.
    cu
    Andreas

  • How to over come this error ???

    hi all....
    i have the following error constantly..
    how to rectify this error ??
    error:
        [mxmlc] C:\Documents and Settings\indukl1\Workspaces\MyEclipse 8.5\flexuploader\flex_src\FileUploader.mxml(859): col: 3 Error: The element type 'mx:itemRenderer' must be terminated by the matching end-tag '</mx:itemRenderer>'.
        [mxmlc] </s:Application>
        [mxmlc]   ^
     BUILD FAILED
    C:\Documents and Settings\indukl1\Workspaces\MyEclipse 8.5\flexuploader\build.xml:111: mxmlc task failed 

    Hi,
    This error is because to close the tag you need to close it with proper tag.
    <mx:itemRenderer>
                   Data you want to show over here
    </mx:itemRenderer>

  • How to handle the mutating error

    create or replace trigger trg_t1
    after insert on t1
    begin
    insert into t1 values(1);
    end;
    i got some error..

    1011927 wrote:
    same table with the same trigger
    Within  trigger code do not issue SQL against same table upon which trigger is based; then no mutating error is thrown

  • Error generating Web service /BIC/CQZDS_WEB00001000 how to over come this?

    HI,
    Experts,
    I have created Web service source system by taking: target system BI and source system XI.
    After creation of Info objects i have created data source in RSA1 there will no error displayed while CHECK but while activating the data source it was displaying errors like:
    1) Error generating Web service /BIC/CQZDS_WEB00001000
    2) Error when activating DataSource ZDS_WEBSERVICE                BIDCLNT100
    what will be the reason for this error plezase provide me good idea or provide step by step web service scenarious.
    Thank you,
    Shabeer Ahmed.

    Hi
    Web AS 6.40 you can create a Web Service Proxy directly in Transaction SE80. Create a new package and right click on it. Choose Create -> Enterprise service / Web service -> Proxy object. Now you can choose how you want to provide the WSDL Source.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80fa3dff-ce76-2a10-3f94-f3df8f2db5a2

  • How to over come for an error 3014 occure during update of iphone 5

    ??????????

    Read Error 3014:
    This error occurs when iTunes is unable to reach gs.apple.com in a timely fashion. Follow the steps below inUnable to contact the iOS software update server gs.apple.com.

  • TS3694 how to over come from this error

    i can not able to start my i phone after i update my phone

    Where are you stucked in ? Any Error Message from iTunes ? What is shown on the iphone display?

  • How to over come De-Obfuscators?

    Hi,
    I have two questions.
    (i) I think in market there are some de-obfuscators. Basically what they do is de-obfuscate the code what you have obfuscated. Eventhough they are not upto the mark, in future they could manage to do it efficiently. Is there any way to avoid this practice.?
    (ii) How to obfuscate one distributed application?. i.e. Application which has JSP, Servlet, EJB and other Java components spreaded over few tiers.
    Thanks in Advance / Rajan Kumar

    Obfuscation is a one- way process. During obfuscation information is lost.
    class a
       private String a;
       public void a()
          System.out.println(a);
       public a()
          a = "Hello world!";
       public static void main(String[] a)
          a b = new a();
          b.a();
    }It is easy to reengineer the code above and make it more readable, but the meaning-full names are gone forever. If you have a complex set of classes, then you will realize that the meaning-full names are absolutely needed. So �de- obfuscation� is impossible.

  • How to over come jlaunch process High CPU utilization

    Hi ,
    I am facing problem in Poratal Production system
    Jlaunch process consuming more CPu utilization, Can you suggest me How to overcome this problem with out restart server
    regards,
    Balaram

    Hi,
    This is because of parameters of your J2ee engine are not optimized. Check SAP 723909 Java VM settings for J2EE 6.40/7.0 Prerequisite for performance optimization
    Thanks
    Sunny

  • Apple itunes has crashed with windows 8.1.how to over come this problem as the iphone in not recognised?

    is there any up date for Apple itunes for windows 8.1?

    There is an update as of today. Run your Apple Software Update program.

  • How to overcome Kill_process script error - 214721...

    User of your NOKIA 6300 phone having the current Software on phone ver 5.57 and I want to update the phone software to new one which is currently available. I am using Windows XP Service Pack 3 while installing the update software of Nokia I am getting the under mentioned error
    Kill_process script error - 2147217407
    How to over come this problem.
    /discussions/board/post?board.id=swupdate#

    Hi,
    welcome to forum.
    first read this carefully:
    http://europe.nokia.com/A4577229
    its about software update troubleshooting FAQ.
    if you couldnt solve your problem i will help you.
    NOKIA means:Night Of King In Alone

  • OLE or COM Processing error : Too many fields defined

    i have created a excel workbook  format in data integrator and defined the fields in it, when i tried to run a simple job extracting data from spreadsheet ,  i am getting following error OLE or COM Processing error : <Too many fields defined>.
    all i have in the spreadsheet is 18 rows and 35 columns of data, can any help how to solve this problem. i have used query transform for extracting and loading the data in to a table
    Edited by: Rakesh Chittineni on Apr 1, 2010 3:45 AM

    I have Solved the problem my friend suggestion.
    The excel file i was trying to access is from WEBI report which was saved as .xls format and then then made some modifications to the spreadsheet.
    What i did was i deleted the unused columns, i.e my spread sheet has data upto AQ column so i deleted remaining cells.
    and while  defining the  excel file format i selected the option workbook and selected the proper sheet and in the other options i have chosen column range and also check the box ( extended range) now i could over come the error OLE or COM processing error
    Edited by: Rakesh Chittineni on Apr 1, 2010 9:44 PM

  • How to avoid mutating error when insert or update record

    Hi ,
    I have one transaction table which is having some detail record under one transaction number, after the one transaction number is over by insert or update, i
    want to check the total amounts of one flag should be matched on same table if it is not then give error message. But i am getting mutating error on insert or update event trigger on statement level trigger on above table.
    Is there any other way to avoid mutating error to solve the above problem or some temp table concepts to be used. help me its urgent.
    Thanks in advance,
    Sachin Khaladkar
    Pune

    Sachin, here's as short of an example as I could come up with on the fly. The sample data is ficticious and for example only.
    Let's say I need to keep a table of items by category and my business rule states that the items in the table within each category must total to 100% at all times. So I want to insert rows and then make sure any category added sums to 100% or I will rollback the transation. I can't sum the rows in a row-level trigger because I'd have to query the table and it is mutating (in the middle of being changed by a transaction). Even if I could query it while it is mutating, there may be multiple rows in a category with not all yet inserted, so checking the sum after each row is not useful.
    So here I will create;
    1. the item table
    2. a package to hold my record collection (associative array) for the trigger code (the category is used as a key to the array; if I insert 3 rows for a given category, I only need to sum that category once, right?
    3. a before statement trigger to initialize the record collection (since package variables hang around for the entire database session, I need to clear the array before the start of every DML (INSERT in this case) statement against the item table)
    4. a before row trigger to collect categories being inserted
    5. an after statement trigger to validate my business rule
    I then insert some sample data so you can see how it works. Let me know if you have any questions about this.
    SQL> CREATE TABLE item_t
      2   (category  NUMBER(2)   NOT NULL
      3   ,item_code VARCHAR2(2) NOT NULL
      4   ,pct       NUMBER(3,2) NOT NULL);
    Table created.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE trg_pkg IS
      2    TYPE t_item_typ IS TABLE OF item_t.category%TYPE
      3      INDEX BY PLS_INTEGER;
      4    t_item       t_item_typ;
      5    t_empty_item t_item_typ;
      6  END trg_pkg;
      7  /
    Package created.
    SQL> SHOW ERRORS;
    No errors.
    SQL>
    SQL> CREATE OR REPLACE TRIGGER item_bs_trg
      2    BEFORE INSERT
      3    ON item_t
      4  BEGIN
      5    DBMS_OUTPUT.put_line('Initializing...');
      6    trg_pkg.t_item := trg_pkg.t_empty_item;
      7  END item_bs_trg;
      8  /
    Trigger created.
    SQL> SHOW ERRORS;
    No errors.
    SQL>
    SQL> CREATE OR REPLACE TRIGGER item_br_trg
      2    BEFORE INSERT
      3    ON item_t
      4    FOR EACH ROW
      5  BEGIN
      6    trg_pkg.t_item(:NEW.category) := :NEW.category;
      7    DBMS_OUTPUT.put_line('Inserted Item for Category: '||:NEW.category);
      8  END item_br_trg;
      9  /
    Trigger created.
    SQL> SHOW ERRORS;
    No errors.
    SQL>
    SQL> CREATE OR REPLACE TRIGGER item_as_trg
      2    AFTER INSERT
      3    ON item_t
      4  DECLARE
      5    CURSOR c_item (cp_category item_t.category%TYPE) IS
      6      SELECT SUM(pct) pct
      7        FROM item_t
      8       WHERE category = cp_category;
      9  BEGIN
    10    DBMS_OUTPUT.put_line('Verifying...');
    11    FOR i IN trg_pkg.t_item.FIRST..trg_pkg.t_item.LAST LOOP
    12      DBMS_OUTPUT.put_line('Checking Category: '||trg_pkg.t_item(i));
    13      FOR rec IN c_item(trg_pkg.t_item(i)) LOOP
    14        IF rec.pct != 1 THEN
    15          RAISE_APPLICATION_ERROR(-20001,'Category '||trg_pkg.t_item(i)||' total = '||rec.pct);
    16        END IF;
    17      END LOOP;
    18    END LOOP;
    19  END item_as_trg;
    20  /
    Trigger created.
    SQL> SHOW ERRORS;
    No errors.
    SQL> INSERT INTO item_t
      2    SELECT 1, 'AA', .3 FROM DUAL
      3    UNION ALL
      4    SELECT 2, 'AB', .6 FROM DUAL
      5    UNION ALL
      6    SELECT 1, 'AC', .2 FROM DUAL
      7    UNION ALL
      8    SELECT 3, 'AA',  1 FROM DUAL
      9    UNION ALL
    10    SELECT 1, 'AA', .5 FROM DUAL
    11    UNION ALL
    12    SELECT 2, 'AB', .4 FROM DUAL;
    Initializing...
    Inserted Item for Category: 1
    Inserted Item for Category: 2
    Inserted Item for Category: 1
    Inserted Item for Category: 3
    Inserted Item for Category: 1
    Inserted Item for Category: 2
    Verifying...
    Checking Category: 1
    Checking Category: 2
    Checking Category: 3
    6 rows created.
    SQL>
    SQL> SELECT * FROM item_t ORDER BY category, item_code, pct;
      CATEGORY IT        PCT
             1 AA         .3
             1 AA         .5
             1 AC         .2
             2 AB         .4
             2 AB         .6
             3 AA          1
    6 rows selected.
    SQL>
    SQL> INSERT INTO item_t
      2    SELECT 4, 'AB', .5 FROM DUAL
      3    UNION ALL
      4    SELECT 5, 'AC', .2 FROM DUAL
      5    UNION ALL
      6    SELECT 5, 'AA', .5 FROM DUAL
      7    UNION ALL
      8    SELECT 4, 'AB', .5 FROM DUAL
      9    UNION ALL
    10    SELECT 4, 'AC', .4 FROM DUAL;
    Initializing...
    Inserted Item for Category: 4
    Inserted Item for Category: 5
    Inserted Item for Category: 5
    Inserted Item for Category: 4
    Inserted Item for Category: 4
    Verifying...
    Checking Category: 4
    INSERT INTO item_t
    ERROR at line 1:
    ORA-20001: Category 4 total = 1.4
    ORA-06512: at "PNOSKO.ITEM_AS_TRG", line 12
    ORA-04088: error during execution of trigger 'PNOSKO.ITEM_AS_TRG'
    SQL>
    SQL> SELECT * FROM item_t ORDER BY category, item_code, pct;
      CATEGORY IT        PCT
             1 AA         .3
             1 AA         .5
             1 AC         .2
             2 AB         .4
             2 AB         .6
             3 AA          1
    6 rows selected.
    SQL>

  • How can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,-

    how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"

    It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.

  • My billing address is correct, but the i keep getting that my security code is incorrect and can't download apps.  I have re-entered all of my information in my account, but still get error message.  How to over-ride?

    My billing address is correct, but the i keep getting that my security code is incorrect and can't download apps.  I have re-entered all of my information in my account, but still get error message.  How to over-ride?

    If you have American Express, your 4-digit security code is on the front. If you have VISA or MasterCard, your 3-digit security code is outside the signature block on the back of your credit card. It happens to me also.

Maybe you are looking for

  • Preview app not working in Leopard

    Hi pals, I have just upgraded my Macbook (Tiger) to Leopard and updated with all necessary patches (10.5.2), but i am not able to launch preview which resulted in not able to launch all pictures and pdfs. When i double click on Preview (through Appln

  • About third party process

    hi friends, in third party order processing what is the need of creating purchase requisition, cant we create purchase order with out refrence to puchase requisition? Thanks and regards sudhakar

  • Error-33 building installer

    I am done with a project and I am trying to build an installer for it. I have not been successful. I have all the files needed inside the project.  I tested it and run the main Vis and there's no error.  But when Im trying to build the installer, I s

  • No accounting document generated during return delivery (PGR)

    Dear All, I am facing a problem during PGR, system generating Material document but accounting doc not generating. Message is Material document 4900014496 does not include an accounting document Message no. M7082 Thanks Manoj Topal

  • After installing 8.2 update i can't see the video on my favorite site dmax.it.why?.please help

    the video is mot charging i can go on the site dmax.it but the video is not working.i tried from my ipad mini retina and iphone and the problem persists.what can i do?is there an option to enable or disable or soma app to install?