<?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: %_hints oracle '&amp;SUBSTITUTE VALUES&amp;' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793938#M1310437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; In order to not make the post not too complex i skipped it. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I almost &lt;EM&gt;not&lt;/EM&gt; saved my comment either because I also thought it would bring extra complexity with something that is basically only of theoritic use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;However i never came accross a situation where we used only substitute values without histograms in order to tune a program so far &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had one case in the past (don't remember exactly with which table). The users had a mandatory select-options for document number (which they often filled with 0000000000 to 9999999999) and then an optional parameter for customer (or something like that). With bind variables, "docnr between :A1 and :A2" would use the document number index (which is not good), but with values oracle would know that all documents were being selected and so would use the customer index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't remember the exact details or if substitute values was the solution in the end (probably not) but anyway it's one more theoretic use... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rui Dantas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2009 18:12:58 GMT</pubDate>
    <dc:creator>Rui_Dantas</dc:creator>
    <dc:date>2009-07-07T18:12:58Z</dc:date>
    <item>
      <title>%_hints oracle '&amp;SUBSTITUTE VALUES&amp;'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793932#M1310431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;While fetching data from MSEG &amp;amp; MKPF.&lt;/P&gt;&lt;P&gt;Issue is if in my selection-screen I input Plant &amp;amp; Posting Date, the performance is OK, but if I enter PlAnt , posting date  &amp;amp; movement type, the report is not able to execute in foreground.&lt;/P&gt;&lt;P&gt;While debugging standard report MB51 Program RM07DOCS,include RM07DOCS_GENERATED there is query like&lt;/P&gt;&lt;P&gt;  select (g_t_fields)&lt;/P&gt;&lt;P&gt;    into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;    from mkpf inner join mseg&lt;/P&gt;&lt;P&gt;    on    mkpf&lt;SUB&gt;mandt = mseg&lt;/SUB&gt;mandt&lt;/P&gt;&lt;P&gt;      and mkpf&lt;SUB&gt;mblnr = mseg&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;      and mkpf&lt;SUB&gt;mjahr = mseg&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;    for all entries in matnr&lt;/P&gt;&lt;P&gt;    where matnr = matnr-low&lt;/P&gt;&lt;P&gt;      and mkpf~budat in budat&lt;/P&gt;&lt;P&gt;      and mseg~bwart in bwart&lt;/P&gt;&lt;P&gt;      and mseg~charg in charg&lt;/P&gt;&lt;P&gt;      and mseg~kunnr in kunnr&lt;/P&gt;&lt;P&gt;      and mseg~lgort in lgort&lt;/P&gt;&lt;P&gt;      and mseg~lifnr in lifnr&lt;/P&gt;&lt;P&gt;      and mseg~sobkz in sobkz&lt;/P&gt;&lt;P&gt;      and mkpf~usnam in usnam&lt;/P&gt;&lt;P&gt;      and mkpf~vgart in vgart&lt;/P&gt;&lt;P&gt;      and mseg~werks in werks&lt;/P&gt;&lt;P&gt;      and mkpf~xblnr in xblnr&lt;/P&gt;&lt;P&gt;%_hints&lt;/P&gt;&lt;P&gt;oracle '&amp;amp;SUBSTITUTE VALUES&amp;amp;'&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;What does last line mean&lt;/P&gt;&lt;P&gt;Is this prove to b useful .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLz suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 05:28:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793932#M1310431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-07T05:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: %_hints oracle '&amp;SUBSTITUTE VALUES&amp;'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793933#M1310432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this line is a hint on ORACLE DB plattforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
