<?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: db connector sas viya &amp;lt;--&amp;gt; oracle slow download in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759595#M22763</link>
    <description>&lt;P&gt;Looks like you're comparing apples with apples. I've missed that your'e in Viya/CAS where I still don't have sufficient experience connecting to Oracle so just some general thoughts here.&lt;/P&gt;
&lt;P&gt;1. To get a bit more SAS log set options&lt;/P&gt;
&lt;PRE&gt;options compress=yes fullstimer msglevel=i SASTRACE=',,t,sa' SASTRACELOC=SASLOG NOSTSUFFIX;&lt;/PRE&gt;
&lt;P&gt;Not sure if I've got the SASTRACE arguments right. You might need to amend for useful information:&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0732u1mr57ycrn1urf24gzo38sc.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0732u1mr57ycrn1urf24gzo38sc.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Make sure you set readbuff to something bigger than the default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. And just as a thought: You might want to check to "play" with options like&amp;nbsp;DBCLIENT_MAX_BYTES documented &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p1qft7bzdij79zn1bxh59mc3w8xj.htm" target="_self"&gt;here&lt;/A&gt;. CAS got varchar columns so less important there likely but because a SAS length for characters defines bytes and with UTF-8 a byte can take up-to 4 bytes if options like these are not set appropriately for the DB you connect to, you can end up with character lengths on the SAS side 4 times the number of chars defined on the DB side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 02:55:22 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2021-08-05T02:55:22Z</dc:date>
    <item>
      <title>db connector sas viya &lt;--&gt; oracle slow download</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759240#M22749</link>
      <description>&lt;P&gt;I'm having problems with the download velocity of tables from oracle.&lt;/P&gt;
&lt;P&gt;after establishing successfully the connection, the data step to save the table runs successfully but very slowly.&lt;/P&gt;
&lt;P&gt;Meanwhile the upload of a comparable table is 50 times faster.&lt;/P&gt;
&lt;P&gt;I have tried an alternative download process with the following code playing around with the options like numreadbuffers, but it doesn't improve significantly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;caslib oracaslib datasource=(&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; srctype="oracle",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uid='SAS',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pwd="xxxxxxxxx",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; path=" xxxxxx"&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc casutil;&amp;nbsp;&amp;nbsp; load casdata="FACT_MONTHLY_RENEWALS" incaslib="oracaslib" outcaslib="AKAIKE"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;casout="FACT_MONTHLY_RENEWALS" dataSourceOptions=(numreadbuffers=10, numreadnodes=1, row_array_size=1000000);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME myora ORACLE PATH=xxxxxxx USER=SAS PASSWORD='xxxxxxxxxxx';
/* slow */
data AKAIKE.FACT_MONTHLY_RENEWALS(promote=yes);
set myora.FACT_MONTHLY_RENEWALS;
run;

/* fast */
options casdatalimit=all;
data myora.SCORE_COLORS(INSERTBUFF=10000 DBCOMMIT=50000);
SET PUBLIC.HUERTO1(where=(score_date gt '31mar2021'd) keep=id score_date  r_RENEWAL_PROB r_equity);
rename ID=UNIQUEID;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Aug 2021 08:26:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759240#M22749</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-08-04T08:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: db connector sas viya &lt;--&gt; oracle slow download</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759246#M22750</link>
      <description>&lt;P&gt;From the looks of it you're downloading a full facts table to SAS but you're most likely uploading a much lower data volume. If so then that would explain the performance difference you observe.&lt;/P&gt;
&lt;P&gt;You could "play" with readbuff and depending on Oracle settings download start only when the Oracle side query completed or already while it's running (nothing you can change, needs an Oracle DBA) - but in the end of the day it's mainly about the number of rows and record length of a row.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 09:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759246#M22750</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-08-04T09:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: db connector sas viya &lt;--&gt; oracle slow download</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759464#M22756</link>
      <description>Also Viya is trying to make the results pretty, I had a report that took 2-4 sec in base SAS but ran for several hours in Viya and turning ODS off when reading the data in and then turn it back on, like below fixed the issue:&lt;BR /&gt;&lt;BR /&gt;ods noresults;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;&lt;BR /&gt;connect to SQLSVR as mydb&lt;BR /&gt;&lt;BR /&gt;(datasrc="DSN" user=UID password="Password" readbuff=5000);&lt;BR /&gt;&lt;BR /&gt;create table experimental as select * from connection to mydb&lt;BR /&gt;&lt;BR /&gt;(select * from table;)&lt;BR /&gt;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ods results;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Aug 2021 19:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759464#M22756</guid>
      <dc:creator>dlawto2</dc:creator>
      <dc:date>2021-08-04T19:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: db connector sas viya &lt;--&gt; oracle slow download</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759479#M22757</link>
      <description>&lt;P&gt;thanks, taking the same table for comparison in download and upload mode here comes the performance result:&lt;/P&gt;
