<?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 slow SAS query reading Oracle in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/slow-SAS-query-reading-Oracle/m-p/331510#M9769</link>
    <description>&lt;P&gt;I use SAS 9.3 pass-through to send SQL to an Oracle 10g database to read data from a view.&lt;/P&gt;&lt;P&gt;Usually the query runs just fine.&lt;/P&gt;&lt;P&gt;Sometimes the query runs extremely slow.&lt;/P&gt;&lt;P&gt;Are there SAS options that I can turn on to try to understand what the issue is?&lt;/P&gt;&lt;P&gt;(Note: I don't believe it is the load on the server nor running during a database maintenance window).&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Type of&amp;nbsp;query shown below:&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;BR /&gt;connect to oracle as myconn (user=x password=y path=z);&lt;BR /&gt;create table test&amp;nbsp;as&amp;nbsp;select *&lt;BR /&gt;from connection to myconn(&lt;BR /&gt;select * from T.V&lt;BR /&gt;where my_condition = 'TRUE');&lt;BR /&gt;disconnect from myconn;&lt;BR /&gt;quit;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2017 14:03:56 GMT</pubDate>
    <dc:creator>hw</dc:creator>
    <dc:date>2017-02-10T14:03:56Z</dc:date>
    <item>
      <title>slow SAS query reading Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/slow-SAS-query-reading-Oracle/m-p/331510#M9769</link>
      <description>&lt;P&gt;I use SAS 9.3 pass-through to send SQL to an Oracle 10g database to read data from a view.&lt;/P&gt;&lt;P&gt;Usually the query runs just fine.&lt;/P&gt;&lt;P&gt;Sometimes the query runs extremely slow.&lt;/P&gt;&lt;P&gt;Are there SAS options that I can turn on to try to understand what the issue is?&lt;/P&gt;&lt;P&gt;(Note: I don't believe it is the load on the server nor running during a database maintenance window).&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Type of&amp;nbsp;query shown below:&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;BR /&gt;connect to oracle as myconn (user=x password=y path=z);&lt;BR /&gt;create table test&amp;nbsp;as&amp;nbsp;select *&lt;BR /&gt;from connection to myconn(&lt;BR /&gt;select * from T.V&lt;BR /&gt;where my_condition = 'TRUE');&lt;BR /&gt;disconnect from myconn;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 14:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/slow-SAS-query-reading-Oracle/m-p/331510#M9769</guid>
      <dc:creator>hw</dc:creator>
      <dc:date>2017-02-10T14:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: slow SAS query reading Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/slow-SAS-query-reading-Oracle/m-p/331511#M9770</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30219"&gt;@hw&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a SAS Global Forum paper from a few years back that covers how to approach the exact type of problem you are facing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings13/080-2013.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings13/080-2013.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fullstimer SAS option will show you where your job is spending its time. There are SAS papers that describe this option in great detail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code uses explicit pass-through so you know exactly what is being sent to Oracle. The question is where is the time being spent: writing by SAS, network traffic, or Oracle query. Since the query runs fine most of the time it means that some "special" something is happening to change this. It could be increased, sporatic, activity on any, or all, of the three items mentioned above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your first step is to show your query to the Oracle DBA and ask them if they see a problem. Start keeping a record of the times that the program runs slowly. This information can help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;BR /&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:43:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/slow-SAS-query-reading-Oracle/m-p/331511#M9770</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2017-02-13T13:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: slow SAS query reading Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/slow-SAS-query-reading-Oracle/m-p/332031#M9779</link>
      <description>&lt;P&gt;This is not an explanation for the performance fluctuation you're observing, but setting an explicit value to something higher than the default for BUFFSIZE could improve your end-to-end performance in general.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#n05b4mygsvt845n1vnr6r5kchbjf.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/viewer.htm#n05b4mygsvt845n1vnr6r5kchbjf.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 22:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/slow-SAS-query-reading-Oracle/m-p/332031#M9779</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-02-12T22:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: slow SAS query reading Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/slow-SAS-query-reading-Oracle/m-p/332082#M9783</link>
      <description>SAS options like the ones suggested only shows what's going on at the SAS host. Any network or Oracle problems doesn't get analyzed. I suggest that you work close to your DBA as an initial effort.</description>
      <pubDate>Mon, 13 Feb 2017 06:58:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/slow-SAS-query-reading-Oracle/m-p/332082#M9783</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-02-13T06:58:02Z</dc:date>
    </item>
  </channel>
</rss>

