What is meant by Mutating error

Hi friends,
i am getting mutating error,
how to overcome this problem.
thanking u.
hema

To over come its better follow
This package will contain yours rowid which is being insert of emp table
create or replace package state_pkg
as
type ridArray is table of rowid index by binary_integer;
newRows ridArray;
empty ridArray;
end;
This will flush or empty yours array wid empty one array cause there may be rowids
create or replace trigger emp_bi
before insert on emp
begin
state_pkg.newRows:=state_pkg.empty;
end;
This will move insert rows rowid in newRows array
create or replace trigger emp_ai
after insert on emp for each row
begin
state_pkg.newRows(state_pkg.newRows.count+1):=:new.rowid;
end;
This will backup yours data in empback which is being inserting in emp table note here at line 2 there is no for each row clause which means its statment level trigger and statment level trigger dont mutate because its fire at table level not for individaul rows.
create or replace trigger emp_aif
--> after insert on emp
begin
for i in 1..state_pkg.newRows.count
loop
insert into empback
select * from emp where rowid=state_pkg.newRows(i);
end loop;
end;
what this code does its just capture the rowids in a temp (newRows) array and then after getting insert records in table each row is fetching from emp table into empback on behalf of package array newRows (which contains rowid)
I hope u got it how to avoid mutate.
Khurram Siddiqui
[email protected]