%_hints
oracle '&amp;amp;SUBSTITUTE VALUES&amp;amp;'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the hint itself is a hint to the database interface, not to the db.&lt;/P&gt;&lt;P&gt;The hint makes the database interface to use the actual values of a query&lt;/P&gt;&lt;P&gt;in the sql statement and sent these to the database. No bind variables are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. if your plant/werks is '101'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE werks = :a1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE werks = '101'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The hint is useful in combination with histograms (frequency statistics) on ORACLE.&lt;/P&gt;&lt;P&gt;With histograms and actual variables instead of bind variables the optimizer may&lt;/P&gt;&lt;P&gt;came up with a better execution plan because the data distribution is considered as&lt;/P&gt;&lt;P&gt;well which is normally (without this hint and the histograms) not the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In oder to find out if it is useful you have to check if you have histograms on the columns&lt;/P&gt;&lt;P&gt;you use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do so you can use the following select in the ABAP report RSORADJV:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT COLUMN_NAME, HISTOGRAM, NUM_BUCKETS FROM&lt;/P&gt;&lt;P&gt; DBA_TAB_COLUMNS WHERE&lt;/P&gt;&lt;P&gt; TABLE_NAME = '&amp;lt;table_name&amp;gt;';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 06:42:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793933#M1310432</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2009-07-07T06:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: %_hints oracle '&amp;SUBSTITUTE VALUES&amp;'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793934#M1310433</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;add to Hermanns comments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The replacement of bind variables with plain values makes sense for long running queries only:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;small number of users  starting long running queries.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The time to parse and validate the SQL statement against the data dictionary compared to the runtime of the statement is negligible: i.e. SAP BW uses this kind of substitution in it's SELECTs on the big cube tables (or in your case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all other cases binds are recommended because the SQL statement can be reused from the shared cursor cache.&lt;/P&gt;&lt;P&gt;The similarity of bind variable names in every statement leads to 1 parse / validation only:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;A lot of users fire short running queries at the database.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; a big LOOP/ENDLOOP firing short running queries at the database.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The time to parse and validate the SQL statement against the data dictionary compared to the runtime of the statement can take a considerable amount of the runtime if you would substitute binds with different plain values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that said it can be a problem if the hint is not used properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 10:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793934#M1310433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-07T10:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: %_hints oracle '&amp;SUBSTITUTE VALUES&amp;'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793935#M1310434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hermann,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct me if I'm wrong, but even if there are no histograms there is one bucket, with the minimum and maximum value for the whole table. This means that oracle knows the minimum and maximum value for a given column, and that can be useful in some situations (so it might make sense to substitute values even if there are no histograms).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 13:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793935#M1310434</guid>
      <dc:creator>Rui_Dantas</dc:creator>
      <dc:date>2009-07-07T13:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: %_hints oracle '&amp;SUBSTITUTE VALUES&amp;'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793936#M1310435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rui,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the hint... i was thinking about this right before sending the last message.&lt;/P&gt;&lt;P&gt;In order to not make the post not too complex i skipped it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you are right, we have min and max values (LOW_VALUE, HIGH_VALUE in dba_tab_columns) in the statistics:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. WERKS MIN '000' MAX '901'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE werks = :a1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the optimizer assumes that the result set is &amp;lt;nr_of_rows&amp;gt; / &amp;lt;distinct_values_for_that_column&amp;gt; (assuming equal data distribution).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE werks = '920'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the optimizer "sees" that we  look for a outlier value that might not be existing in the database and uses a different&lt;/P&gt;&lt;P&gt;calculation and costing e.g. a fixed estimation of 0.75 % as result set. (outlier value according to the statistics!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can change execution plans dramatically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;  *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;  dd03l&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;  as4local = 'Z'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this in ST05 - explain one sql statement... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one time with as4local = :a1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT STATEMENT ( Estimated Costs = 22.314 , Estimated #Rows = 2.364.281 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       1 TABLE ACCESS FULL DD03L&lt;/P&gt;&lt;P&gt;         ( Estim. Costs = 22.314 , Estim. #Rows = 2.364.281 )&lt;/P&gt;&lt;P&gt;         Estim. CPU-Costs = 2.892.023.174 Estim. IO-Costs = 21.870&lt;/P&gt;&lt;P&gt;         Filter Predicates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and another time with as4local = 'Z'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT STATEMENT ( Estimated Costs = 269 , Estimated #Rows = 1 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       2 TABLE ACCESS BY INDEX ROWID DD03L&lt;/P&gt;&lt;P&gt;         ( Estim. Costs = 269 , Estim. #Rows = 1 )&lt;/P&gt;&lt;P&gt;         Estim. CPU-Costs = 1.916.469 Estim. IO-Costs = 269&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           1 INDEX SKIP SCAN DD03L~4&lt;/P&gt;&lt;P&gt;             ( Estim. Costs = 2.693 , Estim. #Rows = 1 )&lt;/P&gt;&lt;P&gt;             Search Columns: 1&lt;/P&gt;&lt;P&gt;             Estim. CPU-Costs = 19.156.874 Estim. IO-Costs = 2.690&lt;/P&gt;&lt;P&gt;             Access Predicates Filter Predicates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Z is an oultier value... according to the statistics (high value is T in my system).&lt;/P&gt;&lt;P&gt;So the optimizer assumes 1 row back... and a cost of 269 with a skip scan (instead of 2.3 million rowas with cost 22314 and a full table scan).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a skip scan is really the better choice and executing faster... who knows... maybe i'll try it later and post the result here for those who are interested... .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 13:46:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793936#M1310435</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2009-07-07T13:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: %_hints oracle '&amp;SUBSTITUTE VALUES&amp;'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793937#M1310436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile i checked it on different ORACLE versions (9.2.x,  10.2.0.2 and 10.2.0.4), the above ESTIMATED execution plans from ST05 are from 10.2.0.2. However even on this system the ACTUAL USED execution plan is a skip scan as well. (So there is no run time difference (the 2 different statements are &lt;STRONG&gt;using&lt;/STRONG&gt; the same execution plan, however the estimated execution plan differs). For 9.2.x and 10.2.0.4 there is no difference in my tests, on 9.2.x fts for both (estimated!) and on 10.2.0.4 a skip scan for both (estimated!). Didn't check the run time behaviour. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in general you are right, Rui, since we have min and max values, if we search for an outlier value according to the statistics, and the optimizer is informed about the outlier value (substitute values) we might get different costing, different estimated plans and in general we might get different executed plans as well. However i never came accross a situation where we used only substitute values without histograms in order to tune a program so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;btw. the reason for getting another ACTUAL execution plan, than estimated was bind variabl peeking whih was not switched of (as recommended) on my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hermann Gahm on Jul 7, 2009 6:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 14:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793937#M1310436</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2009-07-07T14:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: %_hints oracle '&amp;SUBSTITUTE VALUES&amp;'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793938#M1310437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; In order to not make the post not too complex i skipped it. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I almost &lt;EM&gt;not&lt;/EM&gt; saved my comment either because I also thought it would bring extra complexity with something that is basically only of theoritic use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;However i never came accross a situation where we used only substitute values without histograms in order to tune a program so far &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had one case in the past (don't remember exactly with which table). The users had a mandatory select-options for document number (which they often filled with 0000000000 to 9999999999) and then an optional parameter for customer (or something like that). With bind variables, "docnr between :A1 and :A2" would use the document number index (which is not good), but with values oracle would know that all documents were being selected and so would use the customer index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't remember the exact details or if substitute values was the solution in the end (probably not) but anyway it's one more theoretic use... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rui Dantas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2009 18:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793938#M1310437</guid>
      <dc:creator>Rui_Dantas</dc:creator>
      <dc:date>2009-07-07T18:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: %_hints oracle '&amp;SUBSTITUTE VALUES&amp;'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793939#M1310438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;            1 INDEX SKIP SCAN DD03L~4&lt;/P&gt;&lt;P&gt;&amp;gt;              ( Estim. Costs = 2.693 , Estim. #Rows = 1 )&lt;/P&gt;&lt;P&gt;&amp;gt;              Search Columns: 1&lt;/P&gt;&lt;P&gt;&amp;gt;              Estim. CPU-Costs = 19.156.874 Estim. IO-Costs = 2.690&lt;/P&gt;&lt;P&gt;&amp;gt;              Access Predicates Filter Predicates&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Hermann,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had one doubt after seeing your explain plan. the "Access Predicates" / "Filter Predicates" (which I don't see in my system) are a 10g thing, right? They appear as clickable buttons in ST05?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I googled this and apparently it was introduced in 9.2, but I can't see that in my st05; our system is 9.2.0.7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rui Dantas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps: sorry for the off-topic question&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 12:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793939#M1310438</guid>
      <dc:creator>Rui_Dantas</dc:creator>
      <dc:date>2009-07-08T12:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: %_hints oracle '&amp;SUBSTITUTE VALUES&amp;'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793940#M1310439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rui Dantas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I had one doubt after seeing your explain plan. the "Access Predicates" / "Filter Predicates" (which I don't see in my system) are a 10g thing, right? They appear as clickable buttons in ST05?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes they are clickable buttons and show the access and filter predicates for the relevant step of th execution plan in a popup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; (I googled this and apparently it was introduced in 9.2, but I can't see that in my st05; our system is 9.2.0.7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which SAP Release are you using on 9.2.0.7? For sure they are available in 7.00 and maybe in 6.40 with a high SPS stack (don't know by heart). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However they are available in v$sql_plan in these columns:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ACCESS_PREDICATES VARCHAR2(4000) &lt;/P&gt;&lt;P&gt;Predicates used to locate rows in an access structure. For example, start or stop predicates for an index range scan. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILTER_PREDICATES VARCHAR2(4000) &lt;/P&gt;&lt;P&gt;Predicates used to filter rows before producing them &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and can be queried with any sql on that view on any SAP release &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 14:54:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793940#M1310439</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2009-07-08T14:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: %_hints oracle '&amp;SUBSTITUTE VALUES&amp;'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793941#M1310440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Which SAP Release are you using on 9.2.0.7? For sure they are available in 7.00 and maybe in 6.40 with a high SPS stack (don't know by heart). &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good, thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are talking about SAP_BASIS, right? I tried with our different systems and the results were:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;620 SP51: No buttons&lt;/P&gt;&lt;P&gt;640 SP18: No buttons&lt;/P&gt;&lt;P&gt;640 SP23: They are there!&lt;/P&gt;&lt;P&gt;720 SP12: They are there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Rui Dantas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 15:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793941#M1310440</guid>
      <dc:creator>Rui_Dantas</dc:creator>
      <dc:date>2009-07-08T15:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: %_hints oracle '&amp;SUBSTITUTE VALUES&amp;'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793942#M1310441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rui Dantas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok, thanks for the feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my "feeling" that they appeared in 6.40 at a later stage was right... &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 15:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793942#M1310441</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2009-07-08T15:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: %_hints oracle '&amp;SUBSTITUTE VALUES&amp;'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793943#M1310442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hermann,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The creation of the Oracle Histogram is it a basis task?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 17:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hints-oracle-substitute-values/m-p/5793943#M1310442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-18T17:16:39Z</dc:date>
    </item>
  </channel>
</rss>

