<?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: Problem with ALTER DATABASE CALIBRATE DBSPACE TEMPORARY; in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/problem-with-alter-database-calibrate-dbspace-temporary/qaa-p/13848281#M4879124</link>
    <description>&lt;P&gt;That'll be it then - ooops.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jan 2015 16:55:39 GMT</pubDate>
    <dc:creator>justin_willey</dc:creator>
    <dc:date>2015-01-16T16:55:39Z</dc:date>
    <item>
      <title>Problem with ALTER DATABASE CALIBRATE DBSPACE TEMPORARY;</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-with-alter-database-calibrate-dbspace-temporary/qaq-p/13848279</link>
      <description>&lt;P&gt;From time to time we find it worthwhile running CALIBRATE statements on servers, especially those with fancy disk systems - sometimes the improvement in performance can be quite dramatic.&lt;/P&gt;
&lt;P&gt;Usually we just run 
&lt;/P&gt;&lt;PRE&gt;ALTER DATABASE CALIBRATE SERVER;
&lt;/PRE&gt;
which works nicely and according to the &lt;A href="http://dcx.sap.com/1201/en/dbreference/alter-database-statement.html" target="_blank" rel="noopener noreferrer"&gt;docs&lt;/A&gt; calibrates all dbspaces except the TEMPORARY dbspace. However in a recent case, we thought we might as well do the TEMPORARY dbspace as well - but
&lt;PRE&gt;ALTER DATABASE CALIBRATE DBSPACE TEMPORARY;
&lt;/PRE&gt;
produces this error:&lt;P&gt;&lt;/P&gt;
&lt;P&gt; &lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Problem with ALTER DATABASE CALIBRATE DBSPACE TEMPORARY"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/189789i3260BF00AB638B7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Problem with ALTER DATABASE CALIBRATE DBSPACE TEMPORARY" alt="Problem with ALTER DATABASE CALIBRATE DBSPACE TEMPORARY" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For what it's worth 
&lt;/P&gt;&lt;PRE&gt;ALTER DATABASE CALIBRATE DBSPACE SYSTEM;
&lt;/PRE&gt;
works fine. I've tried it on a variety of systems from v10 to v16 - all with the same result.&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Am I doing something idiotic?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 14:36:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-with-alter-database-calibrate-dbspace-temporary/qaq-p/13848279</guid>
      <dc:creator>justin_willey</dc:creator>
      <dc:date>2015-01-16T14:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALTER DATABASE CALIBRATE DBSPACE TEMPORARY;</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-with-alter-database-calibrate-dbspace-temporary/qaa-p/13848280#M4879123</link>
      <description>&lt;P&gt;Try growing the temporary file first, as with this query on a large table:&lt;/P&gt;
&lt;PRE&gt;   SELECT a.* INTO #t FROM t AS a, t AS b;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Jan 2015 15:20:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-with-alter-database-calibrate-dbspace-temporary/qaa-p/13848280#M4879123</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2015-01-16T15:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALTER DATABASE CALIBRATE DBSPACE TEMPORARY;</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-with-alter-database-calibrate-dbspace-temporary/qaa-p/13848281#M4879124</link>
      <description>&lt;P&gt;That'll be it then - ooops.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2015 16:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-with-alter-database-calibrate-dbspace-temporary/qaa-p/13848281#M4879124</guid>
      <dc:creator>justin_willey</dc:creator>
      <dc:date>2015-01-16T16:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALTER DATABASE CALIBRATE DBSPACE TEMPORARY;</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-with-alter-database-calibrate-dbspace-temporary/qaa-p/13848282#M4879125</link>
      <description>&lt;P&gt;As Breck originally said - but then tactfully edited out, if I'd looked up SQLCode -860 properly, I'd have seen that the issue is that the TEMPORARY DBSPACE can't be calibrated until it has reached an unspecified minimum size.&lt;/P&gt;
&lt;P&gt;As you have to have exclusive access to the database to run a calibration, I was doing it after a restart of the database, at which point the temporary dbspace would have been tiny. So as Breck points out, the solution is to do something to grow it using your own connection, before trying to calibrate it.&lt;/P&gt;
&lt;P&gt;Moral of the story (as so often) - RTFM.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jan 2015 07:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-with-alter-database-calibrate-dbspace-temporary/qaa-p/13848282#M4879125</guid>
      <dc:creator>justin_willey</dc:creator>
      <dc:date>2015-01-17T07:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALTER DATABASE CALIBRATE DBSPACE TEMPORARY;</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-with-alter-database-calibrate-dbspace-temporary/qaa-p/13848283#M4879126</link>
      <description>&lt;P&gt;Im my environment on a Mac, the&lt;/P&gt;
&lt;LI-CODE lang="sql"&gt;ALTER DATABASE CALIBRATE DBSPACE temporary&lt;/LI-CODE&gt;&lt;CODE&gt;

&lt;/CODE&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;returns SQLQODE=-308 AND shuts down my database server (dbsrv17).&lt;/P&gt;
&lt;P&gt;I executed previously the mentioned SELECT stmt for a table to grow the temporary file, but it did not help (in my case). The statement I executed is:
select tc.* into #timetable_classes from timetable_classes as tc, timetable_classes as tc1.&lt;/P&gt;
&lt;P&gt;Can I see the temporary table #timetable_classes somewhere? &lt;/P&gt;
&lt;P&gt;I noticed that in SQL Central menu Dbspaces &amp;gt; temporary is still empty after executing the above SELECT. Is this to be expected?&lt;/P&gt;
&lt;P&gt;I also wonder what typical performance gain one can expect executing the various ALTER DATABASE CALIBRATE statements? Or does this extremely vary so no useful statement can be made?&lt;/P&gt;
&lt;P&gt;Regards, Robert&lt;/P&gt;
&lt;P&gt;DB in use: SQL Anywhere 17.0.10.5853&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 04:08:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-with-alter-database-calibrate-dbspace-temporary/qaa-p/13848283#M4879126</guid>
      <dc:creator>huber1</dc:creator>
      <dc:date>2021-12-02T04:08:00Z</dc:date>
    </item>
  </channel>
</rss>

