<?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: backward compatiblity in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/backward-compatiblity/qaa-p/10968454#M4028113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest to do tests with the compatibility mode and without the compatibility mode in ASE16.&lt;/P&gt;&lt;P&gt;When we moved from ASE12.5 to ASE15.5, some of our stored procedures were slower in ASE15.5 so we configured these stored procedures to use the compatibility mode so that they run with the ASE12.5 optimizer. Then later we re-wrote the stored procedure to be faster in ASE15.5 to disable the compatibility mode.&lt;/P&gt;&lt;P&gt;I think a similar scenario can be applied to go from ASE12.5.4 to ASE16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Session level – use set compatibility_mode on to enable compatibility mode at the current level or inside the stored procedure&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Server-wide – use sp_configure 'enable compatibility mode', 1 to enable thee compatibility mode for the server.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2015 13:13:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-04-23T13:13:32Z</dc:date>
    <item>
      <title>backward compatiblity</title>
      <link>https://community.sap.com/t5/technology-q-a/backward-compatiblity/qaq-p/10968453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we are planning to upgrade our legacy systems with versions 12.5.4 to latest 16&lt;/P&gt;&lt;P&gt;I want to explore the option of backward compatibility. Is this automatically enabled or there is an option that needs to be installed or configured?&lt;/P&gt;&lt;P&gt;If there are resources for testing the compatibility, please point me to those as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 07:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/backward-compatiblity/qaq-p/10968453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-23T07:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: backward compatiblity</title>
      <link>https://community.sap.com/t5/technology-q-a/backward-compatiblity/qaa-p/10968454#M4028113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest to do tests with the compatibility mode and without the compatibility mode in ASE16.&lt;/P&gt;&lt;P&gt;When we moved from ASE12.5 to ASE15.5, some of our stored procedures were slower in ASE15.5 so we configured these stored procedures to use the compatibility mode so that they run with the ASE12.5 optimizer. Then later we re-wrote the stored procedure to be faster in ASE15.5 to disable the compatibility mode.&lt;/P&gt;&lt;P&gt;I think a similar scenario can be applied to go from ASE12.5.4 to ASE16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Session level – use set compatibility_mode on to enable compatibility mode at the current level or inside the stored procedure&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Server-wide – use sp_configure 'enable compatibility mode', 1 to enable thee compatibility mode for the server.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 13:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/backward-compatiblity/qaa-p/10968454#M4028113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-23T13:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: backward compatiblity</title>
      <link>https://community.sap.com/t5/technology-q-a/backward-compatiblity/qaa-p/10968455#M4028114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would be very careful about using 'compatibility mode' to solve everything.&amp;nbsp; It will not support many of the new ASE features (e.g. partitions) and can mask other issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many years ago, there was a Sybase site dedicated to ASE migrations to ASE 15, but that is no longer available, and, besides, the documentation would be stale, considering the plethora of new features available in the 15.x and 16.x codelines.&amp;nbsp; (e.g. DirectIO, optimizer goals, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest first starting with the current migration guide at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc00967.1550/html/MigrationGuide/title.htm" title="http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc00967.1550/html/MigrationGuide/title.htm"&gt;Migration Technology Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Along with the guide, some of the strongest suggestions would be to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Ensure that you delete all statistics for all tables (if restoring or upgrading an existing 12.5.x database).&lt;/LI&gt;&lt;LI&gt;Never use an old ASE .cfg file.&lt;/LI&gt;&lt;LI&gt;Run 'update index statistics' on all tables.&amp;nbsp; (This can help the most in any poorly performing queries).&lt;/LI&gt;&lt;LI&gt;Add necessary indexes.&lt;/LI&gt;&lt;LI&gt;Set the 'optimizer level' to 'ASE_CURRENT'&lt;/LI&gt;&lt;LI&gt;Use MDA and showplan/plancost to help identify poorly running queries and then rewrite them if necessary.&lt;/LI&gt;&lt;LI&gt;Keep statistics up-to-date&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ASE 15+ optimizer is capable of generating Cartesian products from poorly written SQL that earlier ASEs did not consider - often this can be the reason for needing 'compatibility mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also consider bringing in professional services to help in any migration plan/performing the migration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 14:36:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/backward-compatiblity/qaa-p/10968455#M4028114</guid>
      <dc:creator>ChrisBaker</dc:creator>
      <dc:date>2015-04-23T14:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: backward compatiblity</title>
      <link>https://community.sap.com/t5/technology-q-a/backward-compatiblity/qaa-p/10968456#M4028115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my opinion, many suggestions in the Migration Technology Guide are important as a base/prerequisite but don't fully reflect the reality of the client site.&lt;/P&gt;&lt;P&gt;For example, for many slow SPs, I've deleted and recreated all index statistics (and even statistics of non-indexed columns) and it did not make any difference. It was still slow. I tried to understand by looking at the query plans, the code and the indexes.&lt;/P&gt;&lt;P&gt;If you have thousands of SPs, tables, it is very difficult to have the time and and the resources to review the code of all and the query plans especially because the query plan format is different between ASE12 and ASE15/16 and not everyone can easily understand the query plan to figure out for example why the optimizer does not use the index you want to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is really important to understand that the optimizer has been re-written a lot so it should not&amp;nbsp; be a surprise that some SPs might need to be completely rewritten and retested to be as fast as before (using User-Defined Functions, removing temporary tables, testing subqueries, using while loop instead of cursors....). It was we did and it worked without changing the statistics strategy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 15:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/backward-compatiblity/qaa-p/10968456#M4028115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-23T15:10:37Z</dc:date>
    </item>
  </channel>
</rss>

