<?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: ALTER DBSPACE question when unloading/reloading in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839987#M4870830</link>
    <description>&lt;P&gt;If the database file will become that large, it will be most efficient to grow the database file in one step. I would use the CREATE DATABASE DATABASE SIZE option for that.&lt;/P&gt;
&lt;P&gt;Note that an unloaded database might be smaller than the original one (because of less free pages and morecompact row storage) so be sure the initial size is not "over-sized". It's often helpful to do a test unload to find out about the typical reload database size.&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2017 04:08:50 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2017-05-31T04:08:50Z</dc:date>
    <item>
      <title>ALTER DBSPACE question when unloading/reloading</title>
      <link>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaq-p/13839986</link>
      <description>&lt;P&gt;Hi,
I'm unloading/reloading a more or less large database (75GB).   I understand that to optimize the reloading time I should do an ALTER DBSPACE on the new database file.&lt;/P&gt;
&lt;P&gt;I was thinking on doing:&lt;/P&gt;
&lt;P&gt;ALTER DBSPACE 60GB&lt;/P&gt;
&lt;P&gt;But I was wondering whether this is going to take a very long time, and maybe it was more optimal to use a smaller size....&lt;/P&gt;
&lt;P&gt;Do you guys have any comments about this?&lt;/P&gt;
&lt;P&gt;This is an ASA9 database.  At this moment I'm unloading/reloading in version 9, but hopefully in a couple of months I'm doing this again for ASA17.  &lt;/P&gt;
&lt;P&gt;Thanks,
Edgard&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 19:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaq-p/13839986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-30T19:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DBSPACE question when unloading/reloading</title>
      <link>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839987#M4870830</link>
      <description>&lt;P&gt;If the database file will become that large, it will be most efficient to grow the database file in one step. I would use the CREATE DATABASE DATABASE SIZE option for that.&lt;/P&gt;
&lt;P&gt;Note that an unloaded database might be smaller than the original one (because of less free pages and morecompact row storage) so be sure the initial size is not "over-sized". It's often helpful to do a test unload to find out about the typical reload database size.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 04:08:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839987#M4870830</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2017-05-31T04:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DBSPACE question when unloading/reloading</title>
      <link>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839988#M4870831</link>
      <description>&lt;P&gt;The main reason to ALTER ADD space is (was?) to give you a chance to defragment the allocated disk space before the loading the data.&lt;/P&gt;
&lt;P&gt;I'm not sure defragmentation is a big concern any more, at least not with Windows 7... I just ran ALTER DBSPACE SYSTEM ADD 60 GB and the resulting file only had 21 fragments; in olden days it would have had thousands.&lt;/P&gt;
&lt;P&gt;Anyway, to answer your question about how long it would take, here are some test numbers...&lt;/P&gt;
&lt;PRE&gt;SELECT @@VERSION;

@@VERSION
'9.0.2.3951'

ALTER DBSPACE SYSTEM ADD 60 GB;

Execution time: 2333.266 seconds 

...which is 39 minutes

Windows 7 on Dell XPS 8700 Intel i7-4790 3.60 GHz 16.0 GB RAM 1 TB drive
&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 May 2017 04:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839988#M4870831</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2017-05-31T04:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DBSPACE question when unloading/reloading</title>
      <link>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839989#M4870832</link>
      <description>&lt;P&gt;CREATE DATABASE ... DATABASE SIZE was added in Version 10.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 04:37:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839989#M4870832</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2017-05-31T04:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DBSPACE question when unloading/reloading</title>
      <link>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839990#M4870833</link>
      <description>&lt;P&gt;Nevertheless, doing a reload against an initially small database that will expand to 60 GB during the reload will take at least that time for the file growth operations, so it's no advantage in my book. And when the new database is already "pre-grown", the downtime for the whole unload/reload should be noticeably shorter (in case that matters).&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 16:29:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839990#M4870833</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2017-05-31T16:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DBSPACE question when unloading/reloading</title>
      <link>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839991#M4870834</link>
      <description>&lt;P&gt;The downtime argument is a good one. Sometimes it's not "how long will it take?" but "can I spend the time offline?"&lt;/P&gt;
&lt;P&gt;Another example is backup and validation. Validation is a brutal process that takes a very long time but can be done on a backup copy, offline, on a separate computer so it doesn't affect online operations.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 04:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839991#M4870834</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2017-06-01T04:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DBSPACE question when unloading/reloading</title>
      <link>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839992#M4870835</link>
      <description>&lt;P&gt;This might be too obvious a point, but the biggest single factor in the speed is probably to avoid reading and writing to the same physical disk at the same time. So if you have two local disks available, have the new database on one and the old one on the other.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 07:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839992#M4870835</guid>
      <dc:creator>justin_willey</dc:creator>
      <dc:date>2017-06-01T07:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALTER DBSPACE question when unloading/reloading</title>
      <link>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839993#M4870836</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;biggest single factor&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes... in olden times, before giant RAM caches... like dbeng50 "&lt;B&gt;&lt;A href="http://document.ihg.uni-duisburg.de/Documentation/SYBSsa50/00000316.htm"&gt;By default, the database server usess (sic) 2 megabytes of memory for caching.&lt;/A&gt;&lt;/B&gt;" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://cdn.meme.am/cache/instances/folder306/67798306.jpg" width="150" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 11:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/alter-dbspace-question-when-unloading-reloading/qaa-p/13839993#M4870836</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2017-06-01T11:08:48Z</dc:date>
    </item>
  </channel>
</rss>

