<?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: How to load huge amount of data into Oracle in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/624998#M18786</link>
    <description>Thank you Sir for Showing interest in answering my question..&lt;BR /&gt;I'm Fetching data from Teradata and storing into SAS dataset, later from SAS dataset I'm loading data into SQL .&lt;BR /&gt;Fetching 35 crore observation will take approximately 90 min but loading 35 crore observations from SAS to SQL is taking more than 10hr.</description>
    <pubDate>Sat, 15 Feb 2020 09:43:27 GMT</pubDate>
    <dc:creator>Sharath_naik</dc:creator>
    <dc:date>2020-02-15T09:43:27Z</dc:date>
    <item>
      <title>How to load huge amount of data into Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/624855#M18781</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not able to load 35 crore observations into SQL in one shot, instead I'm splitting the observation into 4 part and loading, is there anyway to load huge amount of observation(35 crore) into SQL in one shot.....&lt;/P&gt;&lt;P&gt;I'm using below code to load data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;libname sql_test odbc dsn=xxx_test user="xx" pass="xx" schema=xx;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to odbc (dsn=xxx_test user=xx pwd=xx);&lt;BR /&gt;execute(truncate table TeradataDemand) by odbc;&lt;BR /&gt;insert into sql_test.TeradataDemand select * from First_ETL;&lt;BR /&gt;disconnect from odbc;&lt;BR /&gt;quit ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 15:04:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/624855#M18781</guid>
      <dc:creator>Sharath_naik</dc:creator>
      <dc:date>2020-02-14T15:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to load huge amount of data into Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/624878#M18782</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;Have you tried the options here? Bulkload and&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings11/103-2011.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/resources/papers/proceedings11/103-2011.pdf&lt;/A&gt;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;FYI - I'm moving your question to the data management forum.&amp;nbsp;&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, my mistake. You're using SQL Pass through which means you're really working on a Teradata problem not a SAS problem. You may want to consider posting this in a Teradata forum instead. SAS is literally just passing the command to Teradata here, you need the appropriate Teradata options to specify to speed this up.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 16:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/624878#M18782</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-14T16:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to load huge amount of data into Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/624967#M18783</link>
      <description>&lt;P&gt;I suggest you try out the Fastload and Multiload Teradata loading options documented here: &lt;A href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n0ht8i7t92tocpn18vn0krftm85m.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n0ht8i7t92tocpn18vn0krftm85m.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 22:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/624967#M18783</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-02-14T22:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to load huge amount of data into Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/624979#M18784</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp; do those apply when it's a solely DB operation? It makes sense that they would apply when loading SAS data to Teradata but that doesn't appear to be the case here, the code is entirely a teradata command unless I'm missing something which is entirely possible.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 02:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/624979#M18784</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-15T02:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to load huge amount of data into Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/624987#M18785</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; - Yes, I agree. The way the EXECUTE is structured here it is purely a DB operation. In fact the code does not appear to include any step uploading SAS data into Teradata. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137094"&gt;@Sharath_naik&lt;/a&gt; needs to explain where the data is coming from because he is just referencing a Teradata temporary table and that is it. So the way the program is written it is purely a Teradata issue for which he should get the answers from Teradata forums.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The link I supplied may be helpful if the data is originally from SAS.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 03:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/624987#M18785</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-02-15T03:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to load huge amount of data into Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/624998#M18786</link>
      <description>Thank you Sir for Showing interest in answering my question..&lt;BR /&gt;I'm Fetching data from Teradata and storing into SAS dataset, later from SAS dataset I'm loading data into SQL .&lt;BR /&gt;Fetching 35 crore observation will take approximately 90 min but loading 35 crore observations from SAS to SQL is taking more than 10hr.</description>
      <pubDate>Sat, 15 Feb 2020 09:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/624998#M18786</guid>
      <dc:creator>Sharath_naik</dc:creator>
      <dc:date>2020-02-15T09:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to load huge amount of data into Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/625029#M18788</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137094"&gt;@Sharath_naik&lt;/a&gt;&amp;nbsp; - Thanks for clarifying your load process. So is your ODBC LIBNAME pointing to an Oracle database then? If so then the BULKLOAD and DBCOMMIT options are worth trying: &lt;A href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n0qddeciyqg3qfn1tosrb42y47os.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n0qddeciyqg3qfn1tosrb42y47os.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you start by trying DBCOMMIT = 1,000, then 10,000, 20,000 and so on. Experiment on a subset of your data to speed up the testing - 350 million rows is an awful lot (now I know a crore is 10 million &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;).&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 19:25:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/625029#M18788</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-02-15T19:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to load huge amount of data into Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/625040#M18789</link>
      <description>Can you show the actual code you're using then? The code above doesn't reflect the situation you're stating.</description>
      <pubDate>Sat, 15 Feb 2020 21:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/625040#M18789</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-15T21:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to load huge amount of data into Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/625080#M18790</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe the code&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137094"&gt;@Sharath_naik&lt;/a&gt;&amp;nbsp;posted is real.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname sql_test odbc dsn=xxx_test user="xx" pass="xx" schema=xx;


proc sql;
connect to odbc (dsn=xxx_test user=xx pwd=xx);
execute(truncate table TeradataDemand) by odbc;
insert into sql_test.TeradataDemand select * from First_ETL;
disconnect from odbc;
quit &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The explicit pass-through SQL execute() bit only truncates the table. The insert bit is implicit pass-through SQL and it appears the source table is a SAS WORK table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137094"&gt;@Sharath_naik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If above is correct then ideally you'd be using SAS/Access to Teradata and not to ODBC (if licensed). The native Teradata access module would allow you to use stuff like FASTLOAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure what's available with ODBC when loading into Teradata. You will have to investigate starting &lt;A href="https://go.documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p0bu3zsz1a08ton1msxdx1jo45np.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;here&lt;/A&gt;. It's certainly worth to set options INSERTBUFF and DBCOMMIT to something else than the default (I normally set DBCOMMIT to 0 so you only commit once at the end - a all or nothing approach). If it was me then I'd also use PROC APPEND and not a SQL INSERT for loading a SAS table into a Data base.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 08:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-load-huge-amount-of-data-into-Oracle/m-p/625080#M18790</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-02-16T08:47:29Z</dc:date>
    </item>
  </channel>
</rss>

