<?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 pass through facility very slow in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/pass-through-facility-very-slow/m-p/238218#M55417</link>
    <description>&lt;P&gt;Hello Everyone&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to import around 20 tables from Oracle to SAS. I am using pass through facility like below. But it tooks a lot of time due to huge number of records.&lt;/P&gt;
&lt;P&gt;is there any alternative to follow in order to save time.&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;connect to oracle as ext(user=user orapw=pwd path=abcd);&lt;BR /&gt; CREATE TABLE emp&amp;nbsp;as&amp;nbsp;&lt;BR /&gt; select * from connection to ext&lt;BR /&gt; (select e_id, ename&amp;nbsp;from&amp;nbsp;polaris. emp);&lt;BR /&gt;&lt;SPAN&gt;CREATE TABLE &lt;/SPAN&gt;&lt;SPAN&gt;utub&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;as&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select * from connection to ext&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(select r&lt;/SPAN&gt;&lt;SPAN&gt;_id, &lt;/SPAN&gt;&lt;SPAN&gt;s_id&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;from&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;polaris.&amp;nbsp;utubulu&lt;/SPAN&gt;&lt;SPAN&gt;); &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;create table table3------table 20 &amp;nbsp;like above&lt;BR /&gt;&lt;SPAN&gt;disconnect from ext;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;quit;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2015 06:25:39 GMT</pubDate>
    <dc:creator>Abraham</dc:creator>
    <dc:date>2015-12-08T06:25:39Z</dc:date>
    <item>
      <title>pass through facility very slow</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/pass-through-facility-very-slow/m-p/238218#M55417</link>
      <description>&lt;P&gt;Hello Everyone&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to import around 20 tables from Oracle to SAS. I am using pass through facility like below. But it tooks a lot of time due to huge number of records.&lt;/P&gt;
&lt;P&gt;is there any alternative to follow in order to save time.&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;connect to oracle as ext(user=user orapw=pwd path=abcd);&lt;BR /&gt; CREATE TABLE emp&amp;nbsp;as&amp;nbsp;&lt;BR /&gt; select * from connection to ext&lt;BR /&gt; (select e_id, ename&amp;nbsp;from&amp;nbsp;polaris. emp);&lt;BR /&gt;&lt;SPAN&gt;CREATE TABLE &lt;/SPAN&gt;&lt;SPAN&gt;utub&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;as&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select * from connection to ext&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(select r&lt;/SPAN&gt;&lt;SPAN&gt;_id, &lt;/SPAN&gt;&lt;SPAN&gt;s_id&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;from&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;polaris.&amp;nbsp;utubulu&lt;/SPAN&gt;&lt;SPAN&gt;); &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;create table table3------table 20 &amp;nbsp;like above&lt;BR /&gt;&lt;SPAN&gt;disconnect from ext;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;quit;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 06:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/pass-through-facility-very-slow/m-p/238218#M55417</guid>
      <dc:creator>Abraham</dc:creator>
      <dc:date>2015-12-08T06:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: pass through facility very slow</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/pass-through-facility-very-slow/m-p/238233#M55418</link>
      <description>&lt;P&gt;If there are a huge nunber of records it is going to take time to process it, there is a physical relationship to number of records and processing time? &amp;nbsp;One way which may be quicker, although I doubt by very much is to goto the Oracle database - i.e. Log in to Toad or SQL Developer, and run the query there, export the result to a CSV file which you can then read into SAS. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note you seem to have typos in your code:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(select e_id, ename&amp;nbsp;from&amp;nbsp;polaris. emp);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Shouldn't be a space after polaris.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 09:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/pass-through-facility-very-slow/m-p/238233#M55418</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-12-08T09:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: pass through facility very slow</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/pass-through-facility-very-slow/m-p/238260#M55420</link>
      <description>&lt;P&gt;Can't see the point of using explicit SQL pass-thru here, since your SQL&amp;nbsp;is not doing any Oracle specific.&lt;/P&gt;
&lt;P&gt;Use implicit&amp;nbsp;SQL pass-theu instead, toghether with&lt;/P&gt;
&lt;P&gt;options sastrace=',,,d' sastraceloc=saslog;&lt;/P&gt;
&lt;P&gt;Which probably gives you some kind of timings in Oracle (so you can rule out network bottlenecks).&lt;/P&gt;
&lt;P&gt;If Oracle&amp;nbsp;is slow on pushing data, nothing much to about - talk to the DBAs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the bigger picture here - you seem to copy whole datasets?&lt;/P&gt;
&lt;P&gt;Is this a one time job?&lt;/P&gt;
&lt;P&gt;If recurrent, perhaps&amp;nbsp;you only need to load the delta.&lt;/P&gt;
&lt;P&gt;Or let that&amp;nbsp;data reside in Oracle - if you program wise in SAS, that could work&amp;nbsp;perfectly fine.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 14:00:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/pass-through-facility-very-slow/m-p/238260#M55420</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-12-08T14:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: pass through facility very slow</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/pass-through-facility-very-slow/m-p/238472#M55435</link>
      <description>&lt;P&gt;If you really MUST download all the data from Oracle then one thing which could eventually speed up things&amp;nbsp;is storing the data in SAS using the libname SPDE engine.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 08:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/pass-through-facility-very-slow/m-p/238472#M55435</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-12-09T08:48:27Z</dc:date>
    </item>
  </channel>
</rss>

