•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Oracle section within the Web Development category of DaniWeb, a massive community of 423,351 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,238 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Oracle advertiser: Programming Forums
Views: 853 | Replies: 3 | Solved
![]() |
hello, i'm fairly new to oracle, but i pretty much get it. anyway i've created a table using this code :
and alls well, its just when i try to insert into the table:
Insert INTO BanquetReservation VALUES(100010,'None','Seminar','15-APR-04',400,'15-APR-04','1-APR-04',999887777,2004,12345);
i get this error message:
ORA-02291: integrity constraint (10212_S6.SYS_C00133029) violated - parent key not found
and i'm sure of the foreign keys that i used are the same type and that their already inserted into the other tables and everything,it says parent key not found but it is! can it mean smthg other than parent key not found?yeah and the little * that tells u where the problem is , is at the beginning under insert. so pls help.
create table BanquetReservation( ResNo SMALLINT NOT NULL, Restriction varchar(30) not null, ResType varchar(10) not null, DateOfEvent Date not null, NoOfPeople SMALLINT NOT NULL, EndDate Date, StartDate Date, SSN CHAR(9) NOT NULL, BYear SMALLINT NOT NULL, SID SMALLINT not null, primary key (ResNo), foreign key (SSN) REFERENCES Customer, foreign key (BYear) REFERENCES Budget, foreign key (SID) REFERENCES BanquetStaff);
and alls well, its just when i try to insert into the table:
Insert INTO BanquetReservation VALUES(100010,'None','Seminar','15-APR-04',400,'15-APR-04','1-APR-04',999887777,2004,12345);
i get this error message:
ORA-02291: integrity constraint (10212_S6.SYS_C00133029) violated - parent key not found
and i'm sure of the foreign keys that i used are the same type and that their already inserted into the other tables and everything,it says parent key not found but it is! can it mean smthg other than parent key not found?yeah and the little * that tells u where the problem is , is at the beginning under insert. so pls help.
•
•
Join Date: Feb 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 1
•
•
•
•
hello, i'm fairly new to oracle, but i pretty much get it. anyway i've created a table using this code :
create table BanquetReservation( ResNo SMALLINT NOT NULL, Restriction varchar(30) not null, ResType varchar(10) not null, DateOfEvent Date not null, NoOfPeople SMALLINT NOT NULL, EndDate Date, StartDate Date, SSN CHAR(9) NOT NULL, BYear SMALLINT NOT NULL, SID SMALLINT not null, primary key (ResNo), foreign key (SSN) REFERENCES Customer, foreign key (BYear) REFERENCES Budget, foreign key (SID) REFERENCES BanquetStaff);
and alls well, its just when i try to insert into the table:
Insert INTO BanquetReservation VALUES(100010,'None','Seminar','15-APR-04',400,'15-APR-04','1-APR-04',999887777,2004,12345);
i get this error message:
ORA-02291: integrity constraint (10212_S6.SYS_C00133029) violated - parent key not found
and i'm sure of the foreign keys that i used are the same type and that their already inserted into the other tables and everything,it says parent key not found but it is! can it mean smthg other than parent key not found?yeah and the little * that tells u where the problem is , is at the beginning under insert. so pls help.
Use this query to find out which table/column is the one raising the error:
SELECT * FROM user_cons_columns
WHERE constraint_name = Upper('<constraint_name_goes_here>')
Once you know which table/column, do a query to verify that the value in you insert statement is indeed in the table.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Oracle Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- fatal error (C++)
- unknown error (C++)
- Sometimes an error come out "Could not connect to database".Why?? (Oracle)
- Unexpected parse error, I dont know what I'm doing wrong. (PHP)
- Exception in thread "main" java.lang.NoClassDefFoundError: Invaders Error (Java)
- Hijack + Explorer invalid syntax error (Viruses, Spyware and other Nasties)
- Error Type: Microsoft VBScript runtime (0x800A01C9) (ASP)
- Strange blank WinXP Login error message ... (Windows NT / 2000 / XP / 2003)
- Error Linking KeyLogger.exe (C++)
- Error in Wrox Book (Perl)
Other Threads in the Oracle Forum
- Previous Thread: plsql mathematical function
- Next Thread: i have installed oracle 9i sql but while installing forms & reports it gives errors t


Linear Mode