Help with unique constraint ERROR!!!

This error occurs after invoking a Stored Procedure program. When it tries to insert, the PK table goes beserk:
ORA-00001: unique constraint (HASUNI.THA_OTHER_ACTIVITY_PK) violated
ORA-06512: at "HASUNI.POPULATE_GDW_ACTIVITY", line 203
ORA-06512: at "HASUNI.GDW_MASTER", line 21
ORA-06512: at line 9
I tried to clear the PK table to get past the unique constraint error, but I can't seem to delete contents.
PLEASE HELP!!!!

The other queries are erroring out. It doesn't like the HASUNI.THA_OTHER_ACTIVITY_PK. It says this is an undefined table.
Insert Statement:
INSERT INTO HASUNI.THA_OTHER_ACTIVITY <-- line 203
SELECT
viewActivity.GROUPID,
SUBSTR(viewActivity.MEMBERID,11,9)||SUBSTR(viewActivity.MEMBERID,21,9),
viewActivity.ACTIVITYSEQUENCE,
val_first_day,
TO_DATE('31DEC9999'),
viewActivity.PRODUCTID,
viewActivity.PRODPLANTYPE,
SUBSTR(viewActivity.MEMBERID,11,9),
SUBSTR(viewActivity.MEMBERID,21,9),
viewActivity.CLASSVAL,
viewActivity.PCC,
viewActivity.BRANCH,
viewActivity.ARC,
viewActivity.LOCATION,
viewActivity.MEMBERID,
viewActivity.DOB,
viewActivity.GENDER,
viewActivity.MEMBERSTATUS,
viewActivity.CHPNID,
viewActivity.SSN,
NULL,
NULL,
SUBSTR(viewActivity.ZIPCODE,1,5),
SUBSTR(viewActivity.ZIPCODE,7,4),
viewActivity.ST,
viewActivity.SOURCESYSTEMID,
viewActivity.SOURCE,
viewActivity.INITIATEDBY,
viewActivity.OUTCOMES,
viewActivity.OUTCOMESDATE,
viewActivity.INITACTDATE,
viewActivity.INITACTTAKEN,
viewActivity.INITACTTAKENDATE,
viewActivity.INITUSERID,
viewActivity.LASTMODUSRID,
viewActivity.LASTMODDATE,
'HAS',
val_last_day,
NULL
FROM
HASUNI.VW_GDW_ACTIVITY viewActivity,
HASUNI.HA_OUTREACH outreach
WHERE
viewActivity.MEMBERID IN (SELECT viewActivity.MEMBERID FROM HASUNI.VW_GDW_ACTIVITY viewActivity)
AND outreach.MMBR_ID = viewActivity.MEMBERID
AND viewActivity.INITACTTAKEN = 'OTHER'
AND (TRUNC(viewActivity.INITACTDATE) BETWEEN val_first_day AND val_last_day
OR (TRUNC(viewActivity.INITACTDATE) < val_first_day
AND TRUNC(viewActivity.LASTMODDATE) BETWEEN val_first_day AND val_last_day));

