<?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 Documentation on Oracle Hints Extension ^ in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/documentation-on-oracle-hints-extension/m-p/404541#M10464</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm trying to find some documentation/discussions/information on a particular Oracle Hints extension. Here's my SELECT statement:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT a~vkont FROM fkkvkp AS a
                    INNER JOIN fkkvk  AS b
                       ON a~vkont = b~vkont
        INTO TABLE t_fkkvkp
         FOR ALL ENTRIES IN r_gpart
       WHERE a~gpart = r_gpart-partner
         AND b~vktyp IN r_vktyp[]
       %_HINTS ORACLE 'INDEX(FKKVKP "FKKVKP~1" "FKKVKP^1")'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What I fail to understand is the very last part:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"FKKVKP^1".&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Couldn't find any search results or F1 help related to the &lt;STRONG&gt;^&amp;lt;index_name&amp;gt;&lt;/STRONG&gt;. Your thoughts?&lt;/P&gt;&lt;P&gt;- pk&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2017 17:12:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-05-12T17:12:23Z</dc:date>
    <item>
      <title>Documentation on Oracle Hints Extension ^</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/documentation-on-oracle-hints-extension/m-p/404541#M10464</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm trying to find some documentation/discussions/information on a particular Oracle Hints extension. Here's my SELECT statement:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT a~vkont FROM fkkvkp AS a
                    INNER JOIN fkkvk  AS b
                       ON a~vkont = b~vkont
        INTO TABLE t_fkkvkp
         FOR ALL ENTRIES IN r_gpart
       WHERE a~gpart = r_gpart-partner
         AND b~vktyp IN r_vktyp[]
       %_HINTS ORACLE 'INDEX(FKKVKP "FKKVKP~1" "FKKVKP^1")'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What I fail to understand is the very last part:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"FKKVKP^1".&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Couldn't find any search results or F1 help related to the &lt;STRONG&gt;^&amp;lt;index_name&amp;gt;&lt;/STRONG&gt;. Your thoughts?&lt;/P&gt;&lt;P&gt;- pk&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 17:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/documentation-on-oracle-hints-extension/m-p/404541#M10464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-12T17:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation on Oracle Hints Extension ^</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/documentation-on-oracle-hints-extension/m-p/404542#M10465</link>
      <description>&lt;P&gt;DB hints are DB specific.&lt;/P&gt;&lt;P&gt;You have to look up Oracle's DB documentation.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 17:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/documentation-on-oracle-hints-extension/m-p/404542#M10465</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-05-12T17:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation on Oracle Hints Extension ^</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/documentation-on-oracle-hints-extension/m-p/404543#M10466</link>
      <description>&lt;P&gt;Here are quotes from 2 documentations (don't know whether it can help; my opinion is that the notation FKKVKP^1 is useless if it doesn't exist in the database; check SE14 to see the actual database indexes via button "storage parameters"):&lt;/P&gt;&lt;P&gt;&lt;A href="https://launchpad.support.sap.com/#/notes/772497/E"&gt;SAP note 772497 - FAQ: Oracle Hints&lt;/A&gt; states:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;INDEX(&amp;lt;table&amp;gt; &amp;lt;index&amp;gt; [&amp;lt;index2&amp;gt; ... &amp;lt;indexN&amp;gt;])&lt;/LI&gt;&lt;LI&gt;Using one of the indexes &amp;lt;index&amp;gt;, &amp;lt;index2&amp;gt;, ... , &amp;lt;indexN&amp;gt; to access the &amp;lt;table&amp;gt; table&lt;/LI&gt;&lt;LI&gt;Usually only ONE index is specified so that the other indexes are omitted. However, if the exact notation of the index is unknown in R/3 (for example, MARA~0 or MARA^0 or MARA_____0), all notations must be specified in sequence to ensure that the name of the actual index is included.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Doc of Oracle hints (10.2 here) : &lt;A href="http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements006.htm#i35922"&gt;http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements006.htm#i35922&lt;/A&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If the &lt;CODE&gt;INDEX&lt;/CODE&gt; hint specifies a list of available indexes, then the optimizer considers the cost of a scan on each index in the list and then performs the index scan with the lowest cost. The database can also choose to scan multiple indexes from this list and merge the results, if such an access path has the lowest cost.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 12 May 2017 18:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/documentation-on-oracle-hints-extension/m-p/404543#M10466</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-05-12T18:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation on Oracle Hints Extension ^</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/documentation-on-oracle-hints-extension/m-p/404544#M10467</link>
      <description>&lt;P&gt;The hint tells the DB which index to use, referring to it by the name assigned in the database. Please have a look in SE11 under indexes - can't remember where to click off the top of my head, but somewhere you can get the DB index names. &lt;/P&gt;&lt;P&gt;The three-character SAP index name in SE11 is generic, and in the background a DB-specific name is generated by SAP, which happens to be the table name and a number for Oracle. So table MYTAB indexes ABC and DEF will be called MYTAB~1 and MYTAB~2 in Oracle.&lt;/P&gt;&lt;P&gt;I'm reasonably sure they are just covering the scenario that an OS/DB combination might use ^1 ^2 ^3... instead of the more common ~1 ~2.... suffixes. Oracle doesn't care whether an index specified in a hint doesn't exist, it just gets ignored. So it's no harm to put an alternate name in there.&lt;/P&gt;&lt;P&gt;An less likely reason might be that FKKVKP~1 and FKKVKP^1 correspond to two different indexes. Again, SE11 will tell you.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 21:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/documentation-on-oracle-hints-extension/m-p/404544#M10467</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2017-05-12T21:46:44Z</dc:date>
    </item>
  </channel>
</rss>

