<?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>topic Re: Does SAS Use Oracle Indexes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-Use-Oracle-Indexes/m-p/636632#M189158</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5059"&gt;@DavidPhillips2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS generates SQL and passes it to Oracle. The Oracle Optimizer determines whether, or not, it uses an index. SAS does not directly use Oracle indexes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can help the Optimizer choose use indexes by ensuring that catalog statistics are current, and passing Oracle Hints.&lt;/P&gt;
&lt;P&gt;Years ago, Tatyana Petrova and I wrote an SGF paper on database performance tuning. You may find it useful.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="http://www.scsug.org/wp-content/uploads/2013/11/The-SQL-Tuning-Checklist-Jeff-Bailey-SAS.pdf" target="_self"&gt;The SQL Tuning Checklist: Making Slow Queries a Thing of the Past&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The paper discusses most of what you need to know to use indexes. I think we used Teradata for the examples, but Oracle will be similar. I will warn you; Oracle EXPLAIN PLANs are more difficult to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;/P&gt;
&lt;P&gt;Jeff&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2020 18:52:38 GMT</pubDate>
    <dc:creator>JBailey</dc:creator>
    <dc:date>2020-04-01T18:52:38Z</dc:date>
    <item>
      <title>Does SAS Use Oracle Indexes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-Use-Oracle-Indexes/m-p/636609#M189143</link>
      <description>&lt;P&gt;Our datasets are Oracle datasets that are accessed via SAS Enterprise guide through registered Metadata.&amp;nbsp; Does this method use the Oracle Indexes?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 17:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-Use-Oracle-Indexes/m-p/636609#M189143</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2020-04-01T17:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Does SAS Use Oracle Indexes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-Use-Oracle-Indexes/m-p/636632#M189158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5059"&gt;@DavidPhillips2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS generates SQL and passes it to Oracle. The Oracle Optimizer determines whether, or not, it uses an index. SAS does not directly use Oracle indexes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can help the Optimizer choose use indexes by ensuring that catalog statistics are current, and passing Oracle Hints.&lt;/P&gt;
&lt;P&gt;Years ago, Tatyana Petrova and I wrote an SGF paper on database performance tuning. You may find it useful.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="http://www.scsug.org/wp-content/uploads/2013/11/The-SQL-Tuning-Checklist-Jeff-Bailey-SAS.pdf" target="_self"&gt;The SQL Tuning Checklist: Making Slow Queries a Thing of the Past&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The paper discusses most of what you need to know to use indexes. I think we used Teradata for the examples, but Oracle will be similar. I will warn you; Oracle EXPLAIN PLANs are more difficult to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;/P&gt;
&lt;P&gt;Jeff&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 18:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-Use-Oracle-Indexes/m-p/636632#M189158</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2020-04-01T18:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Does SAS Use Oracle Indexes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-Use-Oracle-Indexes/m-p/636748#M189212</link>
      <description>&lt;P&gt;Awesome paper Jeff.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 02:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-Use-Oracle-Indexes/m-p/636748#M189212</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-04-02T02:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Does SAS Use Oracle Indexes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-Use-Oracle-Indexes/m-p/636865#M189265</link>
      <description>Thanks, Chris. That means a lot. I appreciate it.</description>
      <pubDate>Thu, 02 Apr 2020 13:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-Use-Oracle-Indexes/m-p/636865#M189265</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2020-04-02T13:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Does SAS Use Oracle Indexes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-Use-Oracle-Indexes/m-p/637669#M189553</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51161"&gt;@JBailey&lt;/a&gt; No worries. Credit where credit's due! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;One question, do you know why libname option&amp;nbsp; s&lt;FONT face="courier new,courier"&gt;ql_functions=all&lt;/FONT&gt; &amp;nbsp; is not the default?&lt;/P&gt;
&lt;P&gt;Any downside to that justifies this precaution?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 10:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-Use-Oracle-Indexes/m-p/637669#M189553</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-04-05T10:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Does SAS Use Oracle Indexes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-SAS-Use-Oracle-Indexes/m-p/637840#M189647</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What a great question. It is best to have questions in their own topic, So, create a new post and include my name (@JBailey) because the site will ping me. I can answer the question, quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;/P&gt;
&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 14:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-SAS-Use-Oracle-Indexes/m-p/637840#M189647</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2020-04-06T14:10:09Z</dc:date>
    </item>
  </channel>
</rss>