Similar Messages

  • PK with TIMESTAMP causes insert unique constraint error at DST switch

    Hi,
    I have a test that inserts rows in a table that has a TIMESTAMP in its PK.
    When inserting rows that cross over the November DST change, it tries to insert these dates:
    --- Sun Nov 02 02:00:00 EST 2008
    --- Sun Nov 02 01:00:00 EST 2008
    --- Sun Nov 02 01:00:00 EDT 2008
    This is the output of 3 different UTC dates. We can see that there are 2 x 1am, but they differ in their DST. They are really 3 different UTC dates.
    But I get this error:
    --- Expected error: ORA-00001: unique constraint (DDLTEST1.SYS_C00142622) violated
    But I can get around that error and can insert these same dates if I set my JVM to UTC. The inserts work so I suspect this to be a JDBC issue.
    I am using the Oracle Thin driver in a spring app:
    <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
    <property name="url" value="jdbc:oracle:thin:@localhost:db" />
    I can post the sample code but wonder if there is an obvious answer to this.
    Note that MySql had the same problem. I fixed it by specifying the UTC timezone in the connection string, like this:
    jdbc:mysql://[host]/[db]?useLegacyDatetimeCode=false&useTimezone=true&sessionVariables=time_zone='UTC'
    Any idea how to get around that problem without setting JVM to UTC ?
    Claude
    Edited by: user2678899 on 10 juin 2009 10:09
    I removed #2 work around which was wrong
    Edited by: user2678899 on 10 juin 2009 10:23

    Timur Akhmadeev wrote:
    Hi,
    I suspect this to be a JDBC issue.Nope, this is your schema design gap. It breaks the main principle of PK: to uniquely identify a row in a table always. Your PK doesn't satisfy it, since it depends on client's settings.Why is setting the JVM to UTC working ? This is the part that confuses me.
    I create the 3 dates in Eastern time, then change the JVM default to UTC: the 3 inserts work.
    I create the 3 dates in Eastern time, then leave the JVM to Eastern time , the 3rd insert gets the unique constraint error.
    To me, the PK principle is not broken: these are 3 different UTC dates.

  • Unique Constraint Error at Apply side

    We have streams configured between two databases. Source database is of Version 9.2.0.3 and target database is of 9.2.0.4
    I have a table TEST with primary key PK_TEST on column A.
    Performed the following steps on the source database:
    Step1:
    insert into test values (1);
    1 row inserted.
    Total no of lcr's propagated : 1
    Step2:
    insert into test values (1);
    ORA-00001: unique constraint (TEST_USER.PK_TEST)violated.
    Total no of lcr's propagated : 1
    Step 3:
    Commit;
    Total no of lcr's propagated : 1
    On the source database, i have only one row in the TEST table but in the target schema iam getting "ORA-00001: unique constraint" error on applying the lcr's propagated from the source. If i remove the constraint from the target table then two rows are getting inserted in the target table rather only one rows should be inserted in the target table.
    Total 3 lcr's are propagated from source to target. For Step2, 2 lcr's should be propagated but only one is propagating.
    It looks strange but this is what happening in our environment. Has anyone faced this problem before? Please let me know how to solve this problem.

    Hi,
    I believe your problem is with the transaction.
    1) First you insert a row
    2) you try to insert it again, it fails
    3) you commit your work
    When propagated to your destination, the transaction does not commit because it failed in the second.
    Try inserting, commit and inserting again. It should work that way. Or else you may need to write an error handler to ignore ORA-0001 errors and commit (which I don't think it is good practice).
    Hope this helps,

  • MView refresh error on 10gR2..(unique constraint error)

    Hi. all.
    The database is 2-node RAC 10gR2 on SunOS.
    Today morining, I got the following error.
    EXEC dbms_refresh.refresh('"ODSFAB"."CURRENTWIP"');
    ORA-12008: error in materialized view refresh path
    ORA-00001: unique constraint (ODSFAB.CURRENTWIP_GLASS_IDX) violated
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2254
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2460
    ORA-06512: at "SYS.DBMS_IREFRESH", line 683
    ORA-06512: at "SYS.DBMS_REFRESH", line 195
    ORA-06512: at line 1
    I checked both the source and target table, but there is no unique-key confliction.
    The source table has no unique index, but the target table have one unique index
    for a business purpose.
    Finally, I dropped the miew log on a source table and mview , and recreated mview
    log and mview with the same unique constraint and the same data.
    I do not understand why I got "Unique constraint error".
    Any advice will be welcomed.
    Thanks in advance.
    Have a good day.
    Best Regards.
    Message was edited by:
    user507290

    Let us say column A is the unique key on target DB and exists in source DB.
    Now, on source DB,
    - Value 'X' is inserted in col A
    - Value "X" is again inserted in col A (or updated on colA)
    - Then one of these 2 rows is deleted
    Now, "if" Oracle applies all the transactions from the source to target in the
    same sequence as they occured, there is chance you can get unique error.you do
    But, if a full refresh, there won't be error.I would say that is a very plausible explanation. Somewhat difficult to verify, in the absence of low-level auditing on the source database.
    The situation as described is a bit yucky. Is there no way of putting a unique key on the table in the source database? If not, it seems to me that this scenario is bound to re-occur.
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • Toplink 10.1.3.1 Unique Constraint error

    Hi All,
    I'm working with toplink 10.1.3.1 using JDeveloper 10.1.3.1.
    When I'm using the Sequence in the toplink work bench, I'm getting the unique constraint error.
    What i did was, I checked the "Use sequencing" check box and filled the sequence name , table name and field in the toplink workbench wizard.
    And I kept true for "Use Native Sequencing" in the sequence of login tab for sessions.xml default file. And checked the preallocation Size and set to the minimum value of the sequence. I didn't checked the "Table", "Name Field" and "Counter Field" check boxes.
    The sequence is getting incremented for every execution. Its not getting the actual sequence current value. I don't know whether the value is getting cached.
    for example if the actual sequence number in the database is 1740
    but when I am running the toplink query It is generating the sequence number like 1738 and it is giving the Unique constraint when I am clicking on the button for three times (ie 1739,1740,1741)it is inserting successfully into the database.
    But when I am running the application again then it is generating the sequence number as 1739 I am unable to understand where I am going wrong.
    If I test The sequence in SQL Work Sheet it was working fine.
    could anyone suggest me the correct way of using the sequence in the toplink workbench.
    the Sequence was created using JDeveloper wizard with Increment 1.
    Thanks in advance,
    regards,
    Satish Dasari.

    Hi,
    Satish,Thanks for your reply.
    Let me tell the scenario. I have two tables A and B. First I am inserting an event_no in table A. and after that I read the data from table A including event_no and I am going to insert it into table B. Rarely I am getting an exception like Unique constraint violation error.
    I kept native sequencing true,preallocation size 1, Min value=1, Max-value=9999999, increment by 1, cache size=10, Enabled refresh only if new version.
    What are all the values that i need to be changed in order to recover from this error. Our application is running in a load balancing environment.
    Note: I am not able to simulate this in my desktop environment.
    Regards,
    P.Prasanna.

  • ORA-00001: unique constraint error..

    Hi There,
    We were trying to do an insert when we started having ORA-00001: unique constraint error.. to speed our testing we decided to disable all the constraints on the table; however we still having the same issue.
    How can we resolve this please.
    SQL> select constraint_name,constraint_type,status from dba_constraints where table_name='MEMBER_LATEST';
    CONSTRAINT_NAME                C STATUS
    MEMBER_LATEST_PK               P DISABLED
    SYS_C0017577                   C DISABLED
    SYS_C0017576                   C DISABLED
    SYS_C0017575                   C DISABLED
    SYS_C0017574                   C DISABLED
    SYS_C0017573                   C DISABLED
    SYS_C0017572                   C DISABLED
    SYS_C0017571                   C DISABLED
    SYS_C0017570                   C DISABLED
    MEMBER_LATEST_FK               R DISABLED
    10 rows selected.
    SQL>
    SQL>
    SQL>     INSERT INTO MEMBER_LATEST (DIS_ID, TIMESTAMP, LAST_NAME, FIRST_NAME, MIDDLE_NAME, DIS_COUNT)
      2    SELECT DIS_ID, 'TEST', LAST_NAME, FIRST_NAME, MIDDLE_NAME, 0
      3    FROM MV_DIS_MEM, MV_DIS_COUNT
      4    WHERE MV_DIS_MEM.P_CODE =  MV_DIS_COUNT.P_CODE
      5    ORDER BY 1,3,4;
        INSERT INTO MEMSCH.MEMBER_LATEST (DIS_ID, TIMESTAMP, LAST_NAME, FIRST_NAME,
    ERROR at line 1:
    ORA-00001: unique constraint (MEMSCH.MEMBER_LATEST_PK) violated
    SQL>Anything else we can do please?
    Thanks

    rsar001 wrote:
    but isn't the unique index constraint part of the disabled constraints on the table as shown above?Not if index used by PK was created separately prior to PK:
    SQL> create table emp1 as select * from emp;
    Table created.
    SQL> alter table emp1
      2  add constraint emp1_pk
      3  primary key(empno);
    Table altered.
    SQL> insert into emp1 select * from emp;
    insert into emp1 select * from emp
    ERROR at line 1:
    ORA-00001: unique constraint (SCOTT.EMP1_PK) violated
    SQL> alter table emp1 disable primary key;
    Table altered.
    SQL> insert into emp1 select * from emp;
    14 rows created.
    SQL> rollback;
    Rollback complete.
    SQL> alter table emp1 drop primary key;
    Table altered.
    SQL> create unique index emp1_pk on emp1(empno);
    Index created.
    SQL> alter table emp1
      2  add constraint emp1_pk
      3  primary key(empno)
      4  using index emp1_pk;
    Table altered.
    SQL> insert into emp1 select * from emp;
    insert into emp1 select * from emp
    ERROR at line 1:
    ORA-00001: unique constraint (SCOTT.EMP1_PK) violated
    SQL> alter table emp1 disable primary key;
    Table altered.
    SQL> insert into emp1 select * from emp;
    insert into emp1 select * from emp
    ERROR at line 1:
    ORA-00001: unique constraint (SCOTT.EMP1_PK) violated
    SQL> But by dropping index you are simply delaying the issue. Yes, you will be able to insert, but what's then? You will not be able to recreate PK - same violation error will be raised.
    SY.

  • Unique constraint error on delete/insert

    Hi,
    I am using Jdeveloper 11.1.1.3.0. I have a ADF table where we can copy lines and delete lines. I get unique constraint error when I save. Looks like the insert operation in happening before the delete operation. Is there a way to set the execution order so that the logical behaviour is delete/update/insert.
    Thanks
    SV

    Hi,
    The unquie contraint is not from the primary key. There are three columns in the table (batch_id, line_number, line_type) which must be unique. In the UI, the user can delete lines, update lines and add lines and finally click the save button that does the commit. On delete the line_number gets re-numbered. So when committing, the unique error occurs because the line number already exists. Looks like insert is happening before update/delete. I cannot do commit after each delete/update/insert. I have to do it only if the user clicks the save button in the end. Is there a way to control the order of execution?
    SR

  • I need help with this code error "unreachable statement"

    the error_
    F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
    int index;
    ^
    F:\Java\Projects\Tools.java:71: missing return statement
    }//end delete method
    ^
    F:\Java\Projects\Tools.java:86: missing return statement
    }//end getrecod
    ^
    3 errors
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    public class Tools//tool class
    private int numberOfToolItems;
    private ToolItems[] toolArray = new ToolItems[10];
    public Tools()//array of tool
    numberOfToolItems = 0;
    for(int i = 0; i < toolArray.length; i++)//for loop to create the array tools
    toolArray[i] = new ToolItems();
    }//end for loop
    }//end of array of tools
    public int search(int id)//search mehtod
    int index = 0;
    while (index < numberOfToolItems)//while and if loop search
    if(toolArray[index].getID() == id)
    return index;
    else
    index ++;
    }//en while and if loop
    return -1;
    }//end search method
    public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
    if(numberOfToolItems >= toolArray.length)
    return 0;
    int index;
    index = search(id); <-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------HERE
    if (index == -1)
    toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
    numberInStock ++;
    return 1;
    }//end if index
    }//end if toolitem array
    return -1;
    }//end insert method
    public int delete(/*int id*/)//delete method
    }//end delete method
    public void display()//display method
    for(int i = 0; i < numberOfToolItems; i++)
    //toolArray.display(g,y,x);
    }//end display method
    public String getRecord(int i)//get record method
    // return toolArray[i].getName()+ "ID: "+toolArray[i].getID()
    }//end getrecod
    }//end class
    Edited by: ladsoftware on Oct 9, 2009 6:08 AM
    Edited by: ladsoftware on Oct 9, 2009 6:09 AM
    Edited by: ladsoftware on Oct 9, 2009 6:10 AM
    Edited by: ladsoftware on Oct 9, 2009 6:11 AM

    ladsoftware wrote:
    Subject: Re: I need help with this code error "unreachable statement"
    F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
    int index;
    ^
    F:\Java\Projects\Tools.java:71: missing return statement
    }//end delete method
    ^
    F:\Java\Projects\Tools.java:86: missing return statement
    }//end getrecod
    ^
    3 errorsThe compiler is telling you exactly what the problems are:
    public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
    if(numberOfToolItems >= toolArray.length)
    return 0; // <<== HERE you return, so everyting in the if block after this is unreachable
    int index;
    index = search(id);  //< -----------------------------------------------------------------------------------------------------------------HERE
    if (index == -1)
    toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
    numberInStock ++;
    return 1;
    }//end if index
    }//end if toolitem array
    return -1;
    }//end insert method
    public int delete(/*int id*/)//delete method
    // <<== HERE where is the return statement?
    }//end delete method
    public String getRecord(int i)//get record method
    // return toolArray.getName()+ "ID: "+toolArray[i].getID() <<== HERE you commented out the return statement
    }//end getrecod
    }//end class

  • Please, could you help with The System Error?

    Hi guys,
    Please could someone help me with The system error: The Parameter is incorrect? which appears on the screen when I open Adobe Photoshop?
    It is Starter edition3.0 and so far it worked ok and suddenly this message haunts my screen. If I clic OK, whole application disappears. I tried hundred times and checked it is 5.1.2600 and my notebook has got Windows XP Profesional.
    Any advice hunging around?
    ThaaankxJ

    Thank you mark, I'll try.
    J
    Date: Fri, 18 Mar 2011 17:17:20 -0600
    From: [email protected]
    To: [email protected]
    Subject: Please, could you help with The System Error?
    Hi orion,
    Sorry that was the impression made by the support agent. If the version of the software that you have is 3.0 or 3.2, then the catalog can be upgraded when you run the trial version of Photoshop Elements. Version 8 had no time limitations, not sure if version 9 will timeout after 30 days or not.
    Just install, and when you launch, Elements will automatically convert the catalog to a format that it can read.
    -Mark
    >

  • Table with unique Constraint

    Dear All
    i have a a project ADF-BC / JSF - JDeveloper 11.1.2.3.0 latest, and i have EO contains PK constrain in db in 2 fields (userid & Roleid) and i implemented bundle to handle error message with jbo error code and it works fine in AM test
    and i have VO contains LOV in one attribute of this unique constrain columns (Roleid), now i dropped VO in jsf page as a af:table as below with input text with list of values for roleid and auto submit = true , and i face unexpected behavior from lov attribute in case of entering repeated value ..
    when i enter another repeated value , it give me error message i created in the bundle and everything ok until now
    but when i tab out of input text with list of values , it go back to old value as may be validation fired in back ground , it is not a problem until now
    when i try to make anything else, he still gives me error message of duplicated key
    i change the value again to correct value to avoid duplication error message , i am surprised , still i get the error message and shows me the repeated value again !!
    simply it still save the old repeated value however i corrected , please any one help me to know what is happening and how to solve ?
    Attribute in EO :
    <Attribute
    Name="RoleId"
    Precision="10"
    ColumnName="ROLE_ID"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="USER_ROLES"
    PrimaryKey="true">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="10"/>
    </DesignTime>
    <validation:ExistsValidationBean
    Name="RoleId_Rule_1"
    ResId="CS.model.BC.EO.UserRolesEO.RoleId_Rule_1"
    OperandType="EO"
    AssocName="CS.model.BC.ASS.UsersRolesFk2ASS"/>
    </Attribute>
    Interface af : table
    <af:table value="#{bindings.UserRoles2.collectionModel}" var="row"
    rows="#{bindings.UserRoles2.rangeSize}"
    emptyText="#{bindings.UserRoles2.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.UserRoles2.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.UserRoles2Query.queryDescriptor}"
    queryListener="#{bindings.UserRoles2Query.processQuery}"
    filterVisible="true" varStatus="vs"
    selectedRowKeys="#{bindings.UserRoles2.collectionModel.selectedRow}"
    selectionListener="#{bindings.UserRoles2.collectionModel.makeCurrent}"
    rowSelection="single" id="t1" columnSelection="none"
    columnStretching="column:c3">
    <af:column sortProperty="#{bindings.UserRoles2.hints.RoleId.name}"
    filterable="true" sortable="true"
    headerText="#{bindings.UserRoles2.hints.RoleId.label}"
    id="c2">
    <af:inputListOfValues id="roleIdId"
    popupTitle="Search and Select: #{bindings.UserRoles2.hints.RoleId.label}"
    value="#{row.bindings.RoleId.inputValue}"
    model="#{row.bindings.RoleId.listOfValuesModel}"
    required="#{bindings.UserRoles2.hints.RoleId.mandatory}"
    columns="#{bindings.UserRoles2.hints.RoleId.displayWidth}"
    shortDesc="#{bindings.UserRoles2.hints.RoleId.tooltip}"
    autoSubmit="true" editMode="select">
    <f:validator binding="#{row.bindings.RoleId.validator}"/>
    </af:inputListOfValues>
    </af:column>
    <af:column sortProperty="#{bindings.UserRoles2.hints.RoleName.name}"
    sortable="true"
    headerText="#{bindings.UserRoles2.hints.RoleName.label}"
    id="c3">
    <af:outputFormatted value="#{row.bindings.RoleName.inputValue}"
    id="of7" partialTriggers="roleIdId"/>
    </af:column>
    <af:column sortProperty="#{bindings.UserRoles2.hints.Active.name}"
    filterable="true" sortable="true"
    headerText="#{bindings.UserRoles2.hints.Active.label}"
    id="c4">
    <af:outputFormatted value="#{row.bindings.Active.inputValue}"
    id="of8" partialTriggers="roleIdId"/>
    </af:column>
    </af:table>
    Edited by: user8854969 on Oct 7, 2012 1:34 PM
    Edited by: user8854969 on Oct 7, 2012 2:16 PM

    I believe there is a little confusion here. The error I am encountering has to do with a unique constraint violation and not a foreign key constraint. If I have the data:
    PK FK sequence
    1 5 1
    2 5 2
    3 5 3
    with a unique constraint on (FK, sequence) and want to change it to:
    PK FK sequence
    1 5 1
    4 5 2 --insert
    2 5 3 --update on sequence
    3 5 4 --update on sequence
    I am currently getting a unique constraint violation because the insert is issued before the updates, and the updates alone cause problems because they are issued out of order (i.e. if I do the shifting operation without the insertion of a new record).

  • Unique constraint ERROR How to update the task order customly?

    I am using DAC to load data from Siebel database into Oracle Business Analytic Data Warehouse for BI Apps. Now we encounter a question. I need some help.
    When I run current execute plan, the Custom_shyy_SIL_ActivityFact is failured.Beause the *'unique constraint (SHYY_OLAP_DEV.W_ACTIVITY_F_U1) violated'* ORA_00001 ERROR. I analyse this question.At last, I think this question is caused with some below reason.
    My custom execute plan include some Update Dimension from Dimension tasks. They are SIL_EmployeeDimension_SCDUpdate and SIL_ProductDimension_SCDUpdate and so no. that tasks that marked Update Dimension from Dimension run before the Custom_shyy_SIL_ActivityFact. And, in the w_product_d one integration_id corresponding with two records, but the curent_flag ='Y' recored is only. Now ,I Think the SDCU Task is run before the Load fact tack. I discoved it does't work. please help me !

    Hey
    When Doing a full Load through DAC it drops all the unique indexes and then inserts the data and recreates the indexes again.The Index Creation fails if there are duplicate rows (Rows with same integration_id).
    So start Checking the Data right from the Source Level.
    First check the Source (do this using the integration_id thats repeating,Go through the informatica Mappings(ETL Mappings).
    If its Fine there Come to the Staging Level and Check for Duplicate Columns.
    Then Check in the final Table for Duplicate records.
    My Guess is that you are having duplicate rows at the Source level.
    If your are using informatica try using distinct for the SQL in the Source Qualifier(think that should block any duplicate records).
    Update here If you are able to solve this.
    Thanks
    Hemanth

  • SIL_GLCOGSFact Failed with Unique Constraint

    Hi,
    A Task SIL_GLCOGSFact failed with ORA-00001: unique constraint (DW.W_GL_COGS_F_U1) violated
    while insert into table W_GL_COGS_F.
    There is not any record existing in the fact table. There is no way for such error. So weird.
    Please help me out.
    Roger
    Error in Session log as following:
    Database driver error...
    Function Name : Execute
    SQL Stmt : INSERT INTO W_GL_COGS_F(GL_ACCOUNT_WID,BUDGT_ORG_WID,CUSTOMER_WID,CUSTOMER_FIN_PROFL_WID,TERRITORY_WID,SALES_GROUP_ORG_WID,CUSTOMER_CONTACT_WID,CUSTOMER_SOLD_TO_LOC_WID,CUSTOMER_SHIP_TO_LOC_WID,CUSTOMER_BILL_TO_LOC_WID,CUSTOMER_PAYER_LOC_WID,SUPPLIER_WID,SUPPLIER_ACCOUNT_WID,SALES_REP_WID,SERVICE_REP_WID,ACCOUNT_REP_WID,PRODUCT_WID,SALES_PRODUCT_WID,INVENTORY_PRODUCT_WID,SUPPLIER_PRODUCT_WID,COMPANY_LOC_WID,PLANT_LOC_WID,SALES_OFC_LOC_WID,LEDGER_WID,COMPANY_ORG_WID,BUSN_AREA_ORG_WID,CTRL_AREA_ORG_WID,FIN_AREA_ORG_WID,SALES_ORG_WID,PURCH_ORG_WID,ISSUE_ORG_WID,DOC_TYPE_WID,CLRNG_DOC_TYPE_WID,POSTING_TYPE_WID,CLR_POST_TYPE_WID,COST_CENTER_WID,PROFIT_CENTER_WID,BANK_WID,PAY_TERMS_WID,TRANSACTION_DT_WID,TRANSACTION_TM_WID,CONVERSION_DT_WID,ORDERED_ON_DT_WID,INVOICED_ON_DT_WID,DELIVERED_ON_DT_WID,CUSTOMER_REQUEST_DT_WID,GOODS_ISSUE_DT_WID,STOCK_XFER_DT_WID,CLEARING_DOC_DT_WID,BASELINE_DT_WID,PLANNING_DT_WID,ACCOUNT_DOC_ID,COGS_DOC_AMT,COGS_LOC_AMT,XACT_QTY,UOM_CODE,DB_CR_IND,ACCT_DOC_NUM,ACCT_DOC_ITEM,ACCT_DOC_SUB_ITEM,CLEARING_DOC_NUM,CLEARING_DOC_ITEM,SALES_ORDER_NUM,SALES_ORDER_ITEM,SALES_SCH_LINE,INVOICE_NUM,INVOICE_ITEM,DELIVERY_DOC_NUM,DELIVERY_DOC_ITEM,GI_DOC_NUM,GI_DOC_ITEM,STO_DOC_NUM,STO_DOC_ITEM,DOC_HEADER_TEXT,LINE_ITEM_TEXT,ALLOCATION_NUM,FED_BALANCE_ID,BALANCE_ID,DOC_STATUS_WID,POSTED_ON_DT_WID,POSTED_ON_TM_WID,CLEARED_ON_DT_WID,GL_RECONCILED_ON_DT,DOC_CURR_CODE,LOC_CURR_CODE,LOC_EXCHANGE_RATE,GLOBAL1_EXCHANGE_RATE,GLOBAL2_EXCHANGE_RATE,GLOBAL3_EXCHANGE_RATE,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,DELETE_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,TENANT_ID,X_CUSTOM,GL_RECONCILED_ON_PROC_WID) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
    Database driver error...
    Function Name : Execute Multiple
    SQL Stmt : INSERT INTO W_GL_COGS_F(GL_ACCOUNT_WID,BUDGT_ORG_WID,CUSTOMER_WID,CUSTOMER_FIN_PROFL_WID,TERRITORY_WID,SALES_GROUP_ORG_WID,CUSTOMER_CONTACT_WID,CUSTOMER_SOLD_TO_LOC_WID,CUSTOMER_SHIP_TO_LOC_WID,CUSTOMER_BILL_TO_LOC_WID,CUSTOMER_PAYER_LOC_WID,SUPPLIER_WID,SUPPLIER_ACCOUNT_WID,SALES_REP_WID,SERVICE_REP_WID,ACCOUNT_REP_WID,PRODUCT_WID,SALES_PRODUCT_WID,INVENTORY_PRODUCT_WID,SUPPLIER_PRODUCT_WID,COMPANY_LOC_WID,PLANT_LOC_WID,SALES_OFC_LOC_WID,LEDGER_WID,COMPANY_ORG_WID,BUSN_AREA_ORG_WID,CTRL_AREA_ORG_WID,FIN_AREA_ORG_WID,SALES_ORG_WID,PURCH_ORG_WID,ISSUE_ORG_WID,DOC_TYPE_WID,CLRNG_DOC_TYPE_WID,POSTING_TYPE_WID,CLR_POST_TYPE_WID,COST_CENTER_WID,PROFIT_CENTER_WID,BANK_WID,PAY_TERMS_WID,TRANSACTION_DT_WID,TRANSACTION_TM_WID,CONVERSION_DT_WID,ORDERED_ON_DT_WID,INVOICED_ON_DT_WID,DELIVERED_ON_DT_WID,CUSTOMER_REQUEST_DT_WID,GOODS_ISSUE_DT_WID,STOCK_XFER_DT_WID,CLEARING_DOC_DT_WID,BASELINE_DT_WID,PLANNING_DT_WID,ACCOUNT_DOC_ID,COGS_DOC_AMT,COGS_LOC_AMT,XACT_QTY,UOM_CODE,DB_CR_IND,ACCT_DOC_NUM,ACCT_DOC_ITEM,ACCT_DOC_SUB_ITEM,CLEARING_DOC_NUM,CLEARING_DOC_ITEM,SALES_ORDER_NUM,SALES_ORDER_ITEM,SALES_SCH_LINE,INVOICE_NUM,INVOICE_ITEM,DELIVERY_DOC_NUM,DELIVERY_DOC_ITEM,GI_DOC_NUM,GI_DOC_ITEM,STO_DOC_NUM,STO_DOC_ITEM,DOC_HEADER_TEXT,LINE_ITEM_TEXT,ALLOCATION_NUM,FED_BALANCE_ID,BALANCE_ID,DOC_STATUS_WID,POSTED_ON_DT_WID,POSTED_ON_TM_WID,CLEARED_ON_DT_WID,GL_RECONCILED_ON_DT,DOC_CURR_CODE,LOC_CURR_CODE,LOC_EXCHANGE_RATE,GLOBAL1_EXCHANGE_RATE,GLOBAL2_EXCHANGE_RATE,GLOBAL3_EXCHANGE_RATE,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT,DELETE_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,TENANT_ID,X_CUSTOM,GL_RECONCILED_ON_PROC_WID) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
    WRITER_1_*_1> CMN_1761 Timestamp Event: [Tue Nov 17 18:50:31 2009]
    WRITER_1_*_1> WRT_8425 ERROR: Writer execution failed.
    WRITER_1_*_1> CMN_1761 Timestamp Event: [Tue Nov 17 18:50:31 2009]
    WRITER_1_*_1> WRT_8114
    Row # [1] in bad file
    WRITER_1_*_1> CMN_1053 : Rowdata: ( RowType=0(insert) Src Rowid=42 Targ Rowid=42
    GL_ACCOUNT_WID (GL_ACCOUNT_WID:Double:): "271134.0000000000"
    BUDGT_ORG_WID (BUDGT_ORG_WID:Double:): "0.00000000000000"
    CUSTOMER_WID (CUSTOMER_WID:Double:): "0.00000000000000"
    CUSTOMER_FIN_PROFL_WID (CUSTOMER_FIN_PROFL_WID:Double:): "0.00000000000000"
    TERRITORY_WID (TERRITORY_WID:Double:): "0.00000000000000"
    SALES_GROUP_ORG_WID (SALES_GROUP_ORG_WID:Double:): "0.00000000000000"
    CUSTOMER_CONTACT_WID (CUSTOMER_CONTACT_WID:Double:): "0.00000000000000"
    CUSTOMER_SOLD_TO_LOC_WID (CUSTOMER_SOLD_TO_LOC_WID:Double:): "0.00000000000000"
    CUSTOMER_SHIP_TO_LOC_WID (CUSTOMER_SHIP_TO_LOC_WID:Double:): "0.00000000000000"
    CUSTOMER_BILL_TO_LOC_WID (CUSTOMER_BILL_TO_LOC_WID:Double:): "0.00000000000000"
    CUSTOMER_PAYER_LOC_WID (CUSTOMER_PAYER_LOC_WID:Double:): "0.00000000000000"
    SUPPLIER_WID (SUPPLIER_WID:Double:): "0.00000000000000"
    SUPPLIER_ACCOUNT_WID (SUPPLIER_ACCOUNT_WID:Double:): "0.00000000000000"
    SALES_REP_WID (SALES_REP_WID:Double:): "0.00000000000000"
    SERVICE_REP_WID (SERVICE_REP_WID:Double:): "0.00000000000000"
    ACCOUNT_REP_WID (ACCOUNT_REP_WID:Double:): "0.00000000000000"
    PRODUCT_WID (PRODUCT_WID:Double:): "107667.0000000000"
    SALES_PRODUCT_WID (SALES_PRODUCT_WID:Double:): "5093039.000000000"
    INVENTORY_PRODUCT_WID (INVENTORY_PRODUCT_WID:Double:): "4376743.000000000"
    SUPPLIER_PRODUCT_WID (SUPPLIER_PRODUCT_WID:Double:): "0.00000000000000"
    COMPANY_LOC_WID (COMPANY_LOC_WID:Double:): "0.00000000000000"
    PLANT_LOC_WID (PLANT_LOC_WID:Double:): "2147.000000000000"
    SALES_OFC_LOC_WID (SALES_OFC_LOC_WID:Double:): "0.00000000000000"
    LEDGER_WID (LEDGER_WID:Double:): "2030.000000000000"
    COMPANY_ORG_WID (COMPANY_ORG_WID:Double:): "0.00000000000000"
    BUSN_AREA_ORG_WID (BUSN_AREA_ORG_WID:Double:): "0.00000000000000"
    CTRL_AREA_ORG_WID (CTRL_AREA_ORG_WID:Double:): "0.00000000000000"
    FIN_AREA_ORG_WID (FIN_AREA_ORG_WID:Double:): "0.00000000000000"
    SALES_ORG_WID (SALES_ORG_WID:Double:): "0.00000000000000"
    PURCH_ORG_WID (PURCH_ORG_WID:Double:): "0.00000000000000"
    ISSUE_ORG_WID (ISSUE_ORG_WID:Double:): "0.00000000000000"
    DOC_TYPE_WID (DOC_TYPE_WID:Double:): "6111.000000000000"
    CLRNG_DOC_TYPE_WID (CLRNG_DOC_TYPE_WID:Double:): "0.00000000000000"
    POSTING_TYPE_WID (POSTING_TYPE_WID:Double:): "0.00000000000000"
    CLR_POST_TYPE_WID (CLR_POST_TYPE_WID:Double:): "0.00000000000000"
    COST_CENTER_WID (COST_CENTER_WID:Double:): "3317.000000000000"
    PROFIT_CENTER_WID (PROFIT_CENTER_WID:Double:): "2025.000000000000"
    BANK_WID (BANK_WID:Double:): "0.00000000000000"
    PAY_TERMS_WID (PAY_TERMS_WID:Double:): "0.00000000000000"
    TRANSACTION_DT_WID (TRANSACTION_DT_WID:Double:): "20090211.00000000"
    TRANSACTION_TM_WID (TRANSACTION_TM_WID:Double:): "0.00000000000000"
    CONVERSION_DT_WID (CONVERSION_DT_WID:Double:): "0.00000000000000"
    ORDERED_ON_DT_WID (ORDERED_ON_DT_WID:Double:): "0.00000000000000"
    INVOICED_ON_DT_WID (INVOICED_ON_DT_WID:Double:): "0.00000000000000"
    DELIVERED_ON_DT_WID (DELIVERED_ON_DT_WID:Double:): "0.00000000000000"
    CUSTOMER_REQUEST_DT_WID (CUSTOMER_REQUEST_DT_WID:Double:): "0.00000000000000"
    GOODS_ISSUE_DT_WID (GOODS_ISSUE_DT_WID:Double:): "0.00000000000000"
    STOCK_XFER_DT_WID (STOCK_XFER_DT_WID:Double:): "0.00000000000000"
    CLEARING_DOC_DT_WID (CLEARING_DOC_DT_WID:Double:): "0.00000000000000"
    BASELINE_DT_WID (BASELINE_DT_WID:Double:): "0.00000000000000"
    PLANNING_DT_WID (PLANNING_DT_WID:Double:): "0.00000000000000"
    ACCOUNT_DOC_ID (ACCOUNT_DOC_ID:UniChar.80:): "2899322~12389~Feb-09~230"
    COGS_DOC_AMT (COGS_DOC_AMT:Double:): "30.00000000000000"
    COGS_LOC_AMT (COGS_LOC_AMT:Double:): "30.00000000000000"
    XACT_QTY (XACT_QTY:Double:): "1.000000000000000"
    UOM_CODE (UOM_CODE:UniChar.50:): ""
    DB_CR_IND (DB_CR_IND:UniChar.30:): "DEBIT"
    ACCT_DOC_NUM (ACCT_DOC_NUM:UniChar.30:): "(NULL)"
    ACCT_DOC_ITEM (ACCT_DOC_ITEM:Double:): "(NULL)"
    ACCT_DOC_SUB_ITEM (ACCT_DOC_SUB_ITEM:Double:): "(NULL)"
    CLEARING_DOC_NUM (CLEARING_DOC_NUM:UniChar.30:): "(NULL)"
    CLEARING_DOC_ITEM (CLEARING_DOC_ITEM:Double:): "(NULL)"
    SALES_ORDER_NUM (SALES_ORDER_NUM:UniChar.30:): "(NULL)"
    SALES_ORDER_ITEM (SALES_ORDER_ITEM:Double:): "(NULL)"
    SALES_SCH_LINE (SALES_SCH_LINE:Double:): "(NULL)"
    INVOICE_NUM (INVOICE_NUM:UniChar.30:): "(NULL)"
    INVOICE_ITEM (INVOICE_ITEM:Double:): "(NULL)"
    DELIVERY_DOC_NUM (DELIVERY_DOC_NUM:UniChar.30:): "(NULL)"
    DELIVERY_DOC_ITEM (DELIVERY_DOC_ITEM:Double:): "(NULL)"
    GI_DOC_NUM (GI_DOC_NUM:UniChar.30:): "(NULL)"
    GI_DOC_ITEM (GI_DOC_ITEM:Double:): "(NULL)"
    STO_DOC_NUM (STO_DOC_NUM:UniChar.30:): "(NULL)"
    STO_DOC_ITEM (STO_DOC_ITEM:Double:): "(NULL)"
    DOC_HEADER_TEXT (DOC_HEADER_TEXT:UniChar.255:): "(NULL)"
    LINE_ITEM_TEXT (LINE_ITEM_TEXT:UniChar.255:): "(NULL)"
    ALLOCATION_NUM (ALLOCATION_NUM:UniChar.30:): "(NULL)"
    FED_BALANCE_ID (FED_BALANCE_ID:UniChar.320:): "12389~10004~BUDGET~~10004~~"
    BALANCE_ID (BALANCE_ID:UniChar.320:): "10004~12389~"
    DOC_STATUS_WID (DOC_STATUS_WID:Double:): "102006.0000000000"
    POSTED_ON_DT_WID (POSTED_ON_DT_WID:Double:): "20090211.00000000"
    POSTED_ON_TM_WID (POSTED_ON_TM_WID:Double:): "20090211.00000000"
    CLEARED_ON_DT_WID (CLEARED_ON_DT_WID:Double:): "0.00000000000000"
    GL_RECONCILED_ON_DT (GL_RECONCILED_ON_DT:Date:): "(NULL)"
    DOC_CURR_CODE (DOC_CURR_CODE:UniChar.30:): "USD"
    LOC_CURR_CODE (LOC_CURR_CODE:UniChar.30:): "USD"
    LOC_EXCHANGE_RATE (LOC_EXCHANGE_RATE:Double:): "1.000000000000000"
    GLOBAL1_EXCHANGE_RATE (GLOBAL1_EXCHANGE_RATE:Double:): "1.000000000000000"
    GLOBAL2_EXCHANGE_RATE (GLOBAL2_EXCHANGE_RATE:Double:): "33.96700000000000"
    GLOBAL3_EXCHANGE_RATE (GLOBAL3_EXCHANGE_RATE:Double:): "1.000000000000000"
    CREATED_BY_WID (CREATED_BY_WID:Double:): "11254.00000000000"
    CHANGED_BY_WID (CHANGED_BY_WID:Double:): "11254.00000000000"
    CREATED_ON_DT (CREATED_ON_DT:Date:): "02/11/2009 14:56:23"
    CHANGED_ON_DT (CHANGED_ON_DT:Date:): "(NULL)"
    AUX1_CHANGED_ON_DT (AUX1_CHANGED_ON_DT:Date:): "02/11/2009 14:56:23"
    AUX2_CHANGED_ON_DT (AUX2_CHANGED_ON_DT:Date:): "(NULL)"
    AUX3_CHANGED_ON_DT (AUX3_CHANGED_ON_DT:Date:): "(NULL)"
    AUX4_CHANGED_ON_DT (AUX4_CHANGED_ON_DT:Date:): "(NULL)"
    DELETE_FLG (DELETE_FLG:UniChar.1:): "N"
    W_INSERT_DT (W_INSERT_DT:Date:): "11/17/2009 18:39:40"
    W_UPDATE_DT (W_UPDATE_DT:Date:): "11/17/2009 18:39:40"
    DATASOURCE_NUM_ID (DATASOURCE_NUM_ID:Double:): "41.00000000000000"
    ETL_PROC_WID (ETL_PROC_WID:Double:): "16.00000000000000"
    INTEGRATION_ID (INTEGRATION_ID:UniChar.80:): "46214900~12389~2899322~Feb-09~230"
    TENANT_ID (TENANT_ID:UniChar.80:): "DEFAULT"
    X_CUSTOM (X_CUSTOM:UniChar.10:): "(NULL)"
    GL_RECONCILED_ON_PROC_WID (GL_RECONCILED_ON_PROC_WID:Double:): "(NULL)"
    )

    ETL will do a commit for every 10k records i believe. Might be when it is trying to insert the first 10k records it is having the duplicates. So check in the staging table whether that unique column combination is having any duplicates.

  • ORA-00001 UNIQUE CONSTRAINT ERROR ON SYS.WRH$_SQLTEXT_PK?

    /u01/app/oracle/admin/bill02/bdump/bill02_m000_10074.trc
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    ORACLE_HOME = /u01/app/oracle/product/10.1.0
    System name: SunOS
    Node name: bill02
    Release: 5.9
    Version: Generic_117171-17
    Machine: sun4u
    Instance name: bill02
    Redo thread mounted by this instance: 1
    Oracle process number: 55
    Unix process pid: 10074, image: oracle@bill02 (m000)
    *** 2005-10-27 02:03:14.682
    *** ACTION NAME:(Auto-Flush Slave Action) 2005-10-27 02:03:14.667
    *** MODULE NAME:(MMON_SLAVE) 2005-10-27 02:03:14.667
    *** SERVICE NAME:(SYS$BACKGROUND) 2005-10-27 02:03:14.667
    *** SESSION ID:(519.24807) 2005-10-27 02:03:14.667
    *** KEWROCISTMTEXEC - encountered error: (ORA-00001: unique constraint (SYS.WRH$_SQLTEXT_PK) violated
    *** SQLSTR: total-len=570, dump-len=240,
    STR={INSERT INTO wrh$_sqltext                      (sql_id, dbid, sql_text,                       command_type, snap_id, ref_count)      SELECT /*+ ordered use_nl(s1) index(s1) */             sie.sqlid_kewrsie, :dbid, s1.sql_fulltext,           }
    *** KEWRAFM1: Error=13509 encountered by kewrfteh
    How to fix?
    Thanks!

    Have you tried searching Metalink? A unique constraint violation on a SYS table by MMON will almost certainly require Oracle Support's assistance to resolve. Something rather deep inside Oracle has done something wrrong.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • ORA-00001 - Unique Constraint error in Oracle forms 6i

    Hi,
    I am using Forms 6i. I have an issue while inserting records into a custom table.  Below is the functionality.
    When I check the check box,  and press the 'APPROVE' button, the record gets inserted into the custom table. But while inserting I am getting 'ora-00001-unique constraint violated error'.
    But the custom table doesn't have any data in it. (So the inserting record should not be a duplicate record).
    Any suggestions would be of great help.
    Thanks
    Deepti

    Is it a sql statement that is performing the insert, or are you using the native data block DML functionality in your form?  Secondly have you identified candidate columns that could be causing your issue?
    If you are using sql statement have you debugged to comfirm that you are not firing the same block of code more that once, and that if it is required to execute multiple times are you incrementing the sequence values that should be unique.
    Regards
    Q

  • Unique Constraint error while executing statspack.snap procedure

    The following is the error which popped up when i was trying to execute statspack.snap procedure from perfstat user:
    ORA-00001: unique constraint (PERFSTAT.STATS$LATCH_CHILDREN_PK) violated
    ORA-06512: at "PERFSTAT.STATSPACK", line 1619
    ORA-06512: at "PERFSTAT.STATSPACK", line 71
    ORA-06512: at line 1
    How could i resolve such a problem, as all the constraints and objects for this user are created while running the oracle supplied script 'spcreate.sql'.
    If any 1 knows how to handle such a situation , can come forward n please help me out.

    SQL> execute statspack.snap (i_snap_level=>10);
    ERROR at line 1:
    ORA-00001: unique constraint (PERFSTAT.STATS$LATCH_CHILDREN_PK) violated
    ORA-06512: at "PERFSTAT.STATSPACK", line 1619
    ORA-06512: at "PERFSTAT.STATSPACK", line 71
    ORA-06512: at line 1
    Cause
    -- Its because of the bug # 2384758.
    "STATSPACK.SNAP GIVES ORA-1 ON STATS$LATCH_CHILDREN_PK WHEN I_SNAP_LEVEL=>10"
    -- The STATS$LATCH_CHILDREN table has a primary key constraint on (snap_id, dbid, instance_number, latch#, child#).
    Fix
    -- This is fixed in 9.0.2 and will not be backported to earlier versions because the level 10 is not a normal level to be setting unless requested by oracle support.

Maybe you are looking for