&lt;P&gt;okay, this time is only factor 3...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;78 data AKAIKE.test_downlaod(promote=yes);&lt;BR /&gt;79 set myora.fact_ope_form;&lt;BR /&gt;80 run;&lt;BR /&gt;NOTE: The data set TEST_DOWNLAOD was promoted.&lt;BR /&gt;NOTE: There were 1518039 observations read from the data set MYORA.FACT_OPE_FORM.&lt;BR /&gt;NOTE: The data set AKAIKE.TEST_DOWNLAOD has 1518039 observations and 179 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time &lt;FONT color="#FF0000"&gt;11:01.08&lt;/FONT&gt;&lt;BR /&gt;cpu time 2:38.83&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.&lt;BR /&gt;NOTE: There were 1518039 observations read from the data set AKAIKE.TEST_DOWNLAOD.&lt;BR /&gt;NOTE: The data set MYORA.TEST_UPLOAD has 1518039 observations and 179 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time&lt;FONT color="#0000FF"&gt; 4:23.31&lt;/FONT&gt;&lt;BR /&gt;cpu time 1:30.62&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 19:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759479#M22757</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-08-04T19:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: db connector sas viya &lt;--&gt; oracle slow download</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759488#M22759</link>
      <description>&lt;P&gt;thanks, but I don't know how to connect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;77 ODS NORESULTS;&lt;BR /&gt;78 &lt;BR /&gt;79 proc sql;&lt;BR /&gt;80 &lt;BR /&gt;81 connect to oracle as mydb&lt;BR /&gt;82 &lt;BR /&gt;83 (datasrc="FACT_OPE_FORM" user=SAS password=XXXXXXXXXXXXXXXXXX readbuff=5000);&lt;BR /&gt;ERROR: Invalid option name datasrc.&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;84 &lt;BR /&gt;85 create table DNA.experimental as select * from connection to mydb&lt;BR /&gt;86 &lt;BR /&gt;87 (select * from table;)&lt;BR /&gt;88 &lt;BR /&gt;89 quit;&lt;BR /&gt;NOTE: Statement not executed due to NOEXEC option.&lt;BR /&gt;90 &lt;BR /&gt;91 &lt;BR /&gt;92 &lt;BR /&gt;93 ods results;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 20:04:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759488#M22759</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-08-04T20:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: db connector sas viya &lt;--&gt; oracle slow download</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759496#M22760</link>
      <description>Well you will need to find the DSN name out from someone or you can look on the tnsnames.ora file. The DSN name would be unique to your site/database.&lt;BR /&gt;On Linux usually under /u01/app/oracle/admin/network&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Aug 2021 20:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759496#M22760</guid>
      <dc:creator>dlawto2</dc:creator>
      <dc:date>2021-08-04T20:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: db connector sas viya &lt;--&gt; oracle slow download</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759595#M22763</link>
      <description>&lt;P&gt;Looks like you're comparing apples with apples. I've missed that your'e in Viya/CAS where I still don't have sufficient experience connecting to Oracle so just some general thoughts here.&lt;/P&gt;
&lt;P&gt;1. To get a bit more SAS log set options&lt;/P&gt;
&lt;PRE&gt;options compress=yes fullstimer msglevel=i SASTRACE=',,t,sa' SASTRACELOC=SASLOG NOSTSUFFIX;&lt;/PRE&gt;
&lt;P&gt;Not sure if I've got the SASTRACE arguments right. You might need to amend for useful information:&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0732u1mr57ycrn1urf24gzo38sc.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0732u1mr57ycrn1urf24gzo38sc.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Make sure you set readbuff to something bigger than the default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. And just as a thought: You might want to check to "play" with options like&amp;nbsp;DBCLIENT_MAX_BYTES documented &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p1qft7bzdij79zn1bxh59mc3w8xj.htm" target="_self"&gt;here&lt;/A&gt;. CAS got varchar columns so less important there likely but because a SAS length for characters defines bytes and with UTF-8 a byte can take up-to 4 bytes if options like these are not set appropriately for the DB you connect to, you can end up with character lengths on the SAS side 4 times the number of chars defined on the DB side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 02:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/db-connector-sas-viya-lt-gt-oracle-slow-download/m-p/759595#M22763</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-08-05T02:55:22Z</dc:date>
    </item>
  </channel>
</rss>

