<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: ASA 12 dbunload command line problem in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaa-p/13849088#M4879931</link>
    <description>&lt;P&gt;What does happen when the old and new databases are not located in the same directory?&lt;/P&gt;
&lt;P&gt;BTW: Is there a specific reason to use -xx, i.e. an external unload. This will usually be slower than an internal one...&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;Just two more remarks: Build 12.0.1.3152 is the GA version. As you seem to plan the migration, I would highly recommend to use a newer 12.0.1 EBF. That may or may not have fixes to your issues.&lt;/P&gt;
&lt;P&gt;What does happen when you start the new database from a command line, say by something like&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="s"&gt;"%SQLANY12%\\bin32\\dbeng12"&lt;/SPAN&gt; &lt;SPAN class="o"&gt;-&lt;/SPAN&gt;&lt;SPAN class="n"&gt;n&lt;/SPAN&gt; &lt;SPAN class="n"&gt;MyEngine&lt;/SPAN&gt; &lt;SPAN class="o"&gt;-&lt;/SPAN&gt;&lt;SPAN class="n"&gt;o&lt;/SPAN&gt; &lt;SPAN class="n"&gt;C:&lt;/SPAN&gt;&lt;SPAN class="o"&gt;\\&lt;/SPAN&gt;&lt;SPAN class="n"&gt;MyLog&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;txt&lt;/SPAN&gt; &lt;SPAN class="n"&gt;C:&lt;/SPAN&gt;&lt;SPAN class="o"&gt;\\&lt;/SPAN&gt;&lt;SPAN class="n"&gt;databases&lt;/SPAN&gt;&lt;SPAN class="o"&gt;\\&lt;/SPAN&gt;&lt;SPAN class="n"&gt;asa12&lt;/SPAN&gt;&lt;SPAN class="o"&gt;\\&lt;/SPAN&gt;&lt;SPAN class="n"&gt;emr12_rebuild&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;db&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;Does that work, and can the database be startet? - Just to assure the command line start does work at all...&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2011 16:44:46 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2011-09-28T16:44:46Z</dc:date>
    <item>
      <title>ASA 12 dbunload command line problem</title>
      <link>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaq-p/13849086</link>
      <description>&lt;P&gt;I am converting all our databases from ASA 9.0.2.3508 to ASA 12.0.1.3152.&lt;/P&gt;
&lt;P&gt;Running the unload wizard in Sybase Central work fine and generates the 
following command line.&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;dbunload&lt;/SPAN&gt;  &lt;SPAN class="o"&gt;-&lt;/SPAN&gt;&lt;SPAN class="n"&gt;v&lt;/SPAN&gt; &lt;SPAN class="o"&gt;-&lt;/SPAN&gt;&lt;SPAN class="n"&gt;c&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"UID=dba;PWD=*******;DBF=C:\\databases\\asa12\\emr.db"&lt;/SPAN&gt; &lt;SPAN class="o"&gt;-&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ac&lt;/SPAN&gt; 
&lt;SPAN class="s"&gt;"UID=dba;PWD=***;DBF=C:\\databases\\asa12\\emr12_rebuild.db"&lt;/SPAN&gt; &lt;SPAN class="o"&gt;-&lt;/SPAN&gt;&lt;SPAN class="n"&gt;xx&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;Using the wizard, the process runs to completion with no errors.&lt;/P&gt;
&lt;P&gt;When I attempt to run this manually, I get this error&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;***** SQL error: Unable to start specified database: &lt;BR /&gt;
C:\\databases\\asa12\\emr12_rebuild.db
was created by a different version of 
the software&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am prefixing the dbunload command with the correct path for ASA 12. I even 
tried running the command from the ASA12bin32 directory thinking that there 
may be some kind of pathing issue, but with no success and getting the same 
error.&lt;/P&gt;
&lt;P&gt;The emr12_rebuild.db was created using the DBinit from ASA 12. We are 
manually creating the database ahead of time so that we can pre-allocate the 
space for the database and make the load faster (the datebases are all over 
100 GB or larger) and not have the resulting db file be fragmented.&lt;/P&gt;
&lt;P&gt;We would prefer to be able to this with a single batch file and not have to 
manually run the wizard as doing so exposes our passwords and we do not wish 
to do that.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 16:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaq-p/13849086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-28T16:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: ASA 12 dbunload command line problem</title>
      <link>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaa-p/13849088#M4879931</link>
      <description>&lt;P&gt;What does happen when the old and new databases are not located in the same directory?&lt;/P&gt;
