ORA-02298 : cannot validate - parent keys not

Hi,
I am trying to create a FK-PK constraints.
In the alter table command i am using the caluse:
exceptions INTO ... in order to catch all the exception rows .
Can you please explain why i am getting this error message ?
I am using the following command:
SQL> ALTER TABLE STARQ.CALL_FACT ADD (
2 CONSTRAINT CALL_FACT_FK_cmcustdim1
3 FOREIGN KEY (CUST_ID)
4 REFERENCES STARQ.CM_CUST_DIM_1 (DWH_CUST_ID)
5 exceptions INTO starq.exceptions );
CONSTRAINT CALL_FACT_FK_cmcustdim1
ERROR at line 2:
ORA-02298: cannot validate (STARQ.CALL_FACT_FK_CMCUSTDIM1) - parent keys not found

Hi,
>>Can you please explain why i am getting this error message ?
This is a normal behavior. After issued the "alter table add constraint ..." command, you need to query on EXCEPTIONS table.
LEGATTI@XE> create table a (id number constraint pk_a primary key);
Table created.
LEGATTI@XE> create table b (id number);
Table created.
LEGATTI@XE> insert into b values (1);
1 row created.
LEGATTI@XE> create table exceptions(row_id rowid,
  2                     owner varchar2(30),
  3                     table_name varchar2(30),
  4                     constraint varchar2(30));
Table created.
LEGATTI@XE> alter table b add constraint fk_b_a foreign key (id) references a exceptions into exceptions;
alter table b add constraint fk_b_a foreign key (id) references a exceptions into exceptions
ERROR at line 1:
ORA-02298: cannot validate (LEGATTI.FK_B_A) - parent keys not found
LEGATTI@XE> select * from exceptions;
ROW_ID             OWNER                          TABLE_NAME                     CONSTRAINT
AAAD3mAAEAAAABoAAA LEGATTI                        B                              FK_B_ACheers
Legatti

