<?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: Specified Database file already in use when using dbunload in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/specified-database-file-already-in-use-when-using-dbunload/qaa-p/13849085#M4879928</link>
    <description>&lt;P&gt;Ah, I see - yes, this is documented behaviour - from the DBUNLOD doc page:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;To unload a database, first ensure that the database is not already running. Then, run dbunload, specifying a DBA user and password, and referencing the database with the DBF= connection parameter.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Thu, 19 Feb 2015 03:18:17 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2015-02-19T03:18:17Z</dc:date>
    <item>
      <title>Specified Database file already in use when using dbunload</title>
      <link>https://community.sap.com/t5/technology-q-a/specified-database-file-already-in-use-when-using-dbunload/qaq-p/13849081</link>
      <description>&lt;P&gt;Hi I have attempted to follow the post on changing the database page size from February 2013.&lt;/P&gt;
&lt;P&gt;I am using Sybase ASA 12.0.1.3942.&lt;/P&gt;
&lt;P&gt;Step 1 was to create a fresh database using dbinit - p 8k c:\\sqlData\\NewData\\MyData12.db&lt;/P&gt;
&lt;P&gt;Step 2 was to use the dbunload command to copy the existing database to the new one with:&lt;/P&gt;
&lt;P&gt;dbunload -c "UID=DBA;PWD=sql;DBN=MyData12;DBF=c:\\sqlData\\MyData12.db" -ar "UID=DBA;PWD=sql;DBN=MyDataNew;DBF=c:\\sqlData\\NewData\\MyData12.db"&lt;/P&gt;
&lt;P&gt;This results in SQL Error: Specified database file already exists.&lt;/P&gt;
&lt;P&gt;I have tried using the -ac and -an switch both giving the same error.&lt;/P&gt;
&lt;P&gt;What have I missed?&lt;/P&gt;
&lt;P&gt;I wish to change the existing database 4k page size to 8k page size keeping the same database name and file. Just as in the orignal post with the -ar option, but I can't seem to get it to work.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2015 22:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/specified-database-file-already-in-use-when-using-dbunload/qaq-p/13849081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-17T22:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Specified Database file already in use when using dbunload</title>
      <link>https://community.sap.com/t5/technology-q-a/specified-database-file-already-in-use-when-using-dbunload/qaa-p/13849082#M4879925</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Is each DB as follows?&lt;BR /&gt;
 c:\\sqlData\\MyData12.db = 4k&lt;BR /&gt;
 c:\\sqlData\\NewData\\MyData12.db = 8k&lt;/P&gt;
&lt;P&gt;Please try the following command.&lt;/P&gt;
&lt;P&gt;dbunload -c "UID=DBA;PWD=sql;SERVER=MyData12;DBF=c:\\sqlData\\MyData12.db" -ac "UID=DBA;PWD=sql;SERVER=MyDataNew;DBF=c:\\sqlData\\NewData\\MyData12.db" -xx&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;
Atsushi&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2015 02:53:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/specified-database-file-already-in-use-when-using-dbunload/qaa-p/13849082#M4879925</guid>
      <dc:creator>asa25</dc:creator>
      <dc:date>2015-02-18T02:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Specified Database file already in use when using dbunload</title>
      <link>https://community.sap.com/t5/technology-q-a/specified-database-file-already-in-use-when-using-dbunload/qaa-p/13849083#M4879926</link>
      <description>&lt;P&gt;When you want to reload into an existing database, you cannot use option "-ar" as that creates a new database by design and replaces the old one. Instead you want to use option "-ac" instead.&lt;/P&gt;
&lt;P&gt;If you only want to change the pagesize, you could omit the step to create a new database and could then use something like (untested):&lt;/P&gt;
&lt;PRE class="codehilite"&gt;&lt;CODE&gt;dbunload -c "UID=DBA;PWD=sql;DBN=MyData12;DBF=c:\\sqlData\\MyData12.db" -ap 8k -ar


&lt;P&gt;in one step.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Feb 2015 03:56:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/specified-database-file-already-in-use-when-using-dbunload/qaa-p/13849083#M4879926</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2015-02-18T03:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Specified Database file already in use when using dbunload</title>
      <link>https://community.sap.com/t5/technology-q-a/specified-database-file-already-in-use-when-using-dbunload/qaa-p/13849084#M4879927</link>
      <description>&lt;P&gt;Hi Volker,&lt;/P&gt;
&lt;P&gt;Didn't work, I get the same error "Specified database file already in use". Do I have to stop the database service first?&lt;/P&gt;
&lt;P&gt;The answer is yes. I have to stop the database service first. Doh!!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2015 18:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/specified-database-file-already-in-use-when-using-dbunload/qaa-p/13849084#M4879927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-18T18:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Specified Database file already in use when using dbunload</title>
      <link>https://community.sap.com/t5/technology-q-a/specified-database-file-already-in-use-when-using-dbunload/qaa-p/13849085#M4879928</link>
      <description>&lt;P&gt;Ah, I see - yes, this is documented behaviour - from the DBUNLOD doc page:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;To unload a database, first ensure that the database is not already running. Then, run dbunload, specifying a DBA user and password, and referencing the database with the DBF= connection parameter.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 19 Feb 2015 03:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/specified-database-file-already-in-use-when-using-dbunload/qaa-p/13849085#M4879928</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2015-02-19T03:18:17Z</dc:date>
    </item>
  </channel>
</rss>

