I have attached more information on the issues we are having importing 
deploy.sql into our oracle 11g database. Does anyone have any ideas as to why 
we are seeing these errors?

Jonathan Hooker
Desktop Support - Engineering
Garmin International
[email protected]<mailto:[email protected]>

From: Agrawal, Rinky
Sent: Wednesday, April 07, 2010 11:16 AM
To: Hooker, Jonathan
Subject: RE: [Spacewalk-list] Issue with Spacewalk 0.8 install on CentOS 5 and 
Oracle 11G

Jonathan,

1)     I re-ran deploy.sql and received the same error
2)     Also, changed the recid to 1 in the INSERT statements as suggested in 
the thread but still the same error.

Thanks
Rinky

________________________________
From: Hooker, Jonathan
Sent: Tuesday, April 06, 2010 5:46 PM
To: Agrawal, Rinky
Subject: RE: [Spacewalk-list] Issue with Spacewalk 0.8 install on CentOS 5 and 
Oracle 11G

Did you try the deploy.sql not the main.sql? The deploy.sql is the one we want 
to import not the main.sql.

Jonathan Hooker
Desktop Support - Engineering
Garmin International
[email protected]<mailto:[email protected]>

From: Agrawal, Rinky
Sent: Tuesday, April 06, 2010 11:39 AM
To: Hooker, Jonathan
Subject: RE: [Spacewalk-list] Issue with Spacewalk 0.8 install on CentOS 5 and 
Oracle 11G

Jonathan,

Can you ask the same person who replied below?

Ask him that we are able to run the main.sql from SYSTEM user fine but not from 
the SPWK_APPS user and getting the below error. We have assigned all the SYSTEM 
privileges to SPWK_APPS user (see attached list of privilieges).

SQL> 
--------------------------------------------------------------------------------
SQL> -- Source: data/common/rhn_schedule_days.sql
SQL> 
--------------------------------------------------------------------------------
SQL>
SQL>
SQL>
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 (SPWK_APPS.RHN_SCHDY_SCHED_SCHEDULE_ID_FK)
violated - parent key not found


Thanks. Let me know if you've any questions.
Rinky

________________________________
From: Agrawal, Rinky
Sent: Thursday, March 25, 2010 4:32 PM
To: Hooker, Jonathan
Subject: RE: [Spacewalk-list] Issue with Spacewalk 0.8 install on CentOS 5 and 
Oracle 11G

Jonathan,

I was getting some errors while I was running main.sql. As you said, we have to 
clean everything in the schema. But there were existing connection to the 
spwk_apps user, so I could not drop it. I created another new schema SPWK_ADMIN 
and still give me some errors.

Can you ask in the mailing list following question?

What kinds of user privileges are required to run Main.sql? I have given the 
sysdba privileges and still give me below error.


SQL> CREATE TABLE web_customer
  2  (
  3      id                            NUMBER NOT NULL
  4                                        CONSTRAINT web_customer_id_pk 
PRIMARY KEY
  5                                        USING INDEX TABLESPACE 
[[web_index_tablespace_2]],
  6      name                          VARCHAR2(128) NOT NULL,
  7      oracle_customer_id            NUMBER
  8                                        CONSTRAINT web_customer_ocid_unq 
UNIQUE
  9                                        USING INDEX TABLESPACE 
[[web_index_tablespace_2]],
 10      oracle_customer_number        NUMBER
 11                                        CONSTRAINT web_customer_ocn_unq 
UNIQUE
 12                                        USING INDEX TABLESPACE 
[[web_index_tablespace_2]],
 13      customer_type                 CHAR(1)
 14                                        DEFAULT ('P') NOT NULL
 15                                        CONSTRAINT web_customer_type_list
 16                                            CHECK (customer_type in ( 'B' , 
'P' )),
 17      credit_application_completed  VARCHAR2(1),
 18      created                       DATE
 19                                        DEFAULT (sysdate) NOT NULL,
 20      modified                      DATE
 21                                        DEFAULT (sysdate) NOT NULL
 22  )
 23  TABLESPACE [[web_tablespace_2]]
 24  ENABLE ROW MOVEMENT
 25  ;
                                      USING INDEX TABLESPACE 
[[web_index_tablespace_2]],
                                                             *
ERROR at line 5:
ORA-02216: tablespace name expected


________________________________
From: Hooker, Jonathan
Sent: Monday, March 22, 2010 5:52 PM
To: Agrawal, Rinky
Subject: FW: [Spacewalk-list] Issue with Spacewalk 0.8 install on CentOS 5 and 
Oracle 11G

Rinky,

Here is the email thread as well as the .sql file that needs to run... I am 
also forwarding one other email that pertains to this. Please let me know if 
you have any questions! Thanks for your help!

Jonathan Hooker
Desktop Support - Engineering
Garmin International
[email protected]<mailto:[email protected]>

From: [email protected] 
[mailto:[email protected]] On Behalf Of Eric
Sent: Thursday, March 11, 2010 7:49 AM
To: [email protected]
Subject: Re: [Spacewalk-list] Issue with Spacewalk 0.8 install on CentOS 5 and 
Oracle 11G

Jonathon,

I had the exact same issue just a while back.

https://www.redhat.com/archives/spacewalk-list/2010-February/msg00191.html

We are running the script on Oracle RAC 11gR2.

Our DBA ran the main.sql script using sqlplus client.

-Eric

________________________________
From: "Hooker, Jonathan" <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Wed, March 10, 2010 10:13:20 AM
Subject: [Spacewalk-list] Issue with Spacewalk 0.8 install on CentOS 5 and 
Oracle 11G
Hi,

I am in the process of trying to get a spacewalk server up on CentOS 5 and 
Oracle 11g and the database does not fully populate. In the logs we are getting 
the following error:

ORA-02291: integrity constraint (SPWK_APPS.RHN_SCHDY_SCHED_SCHEDULE_ID_FK)
violated - parent key not found

And when we tried to manually populate the database using the main.sql from 
/etc/sysconfig/rhn/oracle we get the following error:

ORA-02303: cannot drop or replace a type with type or table dependents

In both cases we are able to tell that the database is getting partially 
populated, the population is just failing partway through.

Any help is much appreciated! Thanks a bunch!

Jonathan Hooker
Desktop Support - Engineering
Garmin International
[email protected]<mailto:[email protected]>


--------------------------------------------------------------------------------

This e-mail and any attachments may contain confidential material for the sole 
use of the intended recipient. If you are not the intended recipient, please be 
aware that any disclosure, copying, distribution or use of this e-mail or any 
attachment is prohibited. If you have received this e-mail in error, please 
contact the sender and delete all copies.



Thank you for your cooperation.

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to