Similar Messages

  • What is meant by costing key?

    Dear Experts ,
                          while releasing the billing document to accounts , i am getting  error like
                Valuation with material cost estimate: error, The system looked for the material cost estimate using costing key "002", as defined in the Customizing settings for CO-PA,  incomplete due to FI/CO interface
    what is meant by costing key?
    regards
    rajakarthik

    Hi,
    In Costing based Profitability analysis you define costing keys. A costing key is a set of access parameters which are used in valuation to determine which data in Product cost planning should be read. In the costing key you attach the costing variant.
    In the costing key you specify whether the system should read the current standard cost estimate, the previous standard cost estimate or the future standard cost estimate or a saved cost estimate.
    The configuration settings to determine this costing key is as follows:
    Assign costing keys to the products u2013 Three costing keys can be attached to a single product for a specific point of valuation, record type, plan version.
    Assign costing keys to Material types
    Assign costing keys to any characteristics u2013 You can use your own strategy to determine the costing keys. This is through user defined assignment tables.
    regards,
    Santosh kumar

  • What is meant by locking the audit statistics?

    Hi all,
    I am getting this error in the inbound IDoc ALEAUD "The Audit statistics for sending system E1Q100, receiver system QS1310 and message type ORDERS could not be locked." Status 51, What is meant by locking the Audit statistics?
    Thanks,
    Charles.

    It is basically trying to get a get a database lock on the table BDAUDSTATE to make your status updates but it was not able to.
    See if a lock exists on this table and remove it, or it may also be a case of stepping on the toes that two simultaneous updates are going for the same IDoc.
    It is basically a database lock error.

  • A SMALL EXAMPLE CODE FOR MUTATING ERROR

    create or replace trigger TRG_T1
    before insert on T1
    begin
    insert into T1 values(2);
    end;
    IF I TRY TO INSERT INTO T1 TABLE I GET A MUTATING ERROR HOW CAN I SOLVE??????

    joealexander wrote:
    create or replace trigger TRG_T1
    before insert on T1
    begin
    insert into T1 values(2);
    end;
    IF I TRY TO INSERT INTO T1 TABLE I GET A MUTATING ERROR HOW CAN I SOLVE??????
    No, you do NOT get a mutating table error. You get this:
    orcl112> create table t1(c1 number);
    Table created.
    Elapsed: 00:00:00.03
    orcl112> create or replace trigger TRG_T1
      2
      3  before insert on T1
      4
      5  begin
      6
      7  insert into T1 values(2);
      8
      9  end;
    10
    11  /
    Trigger created.
    Elapsed: 00:00:00.04
    orcl112> insert into t1 values (1);
    insert into t1 values (1)
    ERROR at line 1:
    ORA-00036: maximum number of recursive SQL levels (50) exceeded
    ORA-06512: at "SCOTT.TRG_T1", line 3
    ORA-04088: error during execution of trigger 'SCOTT.TRG_T1'
    ORA-06512: at "SCOTT.TRG_T1", line 3
    ORA-04088: error during execution of trigger 'SCOTT.TRG_T1'
    ORA-06512: at "SCOTT.TRG_T1", line 3
    ORA-04088: error during execution of trigger 'SCOTT.TRG_T1'
    ORA-06512: at "SCOTT.TRG_T1", line 3
    ORA-04088: error during execution of trigger 'SCOTT.TRG_T1'
    ORA-06512: at "SCOTT.TRG_T1", line 3
    ORA-04088: error during execution of trigger 'SCOTT.TRG_T1'
    You are the second person today who has claimed to have seen this error and posted code that did not raise it. What is going on?

  • Mutating error solution

    hi group
    prem here
    i am stillnot able to get the solution for mutating error.
    let me give u scenario
    before insert trigger -----on emp and in the trigger i select using the :new values , i get the mutating error,fine so far so good.
    when it comes to solution i am unable tomake out from the link which was given in one of the replies,
    can anyone pls in a simple words try to give a solution for:::::
    scenario before i insert into emp a record i need to check if there is no record present in the table
    solution ----
    after going thru few sites i could zero in to a simple solution
    1.creat a package variable store the :new variable
    2.create a procedure or function to test if record exists and pass yesy or no to the trigger and then take the decision
    also under what other cases do we get mutating errors
    pls look into this problem and give me a solution
    i hope it wll be of gr8 help to thers also
    regards
    prem

    http://asktom.oracle.com/pls/ask/f?p=4950:8:14402737568889680009::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:469621337269
    Rgds.

  • Mutating error in trigger

    Hi ,ihave created this trigger.its showing the mutating error as its selecting and updating the same table.So hw can we modify thsi trigger so that it worksd properly.
    CREATE OR REPLACE TRIGGER resolutionimpact
    AFTER INSERT OR UPDATE
    ON PROBLEMS
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    newcause VARCHAR2(100);
    oldcause VARCHAR2(10);
    BEGIN
    oldcause:=:OLD.PROM_NCCCAUSE;
    newcause:=:NEW.PROM_NCCCAUSE;
    IF newcause='100' THEN
    UPDATE PROBLEMS SET PROM_IMPACT='CA_TCL FLP reset';
    --PROM_IMPACT='CA_TCL FLP reset';
    END IF;
    END;

    No actually I am udating single row.Actually the value is being entered from the oracle form from front end and no matter whatever value we enter for prom_impact from front end it should overwrite that value with fixed value when we press the save button .Also we cannot do anything at form level as we have fmx and nt the fmb.So have to do it through trigger only.Also there is another trigger running on same table which fetches the value from problem table and inserts it into another table.So what can be done to solve the issue

  • What is meant by estimated costs and estimated rows in SQL explain (ST05)?

    Hi
    I was just wondering if someone could explain/clarify exactly what is meant by estimated costs and estimated rows in the 'explain' / execution path functionality of ST05.
    For example, we could see a SQL statement was very inefficient accessing a table:
    Estimated Costs = 6.006.615 , Estimated #Rows = 0
    Does this literally mean that for 6 million costs / reads / effort, 0 results were returned??
    Is this a ratio of efficiency?
    We built an appropriate index and now we have:
    Estimated Costs = 2 , Estimated #Rows = 1
    A lot better! The job was taking 40+ hours and being cancelled; now it takes 5 minutes. So a 3 million times improvement sounds realistic...
    However, we had another instance where the explain showed:
    ( Estim. Costs = 195.077 , Estim. #Rows = 538.660 )
    and we built an index, and now the explain is:
    ( Estimated Costs = 41.867 , Estimated #Rows = 538.660 )
    What exactly does this mean - as the costs has been reduced, but the rows is the same?
    Thanks
    Ross

    Hi Ross,
    >I was just wondering if someone could explain/clarify exactly what is meant by estimated costs and estimated rows in the >'explain' / execution path functionality of ST05
    Take a look at note 766349, point 20.
    >An EXPLAIN displays "Estimated Costs" and "Estimated Rows", which
    >are simply the CBO's calculation results (refer to Note 7550631).
    >Since these results are based upon a number of assumptions (column
    >values are distributed equally, statistics), and depend upon the
    >database parameter settings, the calculated costs and rows are
    >useful only within a margin for error. High "Estimated Costs" and
    >"Estimated Rows" are therefore neither a satisfactory nor a
    >necessary indication of an expensive SQL statement. Also, the
    >calculated costs have no actual effect upon the performance - the
    >deciding costs are always the actual ones, in the form of BUFFER
    >GETs, DISK READs, or processed rows.
    So the costs and rows are values conjured up by the cost optimizer when calculating the access path that is most likely to be efficient. THEY ARE ESTIMATES!!!
    >Does this literally mean that for 6 million costs / reads / effort, 0 results were returned??
    As per the above, no. The costs and rows are estimated before the rows are fetched so there are no actual results yet.
    >What exactly does this mean - as the costs has been reduced, but the rows is the same?
    An efficient database access is exactly that; reads only the blocks that contain the rows it needs and nothing else. If the access is inefficient it will spend time accessing blocks that contain no data that is eventually contained in the result set.
    This question would be better placed in the Oracle forum...
    Regards,
    Peter

  • What is meant by referential integrity

    hi
    what is meant by referential integrity

    Hi,
    Referential integrity is the property that guarantees that values from one column depend on values from another column. This property is enforced through integrity constraints.
    If you set this flag a check for referential integrity is performed for this InfoObject, against the master data table or ODS object. The InfoObject is checked for valid characteristic values.
    It is used when v r doing Flexi update...
    Prerequisites for checking for referential integrity:
    Data is updated flexibly
    You have activated error handling in the BW scheduler (Tab page Update)
    On the Update tab page in the BW scheduler, you have selected the option Always update data, even when no master data exists for the data.
    send ur id, i will send u screen shot of ref.integrity
    regards
    reena

  • What is meant by ECC,OSS notes

    Dear All Sap fico gurus,
    Pls let  me know the aberivation for ECC & what is meant by OSS notes & Significance of those notes.
    Thanks in advance

    ECC --  ERP Central Component
    OSS--  I guess it is Online service system(will check and get back)
    Hi,
    SAP Notes give you instructions on how to remove known errors from SAP Systems. They include a description of the symptoms, the cause of the error, and the SAP Release and Support Package level in which the error occurs.
    Depending on the type of error, an SAP Note may also include:
    • Workarounds
    • Descriptions of how to correct the source code (called correction instructions)
    • Links to Support Packages that solve the problem
    You can access SAP Notes both from the SAP Service Marketplace and SAP Net - R/3 Frontend.
    The Note Assistant can automatically implement only SAP Notes that have correction instructions.
    Read the SAP Note carefully before you use the Note Assistant to implement it. The SAP Note can contain prerequisites, interactions, and references to postprocessing activities (making changes to a table, for example) that you must take into consideration when you implement it.
    For more details go thru this link
    http://help.sap.com/saphelp_470/helpdata/EN/1c/2cee3957f7cd55e10000000a114084/content.htm

  • What is meant by 3tier

    difference between sap& erp.
    what is meant by 3tier architecture?what are advantages & disadvantages of 3tier.architecture.

    Hi,
    SAP means System Application n Products in Data Processing.First it was an MRP package ie; Material Resource Planning. Later they thought that SAP has mnay modules like SD,MM,PP,HR FI/CO etc..... So first its the work of the HR to get the project..Later we MM people they take care of the material .....n then finance like that it has formed an organization....From then it has changed from MRP package to ERP package.We have 31 ERP packages out of them we have people soft, seibles, Oracle Finanace,L . D Edward, BAAN,RAM Co, SAP-68% etc....
    In three Tire Architecture :
    It is mutually independent as well  as mutually independent.
    It consists of  Presentation layer, Application layer and Data base Layer.
    Presentation Layer is a Graphical user-interface.
    Application Layer deals with sales n distribution.
    Data base layer consists of all the data that is required for processing.
    The advantage in three tire arch is that even though if there is an error in one application module eg ; like in fi/co it does not effect the other application modules....so it is independent as well as dependent also....
    It is also called as a Client-Server Architecture.
    First is the Presentation Layer then comes Application Layer n then is the Data base Layer.
    Dialog Server acts like an Interface between Presentation Layer n Application Layer.
    Update Layer acts like an interface between Application Layer and data base layer.
    So these r the main points in SAP R/3 architecture.
    if useful reward with points,
    with regards,
    madhuri.

  • TS1436 I received this message twice on 2 new & separate attempts to burn a playlist to a NEW cd:  "The attempt to burn a disc failed.  The burn failed because of a medium write error."  What is a "medium write error" and how can I deal with this?

    I received this message twice on 2 new & separate attempts to burn a playlist to a NEW cd:  "The attempt to burn a disc failed.  The burn failed because of a medium write error."  What is a "medium write error" and how can I deal with this?

    Hello Pat,
    The following article provides troublehsooting steps and information that can help get iTunes burning discs again.
    Can't burn a CD in iTunes for Windows
    http://support.apple.com/kb/TS1436
    Cheers,
    Allen

  • Do you have any idea, what makes to fix this error in creating PO.

    The error is u201CDocument 101600 does not existu201D
    Do you have any idea, what makes to fix this error in creating PO.The error is u201CDocument 101600 does not existu201D  Here the 101600 is PO no.

    Hi
    Please check in t.code: RZ20 .
    You can find out the nature of this error
    Regards
    G.Ganesh Kumar

  • What does "ajax submit failed: error = 403, forbidden" mean when trying to sign up for eprint?

    what does "ajax submit failed: error = 403, forbidden" mean when trying to sign up for eprint?

    Hi,
    Please use different browser such as Firefox or Chrome and try again.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Dispute Case Key (Replicated) (0DPM_D10); what is meant by Replicated?

    Hi everyone,
    I am working on implementing FSCM Dispute Managment module. I have some questions regarding the new standard content provided by SAP for this:
    Earlier I have seen clients using the Stanadard InfoSet 0DPM_I0 for all the Dispute's reporting as it combines data from AR, Dispute Case key and 0Customer. But now I am seeing a bunch of new objects like 0DPM_M10, 0DPM_M20, 0DPM_C10, 0DPM_D10, 0DPM_DCAS_10 etc. provided by SAP as standard content.
    Does any one have any experience with this new content; can anyone explain me how this new content is useful. My client is reluctant against using the standard InfoSet as its is built on two DSO's; I have suggested to build a cube on top of them and can still use an InfoSet to combine AR line items, Disputes, Dispute case key and Customer. Correct me if I am wrong with thid statement.
    Also please let me know what is meant by a Replicated DSO.
    Any comments or suggestions will be greatly appreciated.
    Thanks & Regards,
    SRV

    There are a few things to consider:
         1) The data is stored in deserialized form until it is read. The first read will deserialize the data.
         2) There is some overhead per-entry. 750MB/(3,000,000-30) = ~250 bytes per entry. Some portion of this is attributable to the per-entry overhead.
         3) How did you measure memory usage? Usually invoking <tt>System.gc()</tt> before measuring heap usage will clear garbage but is not guaranteed.
         Jon Purdy
         Oracle

  • What is meant by criteria of Updateability in MDM Import manager

    Hi,
    What is meant by criteria of Updateability in MDM Import manager? i read some information, but i could understand, it says original data source be  updateble. what is meant by Original data source.?
    what is the use of option "Read-only"  in Import manager logon screen.
    Thanks

    Hello Ankam,
    You can check the Read-only option to prevent MDM from updating your data source.
    Kindly see the below information on "DATA SOURCE UPDATES"
    DATA SOURCE UPDATES
    Some MDM Import Manager operations require that the original data source be updateable, thereby allowing new fields and/or entire new tables u2013 and the corresponding data values for each record u2013 to be automatically added to the data source before further processing.
    Other operations simply create virtual fields in the MDM Import Manageru2019s workspace, although if the data source happens to be updateable, some of these operations instead add the new fields to the original data source as well.
    NOTE ►► Updating the data source when possible allows you to
    perform additional operations on the new fields as if they were part of
    the original source data, and also use them as record matching fields.
    NOTE ►► Fields that are added only if the data source is updateable
    can be deleted automatically by the MDM Import Manager when you
    exit or switch data sources based on the setting of the Delete Created
    Fields on Exit configuration option.
    Updateable Data Sources
    Whether or not a data source is updateable depends upon the following:
    u2022 Source type. The source Type must permit the MDM Import Manager to update its schema and insert the additional fields of data; some supported types are updateable and some are not.
    u2022 Media. The media on which the data source resides must itself be updateable. If the media on which the data source resides is readonly, such as a CD-ROM, the data source cannot be updated.
    u2022 Permissions. You must have the proper file system permissions to update the file, or the proper DBMS permissions to update the schema of the database.
    u2022 Read-only option. You cannot have checked the Read-Only option, which prevents MDM from updating the data source even if the other conditions would otherwise permit it.
    NOTE ►► The Read-Only option is: (1) enabled for source types that
    can be updated (Access, Oracle, SQL Server, and XML); (2) disabled
    and unchecked for those that use Access as an updateable staging
    area (Delimited Text and Fixed Text); and (3) disabled and checked for
    those that cannot be updated (Excel and ODBC).
    NOTE ►► When the data source is SQL Server, the table names in
    the database must not contain spaces; otherwise any operation that
    would update the data source will fail.
    Hope this helps.
    Regards,
    Vikas

Maybe you are looking for