<?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: Isolation level snapshot in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817872#M4848715</link>
    <description>&lt;P&gt;But a multi-row UPDATE or DELETE would be logged as lots of single-row operations, wouldn't it? (If so, that would not explain the log growth IMHO).&lt;/P&gt;
&lt;P&gt;At least that's what I've learned from translating logs for SQL Remote affairs...&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2013 09:06:52 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2013-06-07T09:06:52Z</dc:date>
    <item>
      <title>Isolation level snapshot</title>
      <link>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaq-p/13817863</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;We had some issues with locking on some tables and materialized view, so we enabled snapshot using this command: SET OPTION PUBLIC.allow_snapshot_isolation = 'On';
We're aware that this would effect the logfile.&lt;/P&gt;
&lt;P&gt;Snapshot had no effect on our software, so we turned it off again and tuned our code instead.&lt;/P&gt;
&lt;P&gt;But now the logfile keeps growing at an alarming pace: 6GB in the last 5 days, for a database at 10GB. We have to trunc it every 3 days to make sure we don't run out of diskspace.
We also tried to run "Translate log file" to see what's going on, but on a 2GB logfile dbtran.exe returns a 179MB sql-file. So where's the rest of the log? All the checkpoints are there, and it looks very normal. The size of the sql-file makes me think that the logfile should be approx 200Mb, and not at all 2GB.&lt;/P&gt;
&lt;P&gt;Before our test with snapshot, the logfile acted all normal an noone ever thought about it.&lt;/P&gt;
&lt;P&gt;Could it be that snapshot is still active in some way?
The option is off - checked it just now.&lt;/P&gt;
&lt;P&gt;Do we have to restart the server?&lt;/P&gt;
&lt;P&gt;Any other tips?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Bjarne&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2013 03:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaq-p/13817863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-07T03:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Isolation level snapshot</title>
      <link>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817864#M4848707</link>
      <description>&lt;P&gt;What does&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="n"&gt;DB_PROPERTY&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'SnapshotIsolationState'&lt;/SPAN&gt; &lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;reveal? It should return 'OFF' if all transactions that were active during the phase when snapshot isolation was set have finished in the meantime.&lt;/P&gt;
&lt;P&gt;However, AFAIK, the row versions are not stored in the TL but in the temporary file, so snapshot isolation should not explain the TL growth at all.&lt;/P&gt;
&lt;P&gt;You can use&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="n"&gt;DB_PROPERTY&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'VersionStorePages'&lt;/SPAN&gt; &lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;to check whether the temporary file does contain pages for row versions at all.&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;FWIW, what DBTRAN options did you use? There are a bunch of them to show otherwise "hidden" contents, say for auditing, replication, triggers, uncommited ops and the like. - Possibly the usage of them would reveal (much) more log contents?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2013 04:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817864#M4848707</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-06-07T04:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Isolation level snapshot</title>
      <link>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817865#M4848708</link>
      <description>&lt;P&gt;SELECT DB_PROPERTY ( 'SnapshotIsolationState' ) =&amp;gt; 'Off'&lt;/P&gt;
&lt;P&gt;SELECT DB_PROPERTY ( 'VersionStorePages' ) =&amp;gt; 0&lt;/P&gt;
&lt;P&gt;I used DBTRAN from Sybase Central with "Include uncommiited transactions" and "Include trigger-generated transactions", all checkpoints and all users.
It results in this statement: dbtran -a "D:\\Data\\Leroy\\maritech.log" "c:\\temp\\test.sql"&lt;/P&gt;
&lt;P&gt;A colleague of mine tried the -g switch and got a 7GB sql-file from the 2GB logfile.
Which sounds more normal.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2013 04:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817865#M4848708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-07T04:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Isolation level snapshot</title>
      <link>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817866#M4848709</link>
      <description>&lt;P&gt;What does SELECT @@VERSION return?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2013 05:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817866#M4848709</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2013-06-07T05:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Isolation level snapshot</title>
      <link>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817867#M4848710</link>
      <description>&lt;P&gt;SELECT @@VERSION =&amp;gt; 12.0.1.3726&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2013 05:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817867#M4848710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-07T05:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Isolation level snapshot</title>
      <link>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817868#M4848711</link>
      <description>&lt;P&gt;"row versions are not stored in the TL" ... even from first principles, that statement rings true. During normal operations the transaction log is a sequential write-only file, it would kill disk performance if the server forced the drive to do random I/O. Recovery mode, and the MobiLink client and SQL Remote processes, that's when the log is read, but even those are pretty much sequential AFAIK.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2013 05:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817868#M4848711</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2013-06-07T05:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Isolation level snapshot</title>
      <link>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817869#M4848712</link>
      <description>&lt;P&gt;Well, it's also &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbusage/transact-s-4136352.html"&gt;officially documented&lt;/A&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Row versions&lt;/STRONG&gt;&lt;BR /&gt;
&lt;/P&gt;
&lt;P&gt;When snapshot isolation is enabled for a database, each time a row is updated, the database server adds a copy of the original row to the version stored in the temporary file.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 07 Jun 2013 05:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817869#M4848712</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-06-07T05:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Isolation level snapshot</title>
      <link>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817870#M4848713</link>
      <description>&lt;P&gt;-g enables "-a" but also shows audit records and trigger-generated actions. Since -g changes your SQL output to 7GB compared with 179MB with "-a" alone, you either have auditing enabled or some very busy triggers.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2013 06:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817870#M4848713</guid>
      <dc:creator>johnsmirnios</dc:creator>
      <dc:date>2013-06-07T06:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Isolation level snapshot</title>
      <link>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817871#M4848714</link>
      <description>&lt;P&gt;I'm voting for &lt;A href="http://sqlanywhere.blogspot.com/2013/05/characteristic-errors-revision-2.html"&gt;Characteristic Error&lt;/A&gt; Number 24, perhaps applied to an UPDATE: "Omitting a PRIMARY KEY column from the WHERE clause, thus turning a singleton SELECT (or DELETE!) into something rather more enthusiastic than expected"&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2013 08:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817871#M4848714</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2013-06-07T08:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Isolation level snapshot</title>
      <link>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817872#M4848715</link>
      <description>&lt;P&gt;But a multi-row UPDATE or DELETE would be logged as lots of single-row operations, wouldn't it? (If so, that would not explain the log growth IMHO).&lt;/P&gt;
&lt;P&gt;At least that's what I've learned from translating logs for SQL Remote affairs...&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2013 09:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/isolation-level-snapshot/qaa-p/13817872#M4848715</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2013-06-07T09:06:52Z</dc:date>
    </item>
  </channel>
</rss>

