ORA-02291: violating full constraints (*)-parent keywords not found

Source: Internet
Author: User

This often happens in Oracle, where ORA-02291: violates the full constraints (*)-parent keywords not found

The following describes the possible causes:

Scenario:

A field in Table A is A foreign key associated with A field in Table B. This situation occurs when data is inserted into Table.

Possible causes:

1. When inserting data into Table A, the field associated with the foreign key must have data in Table B. This is the case if Table B does not have data.

2. A foreign key ring is generated, that is, the field associated with the foreign key in Table B is associated with the field in table C, but the corresponding field in Table C does not have data.

3. If it is not the above two cases, it is A very easy to neglect problem: the data type and length of the foreign key field in A and the field associated with the foreign key in B are inconsistent. In particular, the data length must be consistent.

The third case is the easiest to ignore. I hope you will pay attention to it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.