<?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: gather_table_stats from Oracle in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/gather-table-stats-from-Oracle-in-SAS/m-p/563612#M158028</link>
    <description>&lt;P&gt;That doesn't look like the type of command that would actually return anything, but perhaps you can try using the TABLE() function to convert what it does return into something that looks like a table you can query?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select * from connection to oracle 
(
select * from table(  dbms_stats.gather_table_stats('user', 'mytable', degree =&amp;gt; 15)  )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 Jun 2019 21:54:26 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-06-04T21:54:26Z</dc:date>
    <item>
      <title>gather_table_stats from Oracle in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gather-table-stats-from-Oracle-in-SAS/m-p/563588#M158022</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After I submited sql in SAS to created table in Oracle I want to check table status,I find the code below using&amp;nbsp;dbms_stats.gather_table_stats:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
&amp;amp;connectToOracle;
execute by oracle (
begin
dbms_stats.gather_table_stats('user', 'mytable', degree =&amp;gt; 15);
end;);&lt;/PRE&gt;
&lt;P&gt;In this code, where/what is the output table I can find the table's information?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 19:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gather-table-stats-from-Oracle-in-SAS/m-p/563588#M158022</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2019-06-04T19:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: gather_table_stats from Oracle in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gather-table-stats-from-Oracle-in-SAS/m-p/563611#M158027</link>
      <description>&lt;P&gt;1. I reckon this question would be best answered in&amp;nbsp;an Oracle forum&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2. My understanding is that the results of gather_table_stats are used by Oracle to optimise queries by using the information collected rather than for human consumption.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 21:44:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gather-table-stats-from-Oracle-in-SAS/m-p/563611#M158027</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-06-04T21:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: gather_table_stats from Oracle in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/gather-table-stats-from-Oracle-in-SAS/m-p/563612#M158028</link>
      <description>&lt;P&gt;That doesn't look like the type of command that would actually return anything, but perhaps you can try using the TABLE() function to convert what it does return into something that looks like a table you can query?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select * from connection to oracle 
(
select * from table(  dbms_stats.gather_table_stats('user', 'mytable', degree =&amp;gt; 15)  )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Jun 2019 21:54:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/gather-table-stats-from-Oracle-in-SAS/m-p/563612#M158028</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-06-04T21:54:26Z</dc:date>
    </item>
  </channel>
</rss>

