Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2013

    Unanswered: Parent not found

    i am creating a database, and have finish creating the tables with all the constraints. trying to populate the tables i get an error message: ORA-02291: integrity constraint (SYSTEM.SYS_C004031) violated - parent key not found

    what should i do pls

  2. #2
    Join Date
    Feb 2004
    In front of the computer
    Provided Answers: 54
    I've moved your post from a thread in the ANSI SQL forum where it made no sense and put it into a thread of its own in the Oracle forum. It should get more meaningful answers here.

    The problem is that you have a reference to another table, and the value you provided is missing. Without access to your schema, the code you ran, or the data that you used I can't be more specific.

    In theory, theory and practice are identical. In practice, theory and practice are unrelated.

  3. #3
    Join Date
    Aug 2003
    Where the Surf Meets the Turf @Del Mar, CA
    Provided Answers: 1
    You should NEVER make any new object using SYS or SYSTEM schemas!

    [oracle@localhost ~]$ oerr ora 2291
    02291, 00000,"integrity constraint (%s.%s) violated - parent key not found"
    // *Cause: A foreign key value has no matching primary key value.
    // *Action: Delete the foreign key or add a matching primary key.

    This error indicates that you are attempting to INSERT child record where no parent record exists.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts