<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I got this error..<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>spaceschema=# create table log;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>ERROR:  syntax error at or near ";"<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>LINE 1: create table log;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> spacewalk-list-bounces@redhat.com [mailto:spacewalk-list-bounces@redhat.com] <b>On Behalf Of </b>Daniel Souvignier<br><b>Sent:</b> Tuesday, January 07, 2014 10:08 AM<br><b>To:</b> spacewalk-list@redhat.com<br><b>Subject:</b> Re: [Spacewalk-list] OracleXE to Postgresql mig problem<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Is it just this relation? If yes, try to create a new one from the psql interpreter. For that, login to psql with spaceuser and password of spaceuser and do a <br><br>CREATE TABLE log;<br><br>Mind the semicolon, it's important. After that, try importing the oracle dump again.<br><br>Regards,<br>Daniel<br><br>Am<br> 07.01.2014 09:53, schrieb Željko Dokman:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre>Please can so body help me, my database knowledge is quite poor, so this error is a show stopper for my oracle>postgres migration<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Best regards<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>-----Original Message-----<o:p></o:p></pre><pre>From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [<a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a>] On Behalf Of Milan Zázrivec<o:p></o:p></pre><pre>Sent: Friday, January 03, 2014 5:03 PM<o:p></o:p></pre><pre>To: <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><o:p></o:p></pre><pre>Subject: Re: [Spacewalk-list] OracleXE to Postgresql mig problem<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>On Friday 03 January 2014 15:55:01 Željko Dokman wrote:<o:p></o:p></pre><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre>Hi all<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>I need some help with migrating my spacewalk backend DB from Oracle XE <o:p></o:p></pre><pre>to PostgreSQL.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>I am following instructions from<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><a href="https://fedorahosted.org/spacewalk/wiki/PostgreSQLFromOracle">https://fedorahosted.org/spacewalk/wiki/PostgreSQLFromOracle</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>And everything was going OK until the point where Oracle dump is to be <o:p></o:p></pre><pre>imported in to postgresql.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>[root@skynet ~]# PGPASSWORD=******* psql -h localhost -U spaceuser <o:p></o:p></pre><pre>spaceschema < /tmp/spacewalk-oracle.dump<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>UPDATE 0<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>ERROR:  relation "log" does not exist<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Can anyone help me to resolve this problem?<o:p></o:p></pre></blockquote><pre><o:p> </o:p></pre><pre>Has your PostgreSQL schema been properly populated?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Do your Oracle and PostgreSQL schema versions match?<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>-MZ<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>Spacewalk-list mailing list<o:p></o:p></pre><pre><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><o:p></o:p></pre><pre><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><o:p></o:p></pre><p class=MsoNormal><br><br><br><o:p></o:p></p><pre>_______________________________________________<o:p></o:p></pre><pre>Spacewalk-list mailing list<o:p></o:p></pre><pre><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><o:p></o:p></pre><pre><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><o:p></o:p></pre></blockquote><p class=MsoNormal><br><br><br><o:p></o:p></p><pre>-- <o:p></o:p></pre><pre>----------------------------------------------------------------<o:p></o:p></pre><pre>Daniel Souvignier<o:p></o:p></pre><pre>Fachinformatiker Systemintegration in Ausbildung<o:p></o:p></pre><pre>Lehrstuhl für integrierte Analogschaltungen<o:p></o:p></pre><pre>RWTH Aachen<o:p></o:p></pre><pre>Sommerfeldstraße 24 (Walther-Schottky-Haus)<o:p></o:p></pre><pre>52074 Aachen<o:p></o:p></pre><pre>Raum 24C 313<o:p></o:p></pre><pre>Tel.:0241/80-27771<o:p></o:p></pre><pre><a href="http://www.ias.rwth-aachen.de">www.ias.rwth-aachen.de</a> <o:p></o:p></pre></div></body></html>