'SPACEWALK-SCHEMA-1.5-TO-SPACEWALK-SCHEMA-1.6/125-ALTER-INDEX-RHNRAM.SQL.ORACL<br>------------------------------------------------------------------------------<br>spacewalk-schema-1.5-to-spacewalk-schema-1.6/125-alter-index-rhnRam.sql.oracle<br>
<br><br>Index dropped.<br><br>    ON rhnRam (server_id)<br>       *<br>ERROR at line 2:<br>ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found<br><br><br>this is the error into  spacewalk-schema-1.7.log <br><br><br>
<br><br><div class="gmail_quote">On Fri, May 25, 2012 at 3:57 PM, Jan Pazdziora <span dir="ltr"><<a href="mailto:jpazdziora@redhat.com" target="_blank">jpazdziora@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Fri, May 25, 2012 at 03:28:51PM +0200, stefano ciavarella wrote:<br>
> when i try to import the oracle's dump :<br>
><br>
> PGPASSWORD=spacepw psql -h localhost -U spaceuser spaceschema <<br>
> /var/spacewalk/spacewalk-oracle.dump<br>
>  setval<br>
> --------<br>
>   10926<br>
> (1 row)<br>
><br>
>  setval<br>
> --------<br>
>       1<br>
> (1 row)<br>
><br>
>  setval<br>
> --------<br>
>       1<br>
> (1 row)<br>
><br>
>  setval<br>
> --------<br>
>       1<br>
> (1 row)<br>
><br>
>  setval<br>
> --------<br>
>       1<br>
> (1 row)<br>
><br>
>  setval<br>
> --------<br>
>       1<br>
> (1 row)<br>
><br>
> ERROR:  relation "rhn_appinst_instance_id_seq" does not exist<br>
> LINE 1: select pg_catalog.setval('rhn_appinst_instance_id_seq', 1, f...<br>
>                                  ^<br>
<br>
</div></div>This means your current database schema is <= 1.6 while the new one<br>
that you have in PostgreSQL is 1.7. As noted in<br>
<br>
        <a href="https://fedorahosted.org/spacewalk/wiki/PostgreSQLFromOracle" target="_blank">https://fedorahosted.org/spacewalk/wiki/PostgreSQLFromOracle</a><br>
<br>
        Therefore, you need the PostgreSQL schema to be of the same<br>
        version as the one in Oracle. In other words, you need to<br>
        upgrade the Spacewalk and the Oracle schema to the latest<br>
        version, to match the schema that you will likely have in<br>
        PostgreSQL.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Jan Pazdziora<br>
Principal Software Engineer, Satellite Engineering, Red Hat<br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Stefano Ciavarella<br>