<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Strange... That should work, it is even
      standard SQL language...<br>
      <br>
      Am 07.01.2014 11:13, schrieb Željko Dokman:<br>
    </div>
    <blockquote
      cite="mid:DC0008817123784992EB40D773A48BA845B01B@MBUDAG1.mbu.local"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <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]-->
      <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">
                <a class="moz-txt-link-abbreviated" href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>
                [<a class="moz-txt-link-freetext" href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a>] <b>On Behalf
                  Of </b>Daniel Souvignier<br>
                <b>Sent:</b> Tuesday, January 07, 2014 10:08 AM<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><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 moz-do-not-send="true" href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [<a moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><o:p></o:p></pre>
          <pre><a moz-do-not-send="true" 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 moz-do-not-send="true" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><o:p></o:p></pre>
          <pre><a moz-do-not-send="true" 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 moz-do-not-send="true" href="http://www.ias.rwth-aachen.de">www.ias.rwth-aachen.de</a> <o:p></o:p></pre>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Spacewalk-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
----------------------------------------------------------------
Daniel Souvignier
Fachinformatiker Systemintegration in Ausbildung
Lehrstuhl für integrierte Analogschaltungen
RWTH Aachen
Sommerfeldstraße 24 (Walther-Schottky-Haus)
52074 Aachen
Raum 24C 313
Tel.:0241/80-27771
<a class="moz-txt-link-abbreviated" href="http://www.ias.rwth-aachen.de">www.ias.rwth-aachen.de</a> </pre>
  </body>
</html>