<?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: Creating compressed tables in Oracle database from SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-compressed-tables-in-Oracle-database-from-SAS/m-p/474470#M121917</link>
    <description>&lt;P&gt;Have not tested this, but on the LIBNAME statement you have the option&amp;nbsp;DBCREATE_TABLE_OPTS=. with this option you can&amp;nbsp;specify options to be used when creating a table in Oracle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SASTRACE option below will show the SQL passed to the DBMS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code sample could look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname sugus oracle path=xe  DBCREATE_TABLE_OPTS="compress";

options
  sastrace=",,,d"
  sastraceloc=saslog
  nostsuffix
;

proc delete data=sugus.comp_test;
run;

data sugus.comp_test;
  set sashelp.cars;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 29 Jun 2018 15:19:32 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2018-06-29T15:19:32Z</dc:date>
    <item>
      <title>Creating compressed tables in Oracle database from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-compressed-tables-in-Oracle-database-from-SAS/m-p/474029#M121735</link>
      <description>&lt;P&gt;Hi, everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oracle databases have an option to create compressed tables:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; create table new_table &lt;U&gt;compress&lt;/U&gt; as&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; select *&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; from old_table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can create uncompressed Oracle tables from SAS:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; libname lib_orcl oracle user=orcl_user path=orcl_srv password=orcl_password schema=orcl_user;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; create table lib_orcl.new_table as&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; select *&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from old_SAS_table;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to make compressed Oracle tables from within SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;option compress=yes; doesn't seem to work&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 12:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-compressed-tables-in-Oracle-database-from-SAS/m-p/474029#M121735</guid>
      <dc:creator>EtoUspeh</dc:creator>
      <dc:date>2018-06-28T12:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating compressed tables in Oracle database from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-compressed-tables-in-Oracle-database-from-SAS/m-p/474130#M121773</link>
      <description>&lt;P&gt;Have you tried using an explicit pass-through? Usually, this is the best way to use Database specific functionnalities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this URL: &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a003113595.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a003113595.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-compressed-tables-in-Oracle-database-from-SAS/m-p/474130#M121773</guid>
      <dc:creator>ybolduc</dc:creator>
      <dc:date>2018-06-28T15:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating compressed tables in Oracle database from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-compressed-tables-in-Oracle-database-from-SAS/m-p/474139#M121777</link>
      <description>&lt;P&gt;The issue with pass-through is that as far as I know does not allow to use data on SAS server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to take some data from SAS server and put it into Oracle...&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-compressed-tables-in-Oracle-database-from-SAS/m-p/474139#M121777</guid>
      <dc:creator>EtoUspeh</dc:creator>
      <dc:date>2018-06-28T15:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating compressed tables in Oracle database from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-compressed-tables-in-Oracle-database-from-SAS/m-p/474161#M121783</link>
      <description>&lt;P&gt;You could create the table with an explicit pass-through and the use a simple proc sql insert statement to populate it.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 16:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-compressed-tables-in-Oracle-database-from-SAS/m-p/474161#M121783</guid>
      <dc:creator>ybolduc</dc:creator>
      <dc:date>2018-06-28T16:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating compressed tables in Oracle database from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-compressed-tables-in-Oracle-database-from-SAS/m-p/474470#M121917</link>
      <description>&lt;P&gt;Have not tested this, but on the LIBNAME statement you have the option&amp;nbsp;DBCREATE_TABLE_OPTS=. with this option you can&amp;nbsp;specify options to be used when creating a table in Oracle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SASTRACE option below will show the SQL passed to the DBMS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code sample could look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname sugus oracle path=xe  DBCREATE_TABLE_OPTS="compress";

options
  sastrace=",,,d"
  sastraceloc=saslog
  nostsuffix
;

proc delete data=sugus.comp_test;
run;

data sugus.comp_test;
  set sashelp.cars;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jun 2018 15:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-compressed-tables-in-Oracle-database-from-SAS/m-p/474470#M121917</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-06-29T15:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating compressed tables in Oracle database from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-compressed-tables-in-Oracle-database-from-SAS/m-p/474847#M122070</link>
      <description>&lt;P&gt;Thanks, Bruno! This is exactly what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "create and insert" solution would probably work too but it's just inconvenient.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 10:50:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-compressed-tables-in-Oracle-database-from-SAS/m-p/474847#M122070</guid>
      <dc:creator>EtoUspeh</dc:creator>
      <dc:date>2018-07-02T10:50:44Z</dc:date>
    </item>
  </channel>
</rss>