Similar Messages

  • How to resolve ORA-02298: cannot validate (%s.%s) - parent keys not found

    Hi, During the exp/imp process,i have tried to enable the constraints once the import done,but for some of the constraints am getting ORA-02298: cannot validate (%s.%s) - parent keys not found error,can anyone assist me what are all the possible ways to fix this issue. database -ORACLE 11g,o/s -LINUX

    Hi. Put the missing values into the parent table or Remove the rows in the child table which contain values that are not in the parent table
    http://www.shutdownabort.com/errors/ORA-02298.php
    Regards
    Javid Hasanov
    Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Edited by: Javid Hesenov on Jul 6, 2012 2:03 AM

  • ORA-02298: cannot validate (PL_REM_FK_ES_EMP) - parent keys not found

    hi
    I disabled some constraints. But now, when I try to enable them then I get the error:
    ORA-02298: cannot validate (PL_REM_FK_ES_EMP) - parent keys not found.
    Plz guide me to resolve this problem.

    Hi,
    there is most likely some orphaned records in the child table. what command did you use to delete the record? what the output of
    select xxxxx from child_table a where not exists (select 'x' from
    parent_table where primary_key = a.key_values);
    dan

  • ORA-02298: cannot validate .......

    Hi,
    I exported user cmsadmin with constraints=y and consistent=y as DBA user from 9i then Imported it using fromuser/touser =cmsadmin into oracle 10g..
    i got the follwing error while importing:
    IMP-00017: following statement failed with ORACLE error 2298:
    "ALTER TABLE "RESPONSES" ENABLE CONSTRAINT "FK_RESPONSE_FK_CTF_RE_CERTIFIC""
    IMP-00003: ORACLE error 2298 encountered
    ORA-02298: cannot validate (CMSADMIN.FK_RESPONSE_FK_CTF_RE_CERTIFIC) - parent keys not found
    The
    ALTER TABLE "CMSADMIN"."RESPONSES" ADD CONSTRAINT
    "FK_RESPONSE_FK_CTF_RE_CERTIFIC" FOREIGN KEY ("REP_CERTIFICATION_ID")
    REFERENCES "CERTIFICATION" ("CTF_CERTIFICATION_ID") ENABLE NOVALIDATE ;
    But when i checked number of rows of for CERTICATION table in 9i DB and target 10g DB they are same....
    But when i run the following query:
    select distinct REP_CERTIFICATION_ID from RESPONSES a where not exists (select CTF_CERTIFICATION_ID from CERTIFICATION where CTF_CERTIFICATION_ID = a.REP_CERTIFICATION_ID);The above query returns 288 rows meaning they are not in CERTIFICATION table.. but the count of number of rows are same in source and target DB..
    What can be the reason..
    can you pls help...
    Thx

    Hi,
    here is my EXP and IMP commands:
    exp cmsadmin/frora04_adm file=cmsdbt01_cmsadmin_29Mar07.dmp log=cmsdbt01_cmsadmin_29Mar07.log owner=cmsadmin consistent=y grants=y constraints=y rows=n
    imp cmsadmin/orad1_adm file=cmsdbt01_cmsadmin_29Mar07.dmp log=cmsadmin_imp.log fromuser=cmsadmin touser=cmsadmin ignore=y
    moreover, when i run the following query in source database on 9i from where i took the export it does not return any rows meaning that data is fine in both parent and child tables:
    select distinct REP_CERTIFICATION_ID from RESPONSES a where not exists (select CTF_CERTIFICATION_ID from CERTIFICATION where CTF_CERTIFICATION_ID = a.REP_CERTIFICATION_ID);
    But, when i run the same above query in target table after importing the schema (usng above imp command) i get 14 distinct CTF_CERTIFICATION_ID meaning that they are not in parent table..
    Master Table --> CERTIFICATION
    PK column --> CTF_CERTIFICATION_ID
    Child Table --> RESPONSES
    FK column to above PK --> REP_CERTIFICATION_ID
    Hence issue still persists reg. parent key not found after importing..
    Thx

  • How to resolve ora issue-parent key not found!

    Hi,
    Once the import is done,when i tried to enable the constraints,am getting ORA-02298: cannot validate (%s.%s) - parent keys not found for some of the constraints,i had already raised a new thread,but when i tried to resolve this issue based on the solution provided there,i couldn't....
    http://www.shutdownabort.com/errors/ORA-02298.php
    i have tried in so many ways-
    -reimporting the parent table alone.
    -fresh export of all tables with option consistent=y
    but the records are matching between source and target tables.

    based on this issue,is there any simple query to findout the missing records in parent table,i don't have access for child_table,parent_table views.
    FYI- am using traditional imp/exp command to accomplish data import and export activities,i tried with the following query,but not getting any output
    select 'select '||cc.column_name-
    ||' from '||c.owner||'.'||c.table_name-
    ||' a where not exists (select ''x'' from '-
    ||r.owner||'.'||r.table_name-
    ||' where '||rc.column_name||' = a.'||cc.column_name||')'
    from dba_constraints c,
    dba_constraints r,
    dba_cons_columns cc,
    dba_cons_columns rc
    where c.constraint_type = 'R'
    and c.owner not in ('SYS','SYSTEM')
    and c.r_owner = r.owner
    and c.owner = cc.owner
    and r.owner = rc.owner
    and c.constraint_name = cc.constraint_name
    and r.constraint_name = rc.constraint_name
    and c.r_constraint_name = r.constraint_name
    and cc.position = rc.position
    and c.owner = '&table_owner'
    and c.table_name = '&table_name'
    and c.constraint_name = '&constraint_name'
    can anyone suggest to fix it using some other option.

  • ORA-02298: cannot enable name - parent keys not found

    Hi All,
    I got this problem while creating Foreign Key constraints ORA-02298: cannot enable name - parent keys not found. How to rectify this problem

    alter table WORK_APPROVAL_DETAILS
    add constraint FK_WRKAPPR_AUTH_APPR foreign key (APPROVER_CODE, PCC_INFO_CODE)
    references AUTHORIZED_APPROVERS (APPROVER_CODE, PCC_INFO_CODE);
    WORK_APPROVAL_DETAILS:
    inspection_id     number(16)               
    work_code      varchar2(18)               
    approver_code     varchar2(12)               
    approver_remarks     varchar2(200)               
    approval_date     date               
    role_code     char(2)               
    reference_no     varchar2(50)               
    pcc_info_code     varchar2(9)               
    status_code     number(4)
    AUTHORIZED_APPROVERS
    approver_code     varchar2(12)               
    approver_name     varchar2(30)               
    dept_code     varchar2(3)               
    desg_code      char(2)               
    is_active     char(1)               
    address     varchar2(250)               
    role_code     char(2)               
    created_by     varchar2(20)               
    created_date     date               
    pcc_info_code     varchar2(9)               
    qualification     varchar2(50)               
    experience      varchar2(25)

  • ORA-02298 - A suggestion

    hello all
    for the error
    ORA-02298 - cannot validate <child_table> - parent keys not found
    means that ther are some orphaned child records in the child table for which there is no parent key . i.e. no parennt record exist in parent table.
    so we have to remove the orphaned child records
    try query like this
    delete from child where(foreign_key) in
    (select ce.foreign_key from child ce,parent c
    where (ce.foreign_key)<>(c.parent_key))
    shalini

    ORA-02298: cannot validate (string.string) - parent keys not found
    Cause: an alter table validating constraint failed because the table has orphaned child records.
    Action: Obvious
    Go Through Below links
    >>>ORA-02298 Cannot validate - parent keys not found
    HTH
    M.S.Taj

  • Error: ORA-02298 while creating a new app at DRM 11.1.2.3.300

    Hi All,
            There's something weird happening when I try to create a new DRM app at DRM Management Console. After provide all information about database connection and admin long on i am getting the following error during the repository creation :
    Creating Repository ...  Done.
    Creating Tables ...  Done.
    Creating Views ...  Done.
    Creating Stored Procedures ...  Done.
    Creating Indexes ...  Done.
    Creating Primary Keys ...  Done.
    Initializing schema with predefined data ...
    Database creation failed with this error: ORA-02298: cannot validate (EPM_DRM_DB.FK_CATUSER02) - parent keys not found
         It is a fresh install and I don't know why I am having this error.  Did someone had this issue too ? How to solve that ?
    Thanks in advance

    ...To whom it may concern.....
    This issue was related to privileges in database. I've generated the scripts and ran with system user and it worked.
    Case closed.

  • Ora-02298 in migrating MS-SQLServer to Oracle 8i

    Greetings,
    I am in the process of migrating a MS-SQLServer db to Oracle 8i.
    I have encountered an error (ora-02298). The following was inserted into the mwb error log:
    REM
    REM Message : Failed to create foreign key: FK_M_REQUEST_M_WORK_ORDER: ORA-02298: cannot validate (BCBIZ.FK_M_REQUEST_M_WORK_ORDER) - parent keys not found
    REM User : bcbiz
    ALTER TABLE bcbiz.M_REQUEST ADD ( CONSTRAINT FK_M_REQUEST_M_WORK_ORDER FOREIGN KEY ( work_id ) REFERENCES bcbiz.M_WORK_ORDER ( work_id ) ON DELETE CASCADE );
    I have read the FAQ section of the mwb site and from my understanding this error indicates that work_id should be primary key or unique key for the table m_work_order. I have checked the table m_work_order and have verified that the work_id field is the primary key for the m_work_order table.
    I have tried dropping and creating the table from scratch and have received the same error.
    Does anyone have any suggestions that I might try?
    Thank you in advance,
    -Ken
    null

    hello,
    am interested in migrating from mssql server 7 to oracle 8i.
    how excatly do i do that should i download some gateway software or should i download migration workbench software if i download how do i move files from MSSQL to oracle.
    Some one please help me out.
    thankyou
    Ramesh
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Kenneth Eisner ([email protected]):
    Greetings,
    I am in the process of migrating a MS-SQLServer db to Oracle 8i.
    I have encountered an error (ora-02298). The following was inserted into the mwb error log:
    REM
    REM Message : Failed to create foreign key: FK_M_REQUEST_M_WORK_ORDER: ORA-02298: cannot validate (BCBIZ.FK_M_REQUEST_M_WORK_ORDER) - parent keys not found
    REM User : bcbiz
    ALTER TABLE bcbiz.M_REQUEST ADD ( CONSTRAINT FK_M_REQUEST_M_WORK_ORDER FOREIGN KEY ( work_id ) REFERENCES bcbiz.M_WORK_ORDER ( work_id ) ON DELETE CASCADE );
    I have read the FAQ section of the mwb site and from my understanding this error indicates that work_id should be primary key or unique key for the table m_work_order. I have checked the table m_work_order and have verified that the work_id field is the primary key for the m_work_order table.
    I have tried dropping and creating the table from scratch and have received the same error.
    Does anyone have any suggestions that I might try?
    Thank you in advance,
    -Ken
    <HR></BLOCKQUOTE>
    null

  • ORA-02298

    SQL> alter table jti.DIS_ROOM_REQUESTS
    2 add constraint DIS_FK2_ROOM_REQUESTS_ST_ID foreign key (STUDENT_ID)
    3 references jtisp.sis_students (STUDENT_ID);
    add constraint DIS_FK2_ROOM_REQUESTS_ST_ID foreign key (STUDENT_ID)
    ERROR at line 2:
    ORA-02298: cannot validate (JTI.DIS_FK2_ROOM_REQUESTS_ST_ID) - parent keys not
    found
    plz help me...to come out this error...

    Hi:
    From techonthenet.com
    Cause:
    You tried to execute an ALTER TABLE ENABLE CONSTRAINT command, but it failed because your table has orphaned child records in it.
    Action:
    The options to resolve this Oracle error are:
    1- Remove the orphaned child records from the child table (foreign key relationship), and then re-execute the ALTER TABLE ENABLE CONSTRAINT command.
    2- Create the missing parent records in the parent table (foreign key relationship), and then re-execute the ALTER TABLE ENABLE CONSTRAINT command.Saad,
    http://saadnayef.blogspot.com

  • Cannot insert PS_TXN ORA-00942 table or view does not exist

    We are using jdev 11.1.1.4.0
    We have two users in the database and various application modules which connect to these users using datasources
    We have tested the application with applicatin module pooling enabled off to test for passivation and activation errors and the application works fine.
    Also on our internal test enviorment which has more then 10 concurrent users the application works fine
    But at UAT it has started suddenly to give errors Cannot insert in PS_TXN ORA-00942 table or view does not exist
    When I see the data in PS_TXN tables in various users I can see that passivation has taken place for the same day when there sporadic errors have been reported all having the cause as ORA-00942 table or view does not exist.
    But one strange thing that I have observed is that the COLLID column has sequence numbers interchanged for the users randomly, database user 1 has sequence number from database user 2 seq and vice a versa in COLLID
    As far as this problem goes the passivation should have failed with ORA-00001 primary key voilated but that is not the case
    May be the keys have still not got to a number where they collide.
    But I am totally taken aback on such a behaviour and I am not sure how to correct it.
    So we have two porblems here
    1) why did this error come in first place PS_TXN ORA-00942 table or view does not exist
    2) Why are the sequence numbers interchanged for the databse users ?
    Edited by: user3067156 on Jun 19, 2012 3:12 AM

    I got reply to my second question
    It looks like a bug in the framework and the suggestions are to use only one ps_txn and ps_txn_seq by modifying the internal connection
    But the first problem is not yet known why did it appear suddenly
    Edited by: user3067156 on Jun 19, 2012 3:12 AM

  • ORA-01445: cannot select ROWID from, or sample, a join view without a key-p

    Hi All,
    I am facing issue with one sql query. It is giving me error:
    ORA-01445: cannot select ROWID from, or sample, a join view without a key-preserved table
    I am not getting any clue to solve this. On internet, i didn't find proper reason for this error and troubleshooting way and solution for this error. Everywhere i saw one sentence, "Key preserved means the row from the base table will appear AT MOST ONCE in the output view on that table" but it didn't solve my problem.
    I have 1099 columns in one select query. so avoiding the actual column list in select clause. Instead I am trying to select ROWIDs from all tables in join. My understanding is ROWID is a unique identifier in table not in database. But though I remove ROWIDs, I get same error. So please don't bother about these ROWIDs.
    SELECT
    TO_DATE(FACT.BUS_DATE_FKID,'YYYYMMDD')
    ,FACT.ROWID AS ABC1
    ,FACT_ADJ.ROWID AS ABC2
    ,DIM_SEC.ROWID AS ABC3
    ,DIM_SEC_ADJ.ROWID AS ABC4
    ,DIS_CAT.ROWID AS ABC5
    ,CTRY.ROWID AS ABC6
    ,BCP.ROWID AS ABC7
    ,STAGE.ROWID AS ABC8
    FROM FACT_POSITION FACT
    LEFT JOIN FACT_POSITION_ADJ FACT_ADJ ON FACT.POSITION_PKID = FACT_ADJ.POSITION_FKID
    LEFT JOIN DIM_SOURCE_SYSTEM SOURCE ON FACT.SOURCE_SYSTEM_FKID = SOURCE.SOURCE_SYSTEM_PKID
    LEFT JOIN DIM_SECURITY DIM_SEC ON FACT.SUBSYS_SECURITY_FKID = DIM_SEC.SECURITY_PKID
    LEFT JOIN DIM_SECURITY_ADJ DIM_SEC_ADJ ON FACT.SUBSYS_SECURITY_FKID = DIM_SEC_ADJ.SECURITY_PKID
    LEFT JOIN DIM_DISCLOSURE_CATEGORY DIS_CAT ON FACT.DISCLOSURE_CATEGORY_FKID = DIS_CAT.DISCLOSURE_CATEGORY_PKID
    LEFT JOIN COUNTRY_REFERENCE CTRY ON CTRY.DESCRIPTION = DIM_SEC.ISSUER_COUNTRY
    LEFT JOIN BUSINESS_CLOSE_PERIOD BCP
    ON BCP.BUSINESS_CLOSE_DATE = ADD_MONTHS(TRUNC(TO_DATE(FACT.BUS_DATE_FKID,'YYYYMMDD'),'MM'), 1) -1
    AND BCP.IS_LOCKED='Y' AND BCP.IS_ACTIVE='Y'
    LEFT JOIN GUI_STAGING STAGE ON
    FACT.POSITION_PKID=STAGE.POSITION_PKID
    AND STAGE.IS_ACTIVE='Y'
    AND STAGE.STATUS_ID IN(12,8,1,2,3,4,5)
    WHERE FACT.POSITION_PKID=64524374;
    While trying to sort this error, I found interesting things that made me more confused.
    if I remove TO_DATE function from select clause, same join query works.
    If I remove any table from join and keep TO_DATE function in select clause, query works.
    That tells, there is no problem in query.
    Then please anyone help me to sort out the error. FYI. I have googled a lot for this error. but didn't get solution/clue. That is why I am posting this problem to forum.
    Thanks in advance. waiting for reply ASAP.
    Pravin Pujari
    [email protected]

    I think i got the solution. The syntax i was using (ANSI syntax) doesn't work in the oracle database version i am using.
    When i updated my query with older oracle syntax, it worked.
    SELECT
    TO_DATE(FACT.BUS_DATE_FKID,'YYYYMMDD')
    ,FACT.ROWID AS ABC1
    ,FACT_ADJ.ROWID AS ABC2
    ,SOURCE.ROWID AS ABC3
    ,DIM_SEC.ROWID AS ABC4
    ,DIM_SEC_ADJ.ROWID AS ABC5
    ,DIS_CAT.ROWID AS ABC6
    ,CTRY.ROWID AS ABC7
    ,BCP.ROWID AS ABC8
    ,STAGE.ROWID AS ABC8
    FROM [email protected] FACT
    ,[email protected] FACT_ADJ
    ,[email protected] SOURCE
    ,[email protected] DIM_SEC
    , [email protected] DIM_SEC_ADJ
    , [email protected] DIS_CAT
    , GUI.COUNTRY_REFERENCE CTRY
    , GUI.BUSINESS_CLOSE_PERIOD BCP
    , GUI.GUI_STAGING STAGE
    WHERE FACT.POSITION_PKID=64517140
    AND FACT_ADJ.POSITION_FKID(+) = FACT.POSITION_PKID
    AND SOURCE.SOURCE_SYSTEM_PKID=FACT.SOURCE_SYSTEM_FKID
    AND DIM_SEC.SECURITY_PKID=FACT.SUBSYS_SECURITY_FKID
    AND DIM_SEC_ADJ.SECURITY_PKID(+)=DIM_SEC.SECURITY_PKID
    AND FACT.DISCLOSURE_CATEGORY_FKID = DIS_CAT.DISCLOSURE_CATEGORY_PKID
    AND CTRY.DESCRIPTION = DIM_SEC.ISSUER_COUNTRY
    AND BCP.BUSINESS_CLOSE_DATE = ADD_MONTHS(TRUNC(TO_DATE(FACT.BUS_DATE_FKID,'YYYYMMDD'),'MM'), 1) -1
    AND BCP.IS_ACTIVE='Y'
    AND FACT.POSITION_PKID=STAGE.POSITION_PKID
    AND STAGE.IS_ACTIVE='Y'
    AND STAGE.STATUS_ID IN(12,8,1,2,3,4,5);

  • Problem in updating fa_additions SQL Error: ORA-01779: cannot modify a column which maps to a non key-preserved table

    Hi,
    After using sql loader to import informations in the table fa_mass_additions and after the functionnal uses a treatment to imputate this assets, it asks me to do an update on the table fa_additions to change the value of attribute1 but i get an error
    Error report:
    ORA-01779: cannot modify a column which maps to a non key-preserved table
    ORA-06512: at line 11
    01779. 00000 -  "cannot modify a column which maps to a non key-preserved table"
    *Cause:    An attempt was made to insert or update columns of a join view which
               map to a non-key-preserved table.
    *Action:   Modify the underlying base tables directly.
    please how can i do this update?

    Hi,
    The "fa_additions" is a view, not a table.
    You should update the base table "fa_additions_b".
    Regards,
    Bashar

  • ERROR ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found

    Hi,
    SAPSSRC.log
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: START OF LOG: 20071018195059
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#12 $ SAP
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: version R6.40/V1.4
    Compiled Nov 30 2005 20:41:21
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe -ctf I C:/temp/51030721/EXP2/DATA/SAPSSRC.STR C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/DDLORA.TPL C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.TSK ORA -l C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.log
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: job completed
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: END OF LOG: 20071018195059
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: START OF LOG: 20071018195133
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#12 $ SAP
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: version R6.40/V1.4
    Compiled Nov 30 2005 20:41:21
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe -dbcodepage 4103 -i C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.cmd -l C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.log -stop_on_error
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (DB) INFO: ABTREE created #20071018195134
    (IMP) INFO: import of ABTREE completed (39 rows) #20071018195134
    (DB) INFO: ABTREE~0 created #20071018195134
    (DB) INFO: AKB_CHKCONF created #20071018195134
    (IMP) INFO: import of AKB_CHKCONF completed (0 rows) #20071018195134
    (DB) INFO: AKB_CHKCONF~0 created #20071018195134
    (DB) INFO: AKB_INDX created #20071018195134
    (IMP) INFO: import of AKB_INDX completed (0 rows) #20071018195134
    (DB) INFO: AKB_INDX~0 created #20071018195134
    (DB) INFO: AKB_USAGE_INFO created #20071018195134
    (IMP) INFO: import of AKB_USAGE_INFO completed (0 rows) #20071018195134
    (DB) INFO: AKB_USAGE_INFO~0 created #20071018195134
    (DB) INFO: AKB_USAGE_INFO2 created #20071018195134
    (IMP) INFO: import of AKB_USAGE_INFO2 completed (0 rows) #20071018195134
    (DB) INFO: AKB_USAGE_INFO2~0 created #20071018195134
    (DB) INFO: APTREE created #20071018195134
    (IMP) INFO: import of APTREE completed (388 rows) #20071018195134
    (DB) INFO: APTREE~0 created #20071018195134
    (DB) INFO: APTREE~001 created #20071018195134
    (DB) INFO: APTREET created #20071018195134
    (IMP) INFO: import of APTREET completed (272 rows) #20071018195134
    DbSl Trace: Error in exec_immediate()
    DbSl Trace: ORA-1452 occurred when executing SQL statement (parse error offset=35)
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "APTREET~0" ON "APTREET" ( "SPRAS", "ID", "NAME" ) TABLESPACE PSAPBW1 STORAGE (INITIAL 44981 NEXT 0000000040K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
    (SQL error 1452)
    error message returned by DbSl:
    ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    (DB) INFO: disconnected from DB
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: END OF LOG: 20071018195134
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: START OF LOG: 20071018195314
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#12 $ SAP
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: version R6.40/V1.4
    Compiled Nov 30 2005 20:41:21
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe -dbcodepage 4103 -i C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.cmd -l C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.log -stop_on_error
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (DB) ERROR: DDL statement failed
    (DROP INDEX "APTREET~0")
    DbSlExecute: rc = 103
    (SQL error 1418)
    error message returned by DbSl:
    ORA-01418: specified index does not exist
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    DbSl Trace: Error in exec_immediate()
    DbSl Trace: ORA-1452 occurred when executing SQL statement (parse error offset=35)
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "APTREET~0" ON "APTREET" ( "SPRAS", "ID", "NAME" ) TABLESPACE PSAPBW1 STORAGE (INITIAL 44981 NEXT 0000000040K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
    (SQL error 1452)
    error message returned by DbSl:
    ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    (DB) INFO: disconnected from DB
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: END OF LOG: 20071018195315
    I'm getting this error "duplicate keys found". I'm finished installing the central instance and during the database instance, i got this error. I'm installing BW 3.5 on x64 windows server 2003 platform. I'm using NU kernel 6.40.
    Thanks for your suggestions on how to resolve this error.
    Reward points guaranteed.

    Issue solved by deleting central and database instance and started a new build. it finished without an error.
    Thank you.

  • ORA-01779: cannot modify a column which maps to a non key-preserved table

    define cusname='GEORGE';
    INSERT INTO (select s.prd_id, s.cus_id, s.qty_sold, s.price from sales s, customers c where s.cus_id=c.cus_id)
    VALUES (102,(select cus_id from customers where upper(c_name) like '%GEORGE%'),14,(select price from product where prd_id = 102)*14)
    I am getting the following error when I am trying to run the above query.
    SQL Error: ORA-01779: cannot modify a column which maps to a non key-preserved table
    01779. 00000 -  "cannot modify a column which maps to a non key-preserved table"
    *Cause:    An attempt was made to insert or update columns of a join view which map to a non-key-preserved table.
    *Action:   Modify the underlying base tables directly.
    CUSTOMERS TABLE
    Name   
    Null   
    Type        
    CUS_ID 
    NOT NULL
    NUMBER      
    C_NAME         
    VARCHAR2(50)
    C_LIMIT         
    NUMBER      
    CITY           
    VARCHAR2(20)
    PRODUCT TABLE
    Name 
    Null   
    Type        
    PRD_ID
    NOT NULL
    NUMBER      
    PRICE         
    NUMBER      
    COST           
    NUMBER      
    SALES TABLE
    Name   
    Null   
    Type  
    PRD_ID 
    NOT NULL
    NUMBER
    CUS_ID 
    NOT NULL
    NUMBER
    QTY_SOLD         
    NUMBER
    PRICE             
    NUMBER

    Hi,
    As the error message sugggested, INSERT directly into the sales table.  You can get the values from a sub-query that joins whatever tables are needed, including sales itself.  MERGE might be simpler and more efficient than INSERT.
    I hope this answers your question.
    If not, post  a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    If you're asking about a DML statement, such as INSERT, the sample data will be the contents of the table(s) before the DML, and the results will be state of the changed table(s) when everything is finished.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

Maybe you are looking for

  • AT&T and Lumia Amber Update DELAYS and delivery ti...

    1) AT&T customers who are also Lumia owners now know that AT&T missed the Nokia deadline for all Lumia phones receiving the Amber update by 9/30/2013. 2) Here is an AT&T Facebook session I had with Nicole L. yesterday. You will note their (AT&T's) be

  • Aspect ratio question

    Hello all, this footage Im using imported into FCP as 720 x 480 regular ntsc footage. In final cut the video displayes with a letterbox. Unfortunately I went ahead and edited everything before asking questions about this letterbox. So now im running

  • Torture sound from PB: constant sqeaking

    Al the time, around the clock, my 17" 1.67 Hi-Res Powerbook makes a sqeaking sound. I guess it's like the ear damage you get when listening to load music too much: a VERY high pitched tone ringing. You could perhaps define it as subtle if we talk abo

  • Bridge CC ist not installed

    I'm using Photoshop CC on Windows 7 (64-bit). I had to restore Windows (using 'system restore'). Doing so Bridge CC went lost. I want to re-install it. The Creative Cloud app tells me Bridge CC ist installed successfully (I fully disagree). The insta

  • Data connectivity CR 9 and Oracle 11.2

    Dear Forum I have a quick question that i am sure someone will answer quickly. Is it possible to connect to a oracle 11.2g dbase using CR9. (we have a client who is still using cr9 They have just upgraded there dbase to 11.2) With Kind Regards Paul