Oracle hints

Hi,
I want to know if it's possible to avoid using an index in a query.
For example I defined 3 column indexes on a table named "SUMMARY_VECTOR" with the following names respectively:
1-SUMMARY_VECTOR_ENTITY_NAME_IDX
2-SUMMARY_VECTOR_IDX_CASE_NAME
3-SUMMARY_VECTOR_VECTOR_ID_IDX
I want to know if I can avoid using one of the three indexes in my query by using oracle hints.
If it's possible, please if can u post an example
Thanks

but I have other procedures which are affected by this new created index.Interesting, why didn't you try to understand this fact ?
HINT usage shouldn't be taken lightly. You are saying to Oracle optimizer you know better the route to be taken regardless what is happening to your table and regardless your stats.
HINT is a fixed advise, and doesn't change with the table data and statistics.
Maybe today it is bad to use the index, but tomorrow, after thousands inserted rows in your table, that would be better, unfortunately, your hint will ignore it.
Before going into HINT usage, you should understand why this index sounds bad for the other query, and if it's really bad, you should understand why Oracle wants to use it.
Nicolas.

Similar Messages

  • Using Oracle Hints in Selects......

    Hello,
    Are there any after effects/side effects by using Oracle Hints in a SQL select ??? (hints such as Cache, NOCache, all_rows)
    Can anyone let me know whether there are any good documentation or site on Oracel SQL hints..
    thanks
    Kanchi

    Hi!
    There is an exception, that I think is a bug in Oracle, but I4m not sure. If you use the PARALLEL HINT in a select that will be use in a Cursor, in order to insert the results in other table, and the results come in groups built following a group by sentence, there are possibilities that two childs (a child is a parallel process) take portions of this whole group, and built each one one group.
    If the new table use certain number of columns as a primary key, this may cause an duplicated primary key trigger.
    I4m going to write and document this case, in order to show it to oracle support.
    I hope this help. Bye.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by kanchana Hettiarachchi ([email protected]):
    Hello,
    Are there any after effects/side effects by using Oracle Hints in a SQL select ??? (hints such as Cache, NOCache, all_rows)
    Can anyone let me know whether there are any good documentation or site on Oracel SQL hints..
    thanks
    Kanchi<HR></BLOCKQUOTE>
    null

  • How to insert ORACLE HINT into select statement....

    Hi team,
    Can you please suggest me how to add an Oracle hint to point the Program to BSAD~1.
    Index BSAD1 has all three fields MANDT, BUKRS, AUGDT which are there in the where clause. But as per the execution plan index BSAD0 is being used which is the primary one.
    Also the stats for this table are are current.
    Thanks in Advance.
    Puneet.

    Hi punnet, look at this example:
      SELECT MAX( kkop~augbd )
      INTO it_gen_docs-augbd
      FROM ( fkkvkp AS vkp INNER JOIN dfkkop AS kkop
         ON vkpvkont = kkopvkont ) INNER JOIN dfkkko AS kkko
         ON kkopaugbl = kkkoopbel
      WHERE vkp~exvko = ti_cuentas-exvko
            AND kkop~bukrs = p_bukrs
            AND kkop~blart IN r_blart
            AND kkop~augst = '9'
            AND kkko~blart IN r_blartd
    %_HINTS ORACLE 'INDEX("DFKKOP" "DFKKOP~Z07")'.
    DFKKOP is the table name and DFKKOP~Z07 is the index.
    I hope this helps you.

  • Translation of ORACLE hints to DB2 hints

    Hi,
    how can I translate the ORACLE hints to equivalent DB2 hints in the following SELECT statement:
    ====================================================================
        SELECT qmihqmnum qmihwarpl qmihwapos afihaufnr
          FROM qmih AS qmih
          INNER JOIN objk AS objk
            ON objkihnum = qmihqmnum
          INNER JOIN afih AS afih
            ON afihobknr = objkobknr
          INNER JOIN afko AS afko
            ON afkoaufnr = afihaufnr
          INNER JOIN afvc AS afvc
            ON afvcaufpl = afkoaufpl
            AND afvcaplzl = objkobzae
          INTO CORRESPONDING FIELDS OF TABLE lt_iwar
          WHERE afih~iphas = '2'
            AND afvc~phflg <> 'X'
            AND afko~gstrp <= lf_datum_eckstart
            AND qmih~warpl IN lr_warpln
            AND qmih~wapos IN lr_wapos
        %_HINTS
        ORACLE 'LEADING(T_00)'
        ORACLE 'USE_NL(T_00 T_01 T_02 T_03 T_04)'
        ORACLE 'INDEX(T_00 "QMIH~Z02")'
        ORACLE 'INDEX(T_01 "OBJK~M")'
        ORACLE 'INDEX(T_02 "AFIH~O")'
        ORACLE 'INDEX(T_03 "AFKO~0")'
        ORACLE 'INDEX(T_04 "AFVC~0")'.
    ====================================================================
    Thanks a lot
    Alex

    Hello Hermann,
    first of all thanks a lot for the quick reply.
    In my example I'm referring to DB6.
    I tested this statement without any hints resulting in a 4-5 times longer response time compared to the Oracle based system.
    My biggest problem is, that the system uses index "C" to access table AFIH instead of using index "O" to join via field obknr.
    Index "C" on table AFIH is defined as
    -) MANDT
    -) IPHAS
    -) EQUNR
    Index "O" is defined as
    -) OBKNR
    -) MANDT
    Here's the EXPLAIN from ST05:
    ==========================================================================
       0 SELECT STATEMENT ( Estimated Costs =  1,962E+05 [timerons] ) num_rows tot_cost i/o_cost
              1 RETURN  6.3457E-02  1.9623E05  2.6207E04
                  2 NLJOIN  6.3457E-02  1.9623E05  2.6207E04
                      3 [O] NLJOIN  3.9594E01  1.9563E05  2.6128E+04
                          4 [O] HSJOIN  1.5837E03  1.5969E05  2.1377E+04
                              5 [O] FETCH AFIH  4.8355E05  2.6256E04  3.4579E+03
                                  6 IXSCAN AFIH~C #key columns:  2  4.8355E05  5.3460E02  8.3984E+01
                              7 <i> NLJOIN  5.9836E03  1.3342E05  1.7919E+04
                                  8 [O] FETCH QMIH  5.7811E03  2.2441E03  5.7555E+02
                                      9 RIDSCN  5.7811E03  7.2107E01  8.0000E+00
                                         10 SORT  1.4452E03  1.8027E01  2.0000E+00
                                             11 IXSCAN QMIH~Z02 #key columns:  2  1.4452E03  1.7650E01  2.0000E+00
                                         12 SORT  1.4452E03  1.8027E01  2.0000E+00
                                             13 IXSCAN QMIH~Z02 #key columns:  2  1.4452E03  1.7650E01  2.0000E+00
                                         14 SORT  1.4452E03  1.8027E01  2.0000E+00
                                             15 IXSCAN QMIH~Z02 #key columns:  2  1.4452E03  1.7650E01  2.0000E+00
                                         16 SORT  1.4452E03  1.8027E01  2.0000E+00
                                             17 IXSCAN QMIH~Z02 #key columns:  2  1.4452E03  1.7650E01  2.0000E+00
                                 18 <i> FETCH OBJK  1.0350E00  2.2700E01  3.0000E+00
                                     19 IXSCAN OBJK~M #key columns:  2  1.0350E00  1.5137E01  2.0000E+00
                         20 <i> FETCH AFKO  2.5000E-02  2.2700E01  3.0000E00
                             21 IXSCAN AFKO~0 #key columns:  2  1.0000E00  1.5136E01  2.0000E+00
                     22 <i> FETCH AFVC  1.6026E-03  1.5163E01  2.0032E00
                         23 IXSCAN AFVC~0 #key columns:  2  3.2053E-03  1.5139E01  2.0000E00
    ==========================================================================
    So my question would be how to make the system use index "O" on table AFIH instead of using index "C".
    Of course I studied note 868888. But still I don't know how to formulate hints for joins over more than two tables.
    Maybe you can give me a how to do that.
    Thanks a lot
    Alex

  • Regarding ORACLE HINTS and PARLLELISM

    Hi,
    Basically i am in ETL tester..Most of clients are asking about experience in ORACLE HINTS and PARALLELISM...Do any one please give basic idea what are those..why are those useful....and if you have any good site with examples with easy understanding...please send it...

    Is there any link which is easy to understand...when i see above links i assume i need to know some thing before learning these things....is there any thing i need to learn before learning oracle hints directly

  • TopLink 3.6.3 and Oracle hints.

    Hi.
    I'm wondering if is it possible to alter a TopLink expression build with the ExpressionBuilder API in order to insert an Oracle hint on it (eg: /*+RULE*/) I have done it in some of my "static" sentences as they are pure SQL but I can't find a way to do it in a dynamic query.
    Sorry if this is a common issue and it has already been answered but I've searched the forums with no luck.
    Thanks in advance.
    Ignacio.

    This pointer (though old) was quite useful. Thanks to Doug.
    We have an issue though. We are using Toplink Cursored Stream for retrieving the results from our queries.
    query.useCursoredStream();
    When we set a hint (query.setHintString("/*+ FIRST_ROWS */");) we see a vast improvement in the query that is fired by Toplink (wherein the hint is included):
    CursoredStream cursor = (CursoredStream) serverSession.executeQuery(query, parameters);
    And the problem we have is that when we need to retrieve the size of the cursor (size = cursor.size();), it fires a "select count(*) from ...." query where the hint is not applied and the resulting performance is bad.
    Can someone suggest what we else we need to do to suggest hints to the "select count(*)" query that Toplink fires for getting cursor stream size. Using a scrollable cursor is not an option since it is not efficient enough for our requirements.
    Thanks in advance
    Message was edited by:
    potu_s

  • Oracle Hint support for ojdbc14.jar

    hi I am just wondering if ojdbc14.jar oracle driver really supports oracle hint like /*+ PUSH_SUBQ */.
    If I execute a query from Oracle SQL Developer I can really see the performance improvement in the query execution, but if I try to run the query from my java application using this oracle thin driver, I am not getting the performance improvement.
    Can somebody help me if I need something else to enable support for Oracle hints in this driver?

    user8711425 wrote:
    hi I am just wondering And I'm just wondering if you really know what you are doing?
    You claim to have tuned an SQL statement by use of the PUSH_SUBQ hint. How did you manage that, did you qualitatively say that performance improved, aand in which way?
    If you had, I'd say you'd also be qualified to trace you session to see for yourself whether the hint was included or not, and whether it was actually applied or ignored.
    Apart from that, he SQL is after all executed by the server. The driver just hands over the SQL, and I would be very surprised if hints were removed from the client side SQL.
    But dunno, trace it if you are in doubt. And be very sure of what you are doing when using hints.
    Regards
    Peter

  • Problem with Oracle hint

    Is it possible to use oracle hint along with qblock query. I have /*FIRST_ROWS/ as hint in my query. Also used qblock to get the total no. of records. Getting "internal error code, arguments..."
    Any suggestions would be very useful...
    Thanks in Advance

    Verifying the SQL syntax would of course be the first step.

  • Can I Specify an Oracle Hint for a Query

    We are BW 3.1 Oracle 9.2.  We have a few InfoCube queries that would perform better if a full table scan on the fact table was done rather than using the system generated Star Transformation hint.
    When use RSRT or other entry points to see the SQL and the Explain plan, I have the option of putting in an Oracle hint and generating another Explain Plan.
    Is there any way to save the query with a different Oracle hint than the Star Transformation hint?

    Klaus -
    Thanks for responding.
    It is only a handful of queries that this is an issue with.  Overall, we are certainly better off using the star transformation. 
    Do you know the reasoning behind letting you specify a hint when running a query through RSRV if you can never actually specify those hints for actual production execution? Is the ability to add a hint anything that we might see in the future?
    In looking into this a little more, I looked at an explain plan for a query on one of our transactional InfoCubes.  We are Oracle 9.2, and transactional Infocubes have B-tree indices rather than bitmap on the F fact table.  Presumably to better support the input of transactions.  I see in the explain plan that with the star transformation, the btree indices are converted to  bitmap, then a bitmap merge, then the result of that is converted back to a btree index to read the F fact table.  Without the star transformation, the query cost is half, so the ability to suppress the star transformation on F fact queries on transactional cubes would also be nice.
    At another job, I used to use Brio to query a data warehouse and although Brio didn't have facility to specify a hint, you could define a calculated field in the query and actually enter the hint text as the calculation and as long as that field was the first to follow the Select stmt, it was recognized as an Oracle hint.  Maybe there could be some way to sneak a hint into the query.  It's not something you would want every query developer doing, but as long as someone knew when it was appropriate to override/surpress star transformation, it would be nice to be able to do.
    John

  • Oracle Hint on Table MKPF and MSEG : force index MSEG~M to be utilize

    Hi Experts, I'm quite new to ABAP performance tuning, I try to put details as much as I can in my question below, just to have a quick overview of my problem below, I want to use/force in my SQL below to force the utilization of index MSEG~M.
    added an Oracle Hint forcing index MSEG~M
      SELECT MATNR BWART MENGE
      FROM   MKPF
      INNER JOIN MSEG
         ON MKPFMANDT EQ MSEGMANDT
        AND MKPFMBLNR EQ MSEGMBLNR
        AND MKPFMJAHR EQ MSEGMJAHR
       INTO CORRESPONDING FIELDS OF TABLE T_MSEG2
      WHERE MKPF~BUDAT IN S_GSTRP    "(index bud should be used)
       AND  MSEG~MJAHR IN R_DOCYEAR
       AND  BWART IN ('931', '932',
                      '901', '902',
                      '701', '702',
                      '703', '704',
                      '707', '708',
                      '711', '712',
                      '713', '714',
                      '715', '716',
                      '717', '718',
                      '551', '552',
                      '553', '554',
                      '555', '556') "ZZCHK: Constants Not Applicable
             AND  MATNR IN R_MATNR3
             AND  MATNR IN R_COMPNTS
             AND  WERKS EQ P_WERKS
      %_hints oracle u2018INDEX(u201CMKPFu201D u201CMSEG~Mu201D)u2019.
    Note: I'm assuming that you'll take not some comments on further enhancement:
    - " INTO CORRESPONDING FIELDS "
    - use of field symbols
    - I didn't modify it yet since my focus if for MSEG~M
    - cannot make material number as mandatory field
    Objective: Force to use index MSEG~M
    Problem:
    After adding the Oracle Hint, I did the analysis in ST05 and it seems like index M is still not being forcefully
    utilize instead MSEG~0 is being used.
    I replaced the Oracle Hint with:
      %_hints oracle u2018INDEX(u201CT_01u201D u201CMSEG~Mu201D)u2019.
    In ST05, I can get see that index MSEG~M is now being utilize BUT worst thing happened after applying this, the program timed out.
    I already take a look on the following Notes: 129385, 130480, 772497, 162034, 818321 but nothing seems to be helpful in my problem.
    Questions:
    1.  In syntax %_hints oracle u2018INDEX(u201CT_01u201D u201CMSEG~Mu201D)u2019. T_01 stands for MKPF right which is the first table, do you what's the reason for the program time out after adding this Oracle Hint?  Is this the proper syntax?
    2.  How can I force in my code to use index MSEG~M without any program timeout?
    For the whole source code of my question above, please see the link:
    http://rapidshare.com/files/211740852/ZDXX0028.txt.html

    Hi Thomas, thanks with the prompt reply (even if it's Saturday )
    Yes, MKPF~BUD is being used.
    The budat selection is narrowed to 28 days though users can input any date range, a warning message will just be displayed if budat selection exceeded.
    Yes, optimizer usually chooses the right index; I'm not in as the same experience as you are though, but I find it interesting that after I added the Oracle hints (several combination) the performance of the program was optimize up to 40% to 50%.
    I uploaded a detailed SQL trace and the ABAP change done in my program, if you'll notice in the summary of the changes, after adding some hints, the duration of the program was improved..
    (SQL Trace Summary of my program) this worth taking a look
    http://rapidshare.com/files/211870091/ZD28_SQL_Trace.zip.html
    I made a custom index in MSEG, but unfortunately I doubt that it will be approve by our performance capacity team.  But I somehow have a hunch that this will further optimize the program.
    MSEG~Z03
    MANDT     Client
    WERKS     Plant
    BWART     Movement Type (Inventory Management)
    LGORT     Storage Location
    What do you think Thomas and SAP experts?
    **Sorry for pasting the whole ST05 result
         SELECT STATEMENT          ( Estimated Costs = 131.250 , Estimated #Rows = 450 )
                        6          FILTER
                        Filter Predicates
                        5          NESTED LOOPS
                        ( Estim. Costs = 131.249 , Estim. #Rows = 450 )
              Estim. CPU-Costs = 1.885.249.948 Estim. IO-Costs = 129.700
                        2          TABLE ACCESS BY INDEX ROWID          MKPF
                        ( Estim. Costs = 14.442 , Estim. #Rows = 288.570 )
                   Estim. CPU-Costs = 206.401.140 Estim. IO-Costs = 14.272
                   1          INDEX RANGE SCAN          MKPF~BUD
                        ( Estim. Costs = 655 , Estim. #Rows = 519.426 )
              Search Columns: 2
              Estim. CPU-Costs = 30.640.783 Estim. IO-Costs = 630
              Access Predicates          Filter Predicates
                        4          TABLE ACCESS BY INDEX ROWID          MSEG
                        Estim. CPU-Costs = 5.818 Estim. IO-Costs = 0
              Filter Predicates
              3          INDEX RANGE SCAN          MSEG~0
                   Search Columns: 3     
         Estim. CPU-Costs = 1.564 Estim. IO-Costs = 0
         Access Predicates          Filter Predicates

  • Oracle Hints - Bex Query

    Hi experts,
    can I add a particular hints when I execute at run time a query bex ?
    My main scope is that when I run a bex query, the corresponding query may use an oracle parallel hint in order to increase the performance.
    Do you think that I can do it ?
    Thank'you in advance !

    > can I add a particular hints when I execute at run time a query bex ?
    No, you can't.
    > My main scope is that when I run a bex query, the corresponding query may use an oracle parallel hint in order to increase the performance.
    Usually there's a good reason for BEX queries not to use the parallel query feature.
    That reason is: parallel query turns your multi-user database into a single-user query machine.
    This single sql session will aquire way more resources than a standard query - eventually blocking other activities.
    In order to speed up your BEX query better check the execution plan and figure out what makes the query too slow.
    Open a support message for it if you cannot do this yourself - there are quite some bugs around (even with Oracle 10.2.0.4) that lead to bad quey performance.
    Of course - the first things to check would be to install the current Oracle patchset, patches and setup the parameters correctly. More than 90% of all performance support messages are solved just by that!
    regards,
    Lars

  • Oracle Hint not causing any change to explain plan

    Hi,
    I was facing a problem about ORA-00600 for using Connect by Prior query,
    details of which are at -
    Connect by Prior - ORA-00600: internal error code, arguments: [kkqcbydrv:1
    As is documented by Oracle, workaround for this is to use /*+ NO_UNNEST */ in query.
    I displayed the explain plan for original query and after putting hint in query.
    There is no difference in the explain plans, I am a starter for explain plans and don't know much of it.
    But shouldn't the hint cause some change in explain plan?
    Even the hash values as mentioned in explain plans are same.
    Thanks in advance.
    Av.

    Perhaps it would help if you put the query (with the hint) and the explain plan here.

  • Use of an Oracle Hint for a WebI-Universe BEX based-Query  ?

    Hi,
    can I use an Oracle Optimizer Hint like /*+ PARALLEL(MyFacttable, 8) */
    for a WebI- ./. Universe- ./.  BEX based-Query ?
    Is this possible  ?
    If Yes: How and where to implement this  ?
    Thank You !
    Martin

    Hi,
    BusinessObjects only communictates with the MDX Interface by way of SAP's OLAP BAPI over RFC.
    Everything else, OLAP engine, Data Manager, etc etc Cube abstraction over a Relational schema is handled by the BW application.
    so No, BO can't "inject" any cleverness into BW processing architecture.
    Regards,
    H

  • How to use Oracle Hints in OBIEE

    Hello guys
    I have a report that is running forever and I have reviewed the explain plan over and over, which makes me think that the join between these 2 tables are slowing everything down --- The fact table has 10Billion records and the Dim has 10 Millions records. Even if the report has filters on various columns of the 2 tables, it is still taking forever. The explain is showing that its doing a nested loop join of these 2 tables which takes a lot of time.
    I am thinking of using some Hint to force the query to scan the dimension table first (with the filter condition I defined, it will return 80 rows only from Dim table), and then use the result set of the scanning to go and look for matching records only in the fact table. Its should help speed up the query..
    I'd like to know what kind of hints can help with that kind of operation, also how to define these kind of hints in OBIEE. Now I know that in Physical Layers, I can include hints in physical table property, but how to determine which table (fact or dim) to embed the join hints?
    Need advice from anybody who have experience working with hints?
    Much appreciation!

    Just an update:
    I have tried a couple of join operation hints like USE_NL and USE_HASH hints, it changes the join method but didn't help with performance at all.
    The original SQL that OBIEE generates is: ----------Takes about 20 mins to return a dozen rows
    select sum(T991020.LP Amount) as c1,
    T991021.DAYOFWEEK as c2,
    T991021.PU DATES as c3
    from RD_Grant.PU_DATES T991021, Dimension -----Huge
    PU_Grant.PU_FACTS_9 T991020 FACT ----Gigantic
    where (T991020.COMPANY = T991021.COMPANY
    and T991020.DATES = T991021.DATES
    and T991020.DATES between "10/10/2009" and "31/10/2009"
    and T991021.DAYOFWEEK = 'Sunday'
    and T991021.DATES between '09/13/2009' and '11/03/2009')
    group by T991021.PU DATES, T991021.DAYOFWEEK
    Basically I am still thinking of finding a way to force the query to scan the dimension table first (with the filter condition I defined, it will return 80 rows only from Dim table), and then use the result set of the scanning to go and look for matching records only in the fact table. Its should help speed up the query..
    Any suggestions?
    Thanks
    Edited by: user7276913 on Nov 5, 2009 7:07 PM
    Edited by: user7276913 on Nov 5, 2009 7:22 PM

  • SQL query performance difference with Index Hint in Oracle 10g

    Hi,
    I was having a problem in SQL select query which was taking around 20 seconds to get the results. So, by hit and trail method I added Index Oracle Hint into the same query with the list of indexes of the tables and the results are retrieved with in 10 milli seconds. I am not sure to get How this is working with Indexes Hint.
    The query with out Index Hint:
    select /*+rule*/ FdnTab2.fdn, paramTab3.attr_name from fdnmappingtable FdnTab, fdnmappingtable FdnTab2, parametertable paramTab1 ,parametertable paramTab3  where FdnTab.id=52787 and paramTab1.id= FdnTab.id  and paramTab3.id = FdnTab.id  and paramTab3.attr_value = FdnTab2.fdn  and paramTab1.attr_name='harqUsersMax' and paramTab1.attr_value <> 'DEFAULT' and exists ( select ParamTab2.attr_name from parametertable ParamTab2, templaterelationtable TemplateTab2  where TemplateTab2.id=FdnTab.id  and ParamTab2.id=TemplateTab2.template_id  and ParamTab2.id=FdnTab2.id  and ParamTab2.attr_name=paramTab1.attr_name)  ==> EXECUTION TIME: 20 secs
    The same query with Index Hint:
    select /*+INDEX(fdnmappingtable[PRIMARY_KY_FDNMAPPINGTABLE],parametertable[PRIMARY_KY_PARAMETERTABLE])*/ FdnTab2.fdn, paramTab3.attr_name from fdnmappingtable FdnTab, fdnmappingtable FdnTab2, parametertable paramTab1 ,parametertable paramTab3 where FdnTab.id=52787 and paramTab1.id= FdnTab.id and paramTab3.id = FdnTab.id and paramTab3.attr_value = FdnTab2.fdn and paramTab1.attr_name='harqUsersMax' and paramTab1.attr_value <> 'DEFAULT' and exists ( select ParamTab2.attr_name from parametertable ParamTab2, templaterelationtable TemplateTab2 where TemplateTab2.id=FdnTab.id and ParamTab2.id=TemplateTab2.template_id and ParamTab2.id=FdnTab2.id and ParamTab2.attr_name=paramTab1.attr_name) ==> EXECUTION TIME: 10 milli secs
    Can any one suggest what could be the real problem?
    Regards,
    Purushotham

    Sorry,
    The right query and the explain plan:
    select /*+rule*/ FdnTab2.fdn, paramTab3.attr_name from fdnmappingtable FdnTab, fdnmappingtable FdnTab2, parametertable paramTab1 ,parametertable paramTab3  where FdnTab.id=52787 and paramTab1.id= FdnTab.id  and paramTab3.id = FdnTab.id  and paramTab3.attr_value = FdnTab2.fdn  and paramTab1.attr_name='harqUsersMax' and paramTab1.attr_value <> 'DEFAULT' and exists ( select ParamTab2.attr_name from parametertable ParamTab2, templaterelationtable TemplateTab2  where TemplateTab2.id=FdnTab.id  and ParamTab2.id=TemplateTab2.template_id  and ParamTab2.id=FdnTab2.id  and ParamTab2.attr_name=paramTab1.attr_name) 
    SQL> @$ORACLE_HOME/rdbms/admin/utlxpls.sql
    PLAN_TABLE_OUTPUT
    Plan hash value: 651267974
    | Id | Operation | Name |
    | 0 | SELECT STATEMENT | |
    |* 1 | FILTER | |
    | 2 | NESTED LOOPS | |
    | 3 | NESTED LOOPS | |
    | 4 | NESTED LOOPS | |
    |* 5 | INDEX UNIQUE SCAN | PRIMARY_KY_FDNMAPPINGTABLE |
    PLAN_TABLE_OUTPUT
    |* 6 | TABLE ACCESS BY INDEX ROWID| PARAMETERTABLE |
    |* 7 | INDEX UNIQUE SCAN | PRIMARY_KY_PARAMETERTABLE |
    | 8 | TABLE ACCESS BY INDEX ROWID | PARAMETERTABLE |
    |* 9 | INDEX RANGE SCAN | PRIMARY_KY_PARAMETERTABLE |
    | 10 | TABLE ACCESS BY INDEX ROWID | FDNMAPPINGTABLE |
    |* 11 | INDEX UNIQUE SCAN | SYS_C005695 |
    | 12 | NESTED LOOPS | |
    |* 13 | INDEX UNIQUE SCAN | PRIMARY_KY_PARAMETERTABLE |
    |* 14 | INDEX UNIQUE SCAN | PRIMARY_KEY_TRTABLE |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
    1 - filter( EXISTS (SELECT 0 FROM "TEMPLATERELATIONTABLE"
    "TEMPLATETAB2","PARAMETERTABLE" "PARAMTAB2" WHERE
    "PARAMTAB2"."ATTR_NAME"=:B1 AND "PARAMTAB2"."ID"=:B2 AND
    "PARAMTAB2"."ID"="TEMPLATETAB2"."TEMPLATE_ID" AND
    "TEMPLATETAB2"."ID"=:B3))
    5 - access("FDNTAB"."ID"=52787)
    6 - filter("PARAMTAB1"."ATTR_VALUE"<>'DEFAULT')
    7 - access("PARAMTAB1"."ID"="FDNTAB"."ID" AND
    PLAN_TABLE_OUTPUT
    "PARAMTAB1"."ATTR_NAME"='harqUsersMax')
    9 - access("PARAMTAB3"."ID"="FDNTAB"."ID")
    11 - access("PARAMTAB3"."ATTR_VALUE"="FDNTAB2"."FDN")
    13 - access("PARAMTAB2"."ID"=:B1 AND "PARAMTAB2"."ATTR_NAME"=:B2)
    14 - access("TEMPLATETAB2"."ID"=:B1 AND
    "PARAMTAB2"."ID"="TEMPLATETAB2"."TEMPLATE_ID")
    Note
    - rule based optimizer used (consider using cbo)
    43 rows selected.
    WITH INDEX HINT:
    select /*+INDEX(fdnmappingtable[PRIMARY_KY_FDNMAPPINGTABLE],parametertable[PRIMARY_KY_PARAMETERTABLE])*/ FdnTab2.fdn, paramTab3.attr_name from fdnmappingtable FdnTab, fdnmappingtable FdnTab2, parametertable paramTab1 ,parametertable paramTab3 where FdnTab.id=52787 and paramTab1.id= FdnTab.id and paramTab3.id = FdnTab.id and paramTab3.attr_value = FdnTab2.fdn and paramTab1.attr_name='harqUsersMax' and paramTab1.attr_value <> 'DEFAULT' and exists ( select ParamTab2.attr_name from parametertable ParamTab2, templaterelationtable TemplateTab2 where TemplateTab2.id=FdnTab.id and ParamTab2.id=TemplateTab2.template_id and ParamTab2.id=FdnTab2.id and ParamTab2.attr_name=paramTab1.attr_name);
    SQL> @$ORACLE_HOME/rdbms/admin/utlxpls.sql
    PLAN_TABLE_OUTPUT
    Plan hash value: 2924316070
    | Id | Operation | Name | Rows | B
    ytes | Cost (%CPU)| Time |
    PLAN_TABLE_OUTPUT
    | 0 | SELECT STATEMENT | | 1 |
    916 | 6 (0)| 00:00:01 |
    |* 1 | FILTER | | |
    | | |
    | 2 | NESTED LOOPS | | 1 |
    916 | 4 (0)| 00:00:01 |
    | 3 | NESTED LOOPS | | 1 |
    401 | 3 (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    | 4 | NESTED LOOPS | | 1 |
    207 | 2 (0)| 00:00:01 |
    |* 5 | TABLE ACCESS BY INDEX ROWID| PARAMETERTABLE | 1 |
    194 | 1 (0)| 00:00:01 |
    |* 6 | INDEX UNIQUE SCAN | PRIMARY_KY_PARAMETERTABLE | 1 |
    | 1 (0)| 00:00:01 |
    |* 7 | INDEX UNIQUE SCAN | PRIMARY_KY_FDNMAPPINGTABLE | 1 |
    PLAN_TABLE_OUTPUT
    13 | 1 (0)| 00:00:01 |
    | 8 | TABLE ACCESS BY INDEX ROWID | PARAMETERTABLE | 1 |
    194 | 1 (0)| 00:00:01 |
    |* 9 | INDEX RANGE SCAN | PRIMARY_KY_PARAMETERTABLE | 1 |
    | 1 (0)| 00:00:01 |
    | 10 | TABLE ACCESS BY INDEX ROWID | FDNMAPPINGTABLE | 1 |
    515 | 1 (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    |* 11 | INDEX UNIQUE SCAN | SYS_C005695 | 1 |
    | 1 (0)| 00:00:01 |
    | 12 | NESTED LOOPS | | 1 |
    91 | 2 (0)| 00:00:01 |
    |* 13 | INDEX UNIQUE SCAN | PRIMARY_KEY_TRTABLE | 1 |
    26 | 1 (0)| 00:00:01 |
    |* 14 | INDEX UNIQUE SCAN | PRIMARY_KY_PARAMETERTABLE | 1 |
    65 | 1 (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
    1 - filter( EXISTS (SELECT /*+ */ 0 FROM "TEMPLATERELATIONTABLE" "TEMPLATETAB
    2","PARAMETERTABLE"
    PLAN_TABLE_OUTPUT
    "PARAMTAB2" WHERE "PARAMTAB2"."ATTR_NAME"=:B1 AND "PARAMTAB2"."ID"
    =:B2 AND
    "TEMPLATETAB2"."TEMPLATE_ID"=:B3 AND "TEMPLATETAB2"."ID"=:B4))
    5 - filter("PARAMTAB1"."ATTR_VALUE"<>'DEFAULT')
    6 - access("PARAMTAB1"."ID"=52787 AND "PARAMTAB1"."ATTR_NAME"='harqUsersMax')
    7 - access("FDNTAB"."ID"=52787)
    9 - access("PARAMTAB3"."ID"=52787)
    11 - access("PARAMTAB3"."ATTR_VALUE"="FDNTAB2"."FDN")
    13 - access("TEMPLATETAB2"."ID"=:B1 AND "TEMPLATETAB2"."TEMPLATE_ID"=:B2)
    14 - access("PARAMTAB2"."ID"=:B1 AND "PARAMTAB2"."ATTR_NAME"=:B2)
    PLAN_TABLE_OUTPUT
    Note
    - dynamic sampling used for this statement
    39 rows selected.

Maybe you are looking for

  • Webcam, USB Ports stopped working suddenly

    Hi everyone,  Wondering if anyone can help me, my webcam and all USB ports have suddenly all stopped working. Yesterday my mouse light was flickering but still working and today the same mouse won't light up at all. I tried with a different mouse and

  • Cannot select my Mac HD to install Mountain Lion

    When installing from Snow Leopard on a iMac late 2009, when I have to choose the HD, it says that it cannot boot on my Mac HD partition...I haven't got Time Machine active, and I haven't used it

  • Cover Flow Blurred Album Art - Bug?

    Cover Flow is losing focus on whatever the displayed album art is after a few seconds of scrolling (image becomes burry). Once this happens it stays that way and affects all album art until Cover Flow is exited. Happens at random, doesn't seem to be

  • Illustrator | flash import

    Hello- I'm on MAC OS 10.4.7 using MX2004 and Adobe Illustrator CS2 I'm creating a fairly complex animation. well, the animation isn't so complex as the illustration. I've laid it out in illustrator, with each frame of the story board in it's own file

  • Customized logon panel in web analysis

    Hello all, hope someone can help me with this. We are trying to show a different image for the web analysis studio. Reading this boards and the documentation, we have it working for Workspace (replace logon_panel.jpg, restart services) We are trying