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.

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 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: 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

  • How to resolve ORA-06564 "Directory" does not exist

    Error when attempting to select from external table:
    SQL> select * from acore.owb_nielsen_dma_load;
    select * from acore.owb_nielsen_dma_load
    ERROR at line 1:
    ORA-06564: object XTRAND_ACORE_LOC_FF_MODULE_LOC does not exist
    Directory does exist:
    SQL> select * from dba_directories where DIRECTORY_NAME like 'XTRAND_ACORE_LOC_FF_M%';
    OWNER DIRECTORY_NAME
    DIRECTORY_PATH
    SYS XTRAND_ACORE_LOC_FF_MODULE_LOC
    /datafiles/aim/aimp/owb
    Output from Runtime: owbrtrepos.log.15
    12:17:35 [FB1F7] AuditId=298: Processing unit deployment request
    12:17:41 [3A8602] Attempting to create adapter 'class.Oracle Database.9.2.DDLDeployment'
    12:17:52 [3A8602] script_run_begin auditId=300 operation=9001
    12:17:58 [3A8602] script_run_end auditId=301 scriptRunStatus=15002
    12:18:05 [3A8602] deploy_unit_done auditId=298
    12:18:10 [FB1F7] AuditId=297: Request completed
    The log file named in the configure is not being created.
    Note: The Read/Write grants were issued by SYS.
    grant read on directory XTRAND_ACORE_LOC_FF_MODULE_LOC to ACORE;
    grant write on directory XTRAND_ACORE_LOC_FF_MODULE_LOC to ACORE;
    In advance thanks for you help.
    Carol-Ann

    check the information when you have registerd the location.
    After register the location, again you have to deploy the respective connector

  • 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

  • Hi! I have a MacBook and I am trying to delete files from Microsoft Word. Somehow I cannot simply throw them in the trash. Does anyone know how to resolve this issue?

    Hi! I have a MacBook and I am trying to delete files from Microsoft Word. Somehow I cannot simply throw them in the trash. Does anyone know how to resolve this issue?

    Why not? Are there error messages? Where are the files located? Why are you deleting MicroSoft Word files?

  • When i type the wesite in the address bar and hit ENTER, it seems to be not working for me; anybody knows how to resolve this issue?

    When i type the wesite in the address bar and hit ENTER, it seems to be not working for me; anybody knows how to resolve this issue? i have to click on the green arrow button to continue.

    Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
    You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
    If not, see this: <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • I have started to get this error message: 5.1.3 bad address syntax in my email account. I am using Outlook 2011. It does not appear to be affecting sending or receiving email. I have no idea what it means or how to resolve the issue. Any advice?

    I have started to get this error message: "5.1.3 bad address syntax" in my email account. I am using Outlook 2011. It does not appear to be affecting sending or receiving email. I have no idea what it means or how to resolve the issue. Any advice?  My email account is through Optimum online and I am using Airpost Express.
    P.S. The error sound "bong" is driving us nuts!

    Please post on the Office for Mac product forums that Microsoft hosts. It's their product and they can best troubleshoot the issue.

  • HT1689 I just upgraded to iTunes 11 and now I get a "itunes cannot connect with this ........ Could not allocate a resource. Happens with both ipad and iPhone. Any thoughts on how to resolve this issue?

    I just upgraded to iTunes 11 and now I get a "itunes cannot connect with this ........ Could not allocate a resource. Happens with both ipad and iPhone. Any thoughts on how to resolve this issue?

    Same for me with Iphone 5 and IOS 7 on mac pro. Install ITunes 11.1 and after reboot nothing work. Work only with Mac Pro in safe mode.
    I have uninstalled Wi-fi-sync1.0 app from MacPro and Itunes sync well with iphone.

  • I have installed windows 8 on my mac book pro with bootcamp 4 and the issue is whenever i open windows 8 , It hangs after 15 minutes and does not work . How to resolve this issue?

    I have installed windows 8 on my mac book pro with bootcamp 4 and the issue is whenever i open windows 8 , It hangs after 15 minutes and does not work . How to resolve this issue? Is it compatibility issue ?

    Please also see Boot Camp: Set the default operating system.

  • After the IOS 7.1 update I have issue with Game Center, I'm not been able to  load the  games. The apps don't seems to be able to connect to game centre. How to resolve the issue?

    After the IOS 7.1 update I have issue with Game Center, I'm not been able to  load the  games. The apps don't seems to be able to connect to game centre. How to resolve the issue?

    Try reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • TS1702 pre installed Maps software is not showing directions as it was showing previously , how to resolve this issue

    A pre installed software , Maps , not showing direction between two locations , as it was showing previously , it can't be removed even , since pre installed , plz help how to resolve this issue , regards

    Not all features are available in all countries.  This article explains:
    http://www.apple.com/ios/feature-availability/

  • Error in ST05 - trace record pair error block. How to resolve/tackle issue?

    Hello,
    Someone approached me last week in asking me how to resolve an issue in ST05. Basically I used the transaction to filter "inclusive VBPA".
    The error is ....
    Internal error - trace record pair error block 8 link no. 0
    Message no. 0S 026
    Diagnosis
        Each SQL statement is described by two SQL trace records that have the
        same link number. In this case, there are at least three records with the
        same link number.
        The system outputs the number of the block in which the third SQL trace
        record was found, as well as the link number of the records.
    System response
        Program processing continues after the message is displayed. The system
        processes all of the trace records. You should assume, however, that the
        SQL trace in this case is not displayed correctly.
    Procedure
    You cannot correct this error yourself. If you can reproduce the error,
    contact the SAP Hotline.
    SQL trace list editing terminated after 6 errors
    While using the trace I am executing the program that selects VBPA once and, I am assuming, as it goes through the BAPI BAPI_SALESORDER_CHANGE used to unblock a delivery block. I am guessing the problem or source is from the BAPI but do you guys have other insights in what is causing this issue?
    Thanks again, hope to hear from you soon, and good day.

    Our ERP LIVE Production around 11am all users encountered cannot generate print record from the submit new request. see below errorFor production issues, please log a SR.
    ORA-00060: Deadlock detected. More info in file /u/oracle/PROD/db/tech_st/11.1.0/admin/PROD_tailindb/diag/rdbms/prod/PROD/trace/PROD_ora_4026.trc.
    ORA-00060: Deadlock detected. More info in file /u/oracle/PROD/db/tech_st/11.1.0/admin/PROD_tailindb/diag/rdbms/prod/PROD/trace/PROD_ora_4026.trc.
    ORA-00060: Deadlock detected. More info in file /u/oracle/PROD/db/tech_st/11.1.0/admin/PROD_tailindb/diag/rdbms/prod/PROD/trace/PROD_ora_4026.trc.Please see these docs.
    OERR: ORA 60 "deadlock detected while waiting for resource" [ID 18251.1]
    What to do with "ORA-60 Deadlock Detected" Errors [ID 62365.1]
    Thanks,
    Hussein

  • How to resolve ORA-00001 Error in SQL Insert?

    Hi all, I need your appreciated help.
    I make a plsql procedure that is inserting a row according cursor value, I'm having oracle error ORA-00001: unique constraint (constraint_name) violated.
    You may see this message if a duplicate entry exists at a different level: in RDBMS MySQL I have the syntax IGNORE to resolve this duplication error... and in Oracle ?
    Thanks for your time and hints.
    Miguelito

    user6317803 wrote:
    How to resolve ORA-00001 Error in SQL Insert?ORA-00001 means table has unique/primary key/index and you are trying to insert a row with key value that already exists in the table. I'll assume table COUNTRIES has primary key on COUNTRY_ID. Then change SQL to:
    SQL = "INSERT INTO COUNTRIES(COUNTRY_ID,COUNTRY_NAME,REGION_ID) SELECT 'BZ','BLZ',3 FROM DUAL WHERE NOT EXISTS(SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID = 'BZ')"There is a good chance table COUNTRIES also has unique key/index on COUNTRY_NAME. If so use:
    SQL = "INSERT INTO COUNTRIES(COUNTRY_ID,COUNTRY_NAME,REGION_ID) SELECT 'BZ','BLZ',3 FROM DUAL WHERE NOT EXISTS(SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID = 'BZ' OR COUNTRY_NAME = 'BLZ')"SY.

Maybe you are looking for

  • I installed a new video card onto my computer...the monitor wont work!!!?

    So I got a new GPU (VGA MSI NX8800GT 512M OC RT). I installed it last night and plugged the monitor into it...I know the computer sees it because the LED light turns green, then it goes to sleep. So I figure that maybe the GPU is incompatible with my

  • How to create many clip region in the same time?

    I want to create JIGSAW game? There are 9 clip in display. When player press any number, that number will appear.

  • Time Machine hourly backup seems a tad large

    Hi all Occasionally, my hourly Time Machine incremental backups to my Time Capsule seem a tad large. One hour the backup is a sensible size, then an hour later, when I've been doing very little on my machine, the backup is massive (as in, several gig

  • Download "photo library"  & "picture" to pc

    I have been able to download "camera roll" to my PC, but the files labeled "Photo Library" and "Picture" will not show when I open the camera to download (on PC>Guy's iphone>Camera Tasks>Get Pictures).  Please respond with the steps I need to take to

  • Errors Since Restoring from Time Machine back-up.

    I had to do a complete wipe of my iMac hard drive, reinstall Mac OS X and then restore a backup from Time Machine. Now I am getting errors when trying to open Illustrator files, create new Illustrator documents, or open .ai files through Photoshop. I