[Spacewalk-list] Database Error: Oracle 11g

Michael Mraka michael.mraka at redhat.com
Tue Feb 23 10:53:06 UTC 2010


Eric wrote:
% Bump.
% 
% Nobody has any idea how to resolve this issue? Or what I should be looking for?
% I read that some people have 11gR2 working with Spacewalk.
% What am I missing?

IMHO it's a human error during manual db setup and has nothing in common
with 11g.

ORA-02291: integrity constraint
(RHNSAT.RHN_SCHDY_SCHED_SCHEDULE_ID_FK) violated - parent key not found
- probably forgotten data import to rhn_schedule_days table


% -Eric
% 
% ----- Original Message ----
% From: Eric <linux_4_u at yahoo.com>
% To: spacewalk-list <spacewalk-list at redhat.com>
% Sent: Fri, February 19, 2010 12:45:05 PM
% Subject: [Spacewalk-list] Database Error: Oracle 11g
% 
% A colleague of mine is trying to setup the database manually (don't ask why) using rhn/oracle/main.sql from spacewalk-schema-0.8.12-1.el5.noarch.rpm.
...
% SQL> INSERT INTO rhn_schedule_days
%   2       (recid, schedule_id, ord, start_1, end_1, start_2, end_2, start_3, end_3, start_4, end_4, last_update_user, last_update_date)
%   3  VALUES
%   4       (rhn_schedule_days_recid_seq.nextval, 1, 0, to_date('08-SEP-2000 12:00:02 AM', 'DD-MON-YYYY HH:MI:SS AM'), to_date('09-SEP-2000 12:00:00 AM', 'DD-MON-YYYY HH:MI:SS AM'), null, null, null, null, null, null, 'system', null);
% INSERT INTO rhn_schedule_days
% *
% ERROR at line 1:
% ORA-02291: integrity constraint (RHNSAT.RHN_SCHDY_SCHED_SCHEDULE_ID_FK) violated - parent key not found

Regards,

--
Michael Mráka
Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list