Upgrading and Migrating an IQ database from older ... - Sybase
Upgrading and Migrating an IQ database from older ... - Sybase
Upgrading and Migrating an IQ database from older ... - Sybase
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
ASE 15 Upgrade Checklist for <strong>Upgrading</strong> <strong>from</strong> ASE 12.x <strong>Sybase</strong> ASE 15<br />
_________________________________________________________________________________________________<br />
o<br />
Use the goal that performs the best for the most number of queries as your server-level<br />
setting. Th<strong>an</strong>, override this goal at the session or query level as needed for individual<br />
queries or applications.<br />
5. Implementation Examples<br />
To set the optimizer goal at the Server Level, do the following:<br />
> sp_configure "optimization goal", 0, "allrows_dss"<br />
To set the optimizer goal at the Session Level:<br />
> set pl<strong>an</strong> optgoal allrows_mix<br />
To set the optimizer goal at the Query Level:<br />
> select * <strong>from</strong> blah pl<strong>an</strong> "(use optgoal allrows_oltp)"<br />
The individual optimization algorithms used under various optgoals c<strong>an</strong> also be turned on <strong><strong>an</strong>d</strong> off at<br />
the session level, for example:<br />
o<br />
o<br />
o<br />
set nl_join ON/OFF<br />
set parallel_query ON/ OFF<br />
set merge_join ON/OFF<br />
6. Additional Testing Considerations<br />
If you are still finding that one or more queries, stored procedures or other compiled objects have<br />
worsened in perform<strong>an</strong>ce, we recommend you consider the following:<br />
o<br />
o<br />
o<br />
o<br />
o<br />
o<br />
First, review Steps 2.7, 4.3, 4.4 <strong><strong>an</strong>d</strong> 4.5 regarding table <strong><strong>an</strong>d</strong> index-level statistics <strong><strong>an</strong>d</strong> ensure<br />
that the tables <strong><strong>an</strong>d</strong> indices involved all have up-to-date statistics.<br />
Second, if you have not already done so, re-run the query or procedure under each of the<br />
different optimization goals (in Step 4.9) to see if one generates a better pl<strong>an</strong> th<strong>an</strong> the<br />
others.<br />
Third, verify that your new server level configuration settings (in steps 4.6 <strong><strong>an</strong>d</strong> 4.7) are<br />
satisfactory.<br />
Fourth, for troubleshooting slow performing queries, it is very useful to compare the postupgrade<br />
query pl<strong>an</strong>s to you pre-upgrade query pl<strong>an</strong>s. This comparison c<strong>an</strong> be used in<br />
performing the adv<strong>an</strong>ced tuning techniques listed below.<br />
Fifth, consider the adv<strong>an</strong>ced tuning techniques discussed in the steps below for:<br />
• Optimizer Level Settings<br />
• Abstract Pl<strong>an</strong>s<br />
• The New QPTune Tool<br />
Lastly, if all the above fails, then consider the optimizer compatibility mode discussed<br />
below.<br />
___________________________________________________________________________________________________________<br />
ASE 15 Upgrade Checklist for ASE 12.X v3.0 Page 84 of 97 Last Update: May, 2012