<?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: Calling a index using %_HINTS ORACLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-index-using-hints-oracle/m-p/3907086#M936950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you use a hint then you should use the SQL trace to see whether the hint works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indexhints are easily tested, the explain of the SQL shows you the used index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test also wiithout hint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;about SQL Trace, see here last exection&lt;/P&gt;&lt;P&gt;/people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; the compiler didn't gave any error but just in case...&lt;/P&gt;&lt;P&gt;that tells you nothing, unfortunately &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2008 06:25:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-30T06:25:57Z</dc:date>
    <item>
      <title>Calling a index using %_HINTS ORACLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-index-using-hints-oracle/m-p/3907084#M936948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created an index , but my problem is the right way to call it. i've allready seen several ways here in the forums and dont know witch one is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My index has the Z04 name and i'm calling this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT t1~bukrs t1~belnr t1~dmbtr
        APPENDING CORRESPONDING FIELDS OF TABLE tab_dados
            FROM bsak AS t1 INNER JOIN bkpf AS t2
            ON t1~bukrs = t2~bukrs AND
               t1~belnr = t2~belnr AND
               t1~gjahr = t2~gjahr AND
               t1~blart = t2~blart
            WHERE t1~bukrs IN r_bukrs AND
                  t1~zuonr IN r_economica AND
                  t1~gjahr = ano  AND
                ( t1~budat IN so_date OR t1~augbl IN so_date )  and
                  T1~BLART in R_TIPOS_DOC AND
                  t1~hkont IN r_contas AND
                  t1~xref1 LIKE p_fundo AND
                  t1~xref3 IN r_fictr AND
                  t2~stblg = ''
                  AND t1~monat IN so_perio
                  %_HINTS ORACLE 'INDEX(BSAK BSAK~Z04)'..
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the compiler didn't gave any error but just in case...&lt;/P&gt;&lt;P&gt;Is this right??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance, &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;João Martins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 18:14:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-index-using-hints-oracle/m-p/3907084#M936948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T18:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a index using %_HINTS ORACLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-index-using-hints-oracle/m-p/3907085#M936949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you are not getting error, i think it is right. but as far as i know the way to mention is: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%_HINTS ORACLE 'INDEX("HRP1001" "HRP1001~Z05")'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;jus check if the optimizer is picking the Z04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 02:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-index-using-hints-oracle/m-p/3907085#M936949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T02:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a index using %_HINTS ORACLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-index-using-hints-oracle/m-p/3907086#M936950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you use a hint then you should use the SQL trace to see whether the hint works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indexhints are easily tested, the explain of the SQL shows you the used index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test also wiithout hint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;about SQL Trace, see here last exection&lt;/P&gt;&lt;P&gt;/people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; the compiler didn't gave any error but just in case...&lt;/P&gt;&lt;P&gt;that tells you nothing, unfortunately &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2008 06:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-index-using-hints-oracle/m-p/3907086#M936950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-30T06:25:57Z</dc:date>
    </item>
  </channel>
</rss>

