Explicitly using full hint

Hi
In some of codes, I see the DBA explicitly force the sql to perform a full table scan by using full hint. What should be the reason?
thanks

user8779435 wrote:
I know Anurag. But what could be the reason for DBA to believe on that ...By comparing the one with without full hint and one with full hint.
If he would be getting better response time or less consistent gets or any other stats that he fill is better for the plan.
Like sometime doing full table scan would make a query to do hash join rather than nested loop and it could be possible that full table scan with hash join is giving better stats then index scan with nested loop
Regards
Anurag

Similar Messages

  • FULL hint usage

    Hi,
    I would like to know the benefits of using FULL table scan hint.
    SELECT /*+ FULL(A) */ * FROM TEST A;
    In our production system, when we join two bulk tables using FULL hint and it has got indexes on the join fields,
    performance is much better.
    If indexes are dropped and FULL hint is removed, performance is pretty slow.
    However, when indexes are available and I use FULL hint, how we get this performance improvement, does the processing
    happens in memory itself, please share your views on this.
    Regards,
    Sarathy

    Can you post your queries and EXPLAIN PLAN output? Otherwise we cannot be of much help.
    Make sure you post using the [pre] and [/pre] tags to format the output.
    cheers,
    Anthony

  • "Edit photo - Using Full Screen"

    Am I missing something? This hot tip seems to be nonsense:
    "Automatically open photos full screen on double click
    To make it easier to view your photos in glorious full screen, go the General area of the iPhoto preferences. There you can choose to "Edit photo - Using Full Screen". This will allow you to view any photo in full screen simply by double clicking its thumbnail in the organize view."
    There is no such Using Full Screen option when I go to the General area of Preferences....
    Any hints?

    For no apparent reason, my laptop starting opening my photos, when I double clicked on them, in my printer editing program. For the past couple of years, it always opened up in the iPhoto large screen editing option. Don't know why it suddenly changed. (I had not yet upgraded to iPhoto6). Thank you for telling me where to make the change. It works. I like the option of the two large black arrows below the main photo, so that I can go from one to another while the photos are still large and also stay in the iPhoto program.
    I hope "caliban" found that option and corrected his problem.

  • Reg: Exadata and /*+ FULL */ hint -

    Hi Experts,
    Recently, our database got migrated to Exadata environment, and a DBA told me that using the /*+ FULL */ hint in the query increases the query performance.
    Doubt -
    1) Does it actually enhance performance?
    2) I read some articles and got some information that Exadata does some kind of "Smart Scan" and "Cell Offloading" which makes the query efficient. But how does FULL hint contribute here?
    This links talks something about this, but not sure if correct - Some Hints for Exadata SQL Tuning - Part III - SQL Optimizer for Oracle - SQL Optimizer for Oracle - Toad World
    Please share your thoughts and advise.
    Thanks and Regards,
    -- Ranit
    ( on Oracle 11.2.0.3.0 - Exadata )

    Ranit -
    Lots of good advice given by others. A little more to add to the comments already made...
    Using a full hint as a general tuning rule on Exadata would not be a good idea, just like the sometimes proposed notion of dropping all indexes on Exadata to performance is not a good idea. As Mohamed mentions, a key performance optimization for Exadata are the smart scans, which do require direct path reads. Pushing for smart scans is what drives these types of ideas; because, other than the index fast full scan, index scans will not smart scan. However, smart scanning isn't always faster. OLTP type queries that are looking for one or two rows out of many are still usually faster with an index even on Exadata. If you find using a hint like FULL does improve a query's performance, then just as with using hints in general, it's better to determine why the optimizer is not picking the better execution plan, a full table scan in this case, in the first place; and resolve the underlying issue.
    What you will probably find is you are over-indexed on Exadata. If you have control of the indexes in your environment, test by making certain indexes invisible and seeing if that helps performance. Indexes that were created to eliminate a percentage, even a large percentage, of rows, but not almost all rows for queries are candidates to be dropped. You definitely want to tune for direct path reads.
    This is done by doing index evaluations as described; making sure your stats are accurate and up-to-date; as mentioned by Franck, be sure to gather the Exadata system stats - as this is the only thing that helps the optimizer be Exadata aware. And also, especially if you are running a data warehouse workload, you can look into using parallelism. Running queries in parallel, often even with a degree as little as 2, will help prompt the optimizer to favor direct path reads. Parallelism does need to be kept in check. Look into using the DBRM to help control parallelism - possibly even enabling parallel statement queuing.
    Hopefully these will give you some ideas of things to look at as you enter the realm of SQL Tuning on Exadata.
    Good luck!
    -Kasey

  • How do I use Sql hints in PreparedStatement?

    Hi,
    I am trying to use a sql query which uses Oracle hints to optimize the query. I am using the ojdbc drivers from Oracle. I am using the PreparedStatement (Java 1.4) to execute this query, but it returns an empty resultset. If I remove the hint, then the query works fine using the PreparedStatement. Does anyone know how to make sql hints work using preparedstatement. I tried it with Statement object and that works (ie. the hint works and returns rows as expected).
    The query is as follows:
    select /*+ ordered
    use_nl(ri ma)
    count(*),
    ma.columnName
    from table1 ri,
    table2 ma
    where ma.columnName2 = ri.columnName2
    and ma.column3 = 1
    and ri.column4 = 66
    group by ma.columnName
    I tried escaping the /*+ but that also didn't work. Any help would be appreciated.
    Thanks in advance,
    Parag

    Must be an old database.
    Presumably you tried it in sqlplus and it worked both ways. If not then nothing you do will make it work in java.
    Other than that my quess would be that it has nothing to do with the select.
    Some possibilities.
    1. You are eating exceptions.
    2. You are not running the code that you think you are.

  • HP Officejet Pro 8600 Plus not able to use full features

    HP Officejet Pro 8600 Plus (Model No. N911h)
    Serial No.[Personal Information Removed]
    Windows 7 Professional Service Pack 1
    The printer is being used on the desktop as a network printer.  Windows Firewall is turned off.  Office uses Trend Micro Antivirus.  Able to use full features like digital fax, print, scanning only when Trend Micro Office Scan is offloaded.  Printer was taking dynamic port so created Standard/TCP-IP port created.  Even this did not solve the problem.  Trend Micro administrators say the port is open.  Not sure if anything particularly needs to be allowed by Trend Micro.  Spoke with HP support system over phone.  They are also not sure what is to be done rectify the problem.

    Hello,
    I see that you're having an issue unblocking ports for the printer. 
    Here is a list of the ports that needs to be unblocked. Hopefully this will help. 
    Incoming ports (UDP) are destination ports on the computer while outgoing ports (TCP) are destination ports on the
    HP device.
    • Incoming (UDP) ports: 137, 138, 161, 427
    • Outgoing (TCP) ports: 137, 139, 427, 9100,
    9220, 9500
    The ports are used for the following functions:
    Printing
    • UDP ports: 427, 137, 161
    • TCP port: 9100
    Photo card upload
    • UDP ports: 137, 138, 427
    • TCP port: 139
    Scanning
    • UDP port: 427
    • TCP ports: 9220, 9500
    HP device status
    UDP port: 161
    Faxing
    • UDP port: 427
    • TCP port: 9220
    HP device installation
    UDP port: 427"

  • 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 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

  • How do I get my bookmarks to display again in a column on the left of my screen, just as it always has and the way I like them. I do not want to use full screen display without the bookmarks showing.

    I have a full screen and cannot see my bookmarks.
    How do I get my bookmarks to display again in a column on the left of my screen, just as it always has and the way I like them. I do not want to use full screen display without the bookmarks showing.

    View > Sidebar > Bookmarks (Ctrl+B)
    Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily.

  • Inventory cube load: can I use full load?

    hi,
    I have an inventory cube with non-cumolative chars. Can I use full load option or I thave to load with delta for non-cumulative KFs?
    Regards,
    Andrzej

    Hi Aksik,
    The load will not matter in the Addregation option.You can load by full or delta.
    Now the reports creation has to be done with this in mind that the figures has to come correctly.Specify the aggregation required in the properties of the keyfigure in the query.If required use a ODS in the data flow.
    regards
    Happy Tony

  • Use of hints in query performance

    Hi
    Please let me know actual usage of hints in query tunging, how do we write hints of increase performnace.
    let me know below query will gives better performnce. if hints are not use query will degrade performance.
    SELECT /*+ ORDERED INDEX (b, jl_br_balances_n1) USE_NL (j b)
    USE_NL (glcc glf) USE_MERGE (gp gsb) */
    b.application_id ,
    b.set_of_books_id ,
    b.personnel_id,
    p.vendor_id Personnel,
    p.segment1 PersonnelNumber,
    p.vendor_name Name
    FROM jl_br_journals j,
    jl_br_balances b,
    gl_code_combinations glcc,
    fnd_flex_values_vl glf,
    gl_periods gp,
    gl_sets_of_books gsb,
    po_vendors p

    942919 wrote:
    Please let me know actual usage of hints in query tunging, how do we write hints of increase performnace.The majority of hints would be used to diagnose a performance problem by identifying a better query plan and fixing the underlying reason that the optimizer did not select that plan automatically. Hints used in this way would be removed from the query after the cause of the performance problem was fixed.
    http://docs.oracle.com/cd/E11882_01/server.112/e16638/hintsref.htm#i8327
    Hints change the access paths and methods the optimizer chooses, so before using a hint, you need to understand what the optimizer does, what access methods are, when they are chosen, and what they are best used for.
    To do that you need to read the Performance Tuning Guide
    http://docs.oracle.com/cd/E11882_01/server.112/e16638/toc.htm
    At a minimum reading and understanding these sections -
    http://docs.oracle.com/cd/E11882_01/server.112/e16638/perf_overview.htm#i1006218
    http://docs.oracle.com/cd/E11882_01/server.112/e16638/optimops.htm#i21299
    http://docs.oracle.com/cd/E11882_01/server.112/e16638/ex_plan.htm#i19260
    http://docs.oracle.com/cd/E11882_01/server.112/e16638/stats.htm#i13546
    Then you should be able to use a hint safely.
    let me know below query will gives better performnce. if hints are not use query will degrade performance.Not true, hints change the performance of queries they can make them slower as well as faster. Here is an example of an index hint slowing down a query
    {message:id=1989089}

  • Why my ipad 4 wifi only can't use full funtion of apple map?

    Hi, i had an ipad4,but i can not use full funtion of apple map .it mean when i use gps navigation it do not  speak ,it only bold the road you set .that 's it. So please someone help me out.or gps only work on wifi + cellurlar

    Only the cellular iPads have a built-in GPS chip, the wifi-only models don't. There are some external GPS units that apparently work with it e.g. Bad Elf GPS.

  • I have recently upgraded to Firefox 5.0. I am now unable to use full screen mode when watching you tube. i've never had this problem before.

    i can't think of anything else to add. i've always been able to use full screen mode in firefox, it still works on vimeo and it still works on NEtflix..

    What happens when you try to use full screen mode -- button is ineffective, video doesn't display, etc.?
    By the way, Adobe has issued a couple of security updates recently, so you might want to update your Flash plugin.

  • How to use "full join" in ODI interface

    I need to join two tables using full join. So, when I drag and drop table columns (build join) and mark left and right join (get full join):
    +(All rows of OSS_NCELLREL (OSS_NCELLREL) including the rows unpaired with OSS_NECELASS (OSS_NECELASS) rows and all rows of OSS_NECELASS (OSS_NECELASS) incuding the rows unpaired with OSS_NCELLREL (OSS_NCELLREL)+
    I get the following error:
    Source panel of the diagram: Clause set to full join on a technology that does not support full joins
    I use Oracle DB tables in the same DB.
    Help! What I do wrong?

    Hi,
    You need to work around Topology Manager.
    Please follow the below steps,
    1. Edit the 'Oracle' technology from the Physical Architecture treeview.
    2. In the Technology Defintion Tab select 'Ordered (Sql ISO)' radio button.
    3. In the Technology 'SQL Tab' set the following:
    - Clause Location: From
    - Brackets supported in the ON clauses: check
    - Inner: check, type INNER JOIN
    - Cross: check, type CROSS JOIN
    - Left Outer: check, type LEFT OUTER JOIN
    - Right Outer: check, type RIGHT OUTER JOIN
    - Full Outer: check, type FULL OUTER JOIN
    PS: Please take a backup Oracle techno before editing. ;)
    Thanks,
    G
    Edited by: Gurusank on Nov 27, 2008 9:05 PM

  • How to use full qualified table names in RPD

    Hi,
    We are implementing the BI Financial Analytics, we have a requirement to use diffrent user accounts for DAC , ETL and OBIEE
    DAC, ETL we are using user as XXOBI
    For OBIEE RPD we have to use user with read only access such as XXOBI_APP
    How can i make the changed to BI server / RPD to use full qualified names.
    I have tried to select the Full Qualified table name property in Oracle Datawarehouse connection pool setting.
    If i enable that all my sql query is showing tables as catalog.dbo.w_party_d ( my tables in physical layer showing under catalaog -> dbo -> all tables and joins)
    Any help in this is appreciated.
    Thanks
    Kris

    kmangamuri wrote:
    Hi,
    We are implementing the BI Financial Analytics, we have a requirement to use diffrent user accounts for DAC , ETL and OBIEE
    DAC, ETL we are using user as XXOBI
    For OBIEE RPD we have to use user with read only access such as XXOBI_APP
    How can i make the changed to BI server / RPD to use full qualified names.
    I have tried to select the Full Qualified table name property in Oracle Datawarehouse connection pool setting.
    If i enable that all my sql query is showing tables as catalog.dbo.w_party_d ( my tables in physical layer showing under catalaog -> dbo -> all tables and joins)
    Any help in this is appreciated.
    Thanks
    KrisAre you saying you just need to access the database using different accounts? If that is the case, why dont you just update the connection pool settings like username and password with XXOBI_APP account which you are supposed to be using for OBIEE?

