<?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>Question Re: Creating performant pushdown SQL in Oracle in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaa-p/5261462#M1969423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In DI 12.X no, as there we use the effective user after the aliasing. Only if TNSName and the effective user are the same, then we do a full pushdown (unfortuantely). Feel free to file a bug to raise this problem attention!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2009 15:40:41 GMT</pubDate>
    <dc:creator>werner_daehn</dc:creator>
    <dc:date>2009-03-05T15:40:41Z</dc:date>
    <item>
      <title>Creating performant pushdown SQL in Oracle</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaq-p/5261456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using DS 3.1 and the ECCD methodology and have the following issue in Oracle. The situation is as follows -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two datastores, each pointing to diffferent schemas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SourceDS - SchemaA&lt;/P&gt;&lt;P&gt;Tables - SourceTab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExtractDS - SchemaB&lt;/P&gt;&lt;P&gt;Tables - ExtractTab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My extract DF is extremly simple,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SourceTAB -&amp;gt; Query -&amp;gt; ExtractTab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This DF produces a simple SELECT ... from SourceTAB piece of SQL and not an INSERT /&lt;STRONG&gt;+ APPEND&lt;/STRONG&gt;/ INTO ... piece of SQL which will perform much better. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that DI thinks that SchemaB cannot see SchemaA's tables and therefore brings the data into the engine from SourceTab and then pushes it into ExtractTab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To overcome this SchemaA has granted select privilege on SourceTab to SchemaB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I import SourceTab into ExtractDS. Having both tables in the same DS allows DI to produce the required INSERT /&lt;STRONG&gt;+ APPEND&lt;/STRONG&gt;/ INTO ... piece of SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve the performant SQL without the tables being in the same DS, but remaining in their orignal datastores ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas please ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 17:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaq-p/5261456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T17:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating performant pushdown SQL in Oracle</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaa-p/5261457#M1969418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use database links to acheive full push down between tables in different datastore. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you may run into issues depending on sql statement with dblinks if you have parallel option set for table, and both of your schemas are on same oracle database. You have to choose between PARALLEL and Complete push down&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen this issue with using MERGE to do Auto Correct load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 17:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaa-p/5261457#M1969418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T17:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating performant pushdown SQL in Oracle</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaa-p/5261458#M1969419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to state, the two schemas are on the same instance, so I have no need of database links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 17:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaa-p/5261458#M1969419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T17:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating performant pushdown SQL in Oracle</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaa-p/5261459#M1969420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if both the schemas are on same instance and you have imported these tables in Different datastores in DI then you have to create database links to utilize full database pushdown&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 18:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaa-p/5261459#M1969420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T18:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating performant pushdown SQL in Oracle</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaa-p/5261460#M1969421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are switching back and forth on this topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some releases we pushdown automatically in such a scenarion - and get complaints from those users who did not or cannot grant the permissions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In current releases we are more on the save side and push down only if we are sure - unfortunately we cannot recognize if the tables are select-able or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another point to consider are aliases and datastore configurations. What if the owners of the tables are different according to the repo however by using aliases in the datastore config we make them the same. Ot vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To cut a long story short, sooner or later we will have to make both groups happy - somehow. For now, don't use two datastores but one instead. (via repo export, etl edit and import this can be changed quickly)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 19:58:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaa-p/5261460#M1969421</guid>
      <dc:creator>werner_daehn</dc:creator>
      <dc:date>2009-03-04T19:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating performant pushdown SQL in Oracle</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaa-p/5261461#M1969422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will achieve the correct SQL by changing the login id to the source DS and using an alias. Still need to grant select privileges - an extra overhead - easy in development, but much more difficult when dealing with DBAs in production&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 10:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaa-p/5261461#M1969422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T10:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating performant pushdown SQL in Oracle</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaa-p/5261462#M1969423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In DI 12.X no, as there we use the effective user after the aliasing. Only if TNSName and the effective user are the same, then we do a full pushdown (unfortuantely). Feel free to file a bug to raise this problem attention!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 15:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-performant-pushdown-sql-in-oracle/qaa-p/5261462#M1969423</guid>
      <dc:creator>werner_daehn</dc:creator>
      <dc:date>2009-03-05T15:40:41Z</dc:date>
    </item>
  </channel>
</rss>