&lt;P&gt;BTW: Is there a specific reason to use -xx, i.e. an external unload. This will usually be slower than an internal one...&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;Just two more remarks: Build 12.0.1.3152 is the GA version. As you seem to plan the migration, I would highly recommend to use a newer 12.0.1 EBF. That may or may not have fixes to your issues.&lt;/P&gt;
&lt;P&gt;What does happen when you start the new database from a command line, say by something like&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="s"&gt;"%SQLANY12%\\bin32\\dbeng12"&lt;/SPAN&gt; &lt;SPAN class="o"&gt;-&lt;/SPAN&gt;&lt;SPAN class="n"&gt;n&lt;/SPAN&gt; &lt;SPAN class="n"&gt;MyEngine&lt;/SPAN&gt; &lt;SPAN class="o"&gt;-&lt;/SPAN&gt;&lt;SPAN class="n"&gt;o&lt;/SPAN&gt; &lt;SPAN class="n"&gt;C:&lt;/SPAN&gt;&lt;SPAN class="o"&gt;\\&lt;/SPAN&gt;&lt;SPAN class="n"&gt;MyLog&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;txt&lt;/SPAN&gt; &lt;SPAN class="n"&gt;C:&lt;/SPAN&gt;&lt;SPAN class="o"&gt;\\&lt;/SPAN&gt;&lt;SPAN class="n"&gt;databases&lt;/SPAN&gt;&lt;SPAN class="o"&gt;\\&lt;/SPAN&gt;&lt;SPAN class="n"&gt;asa12&lt;/SPAN&gt;&lt;SPAN class="o"&gt;\\&lt;/SPAN&gt;&lt;SPAN class="n"&gt;emr12_rebuild&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;db&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;Does that work, and can the database be startet? - Just to assure the command line start does work at all...&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 16:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaa-p/13849088#M4879931</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2011-09-28T16:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: ASA 12 dbunload command line problem</title>
      <link>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaa-p/13849089#M4879932</link>
      <description>&lt;P&gt;different directories resutls in same error.
The -xx was added by the wizard
the database can be started.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 20:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaa-p/13849089#M4879932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-28T20:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: ASA 12 dbunload command line problem</title>
      <link>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaa-p/13849090#M4879933</link>
      <description>&lt;P&gt;I will also experiment with just the -an option (and -ii) to see what effect that has.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 20:23:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaa-p/13849090#M4879933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-28T20:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: ASA 12 dbunload command line problem</title>
      <link>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaa-p/13849087#M4879930</link>
      <description>&lt;P&gt;I guess the following quote from the &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbadmin/dbunload.html"&gt;DBUNLOAD utility doc&lt;/A&gt; does apply here - relöated to the &lt;STRONG&gt;-ac option&lt;/STRONG&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;If the original database was created
using version 9 or earlier of SQL
Anywhere and the new database is not
already running, &lt;STRONG&gt;you must provide a
database server name in the -ac
option&lt;/STRONG&gt;. For example: &lt;/P&gt;
&lt;P&gt;dbunload -c
"UID=DBA;PWD=sql;DBF=c:mydata.db" -ac "UID=DBA;PWD=sql;DBF=c:mynewdata.db;Server=newserver"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I suspect that without giving a server name, DBUNLOAD tries to load the new database on the engine it has started for the old database (which is the particular "Database Unload Support Engine" - dbunlspt.exe - a v9 database engine). And that will obviously fail for a new v10+ database.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 03:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaa-p/13849087#M4879930</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2011-09-29T03:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: ASA 12 dbunload command line problem</title>
      <link>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaa-p/13849091#M4879934</link>
      <description>&lt;P&gt;That works.&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 13:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaa-p/13849091#M4879934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-29T13:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: ASA 12 dbunload command line problem</title>
      <link>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaa-p/13849092#M4879935</link>
      <description>&lt;P&gt;Feel free to accept this answer...&lt;/P&gt;
&lt;P&gt;Cf. &lt;A href="http://sqlanywhere-forum.sap.com/questions/7748"&gt;this FAQ&lt;/A&gt; how to do so:)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 13:34:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/asa-12-dbunload-command-line-problem/qaa-p/13849092#M4879935</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2011-09-29T13:34:43Z</dc:date>
    </item>
  </channel>
</rss>