Maybe you are looking for

  • Discoverer Report Names

    Discoverer Report Naming Our service Provider has created lot many reports for us and now theres a need for a generic naming to be followed for the Discoverer reports. Could someone tell me how difficult it would be to rename all the reports? As I co

  • Does stagecraft support signing SWF files to validate their content?

    We are developing a project based on Flash Lite for Digital Home. Is there a way to sign the SWF files and have stagecraft to validate if the content of the SWF files is correct?

  • Connecting my iMac to my Hughesnet modem?

    Can someone please help me to connect my iMac to my Hughesnet modem? The tech who installed my Hughesnet said he could not get my computer to recognize my modem and Apple said that I had to pay to get help. If someone could please help, I would appre

  • [svn:fx-] 21427: Removed flex/sdk/tags/trunk4.5.1 - history not maintained!

    Revision: 21427 Revision: 21427 Author:   [email protected] Date:     2011-06-21 07:16:13 -0700 (Tue, 21 Jun 2011) Log Message: Removed flex/sdk/tags/trunk4.5.1 - history not maintained! Removed Paths:     flex/sdk/tags/trunk4.5.1/

  • Maximum Protection mode with multiple guaranteed Standby destinations

    Hello, We have the requirement to have our database in 3 locations, so we have 1 primary and 2 standbys. High Availbility is not that important as data protection. With maximum protection it's possible to guarantee the data replication to 1 standby d