How to stop bitmap conversion

Hi All,
Here is the situation.
To get the reports one global temporary table has been created.
Whenever reports has to generate
1) It first insert records into temporary table from multiple tables based on select statement (here global temporary table is not analyzed after the inserts of millions records)
Insert into temp_table (select * from table_a,table_b where <condition) ;
number of records in temp_table = 5-10 millions
2) Now the reports are being generated with select statement that uses temporary table along with other table
Select <column_list> from temp_table , table_c where <some_condition>;
If I check the execution plan it includes bitmap conversion from row_id and to_id.
ID PARENT OPERATION OBJECT_NAME
0 SELECT STATEMENT
1 0 TABLE ACCESS BY INDEX ROWID LXRO_685993E3
2 1 NESTED LOOPS
3 2 INDEX FULL SCAN MXTEMPOID_MXOID_MXINDEX
4 2 BITMAP CONVERSION TO ROWIDS
5 4 BITMAP AND
6 5 BITMAP CONVERSION FROM ROWIDS
7 6 INDEX RANGE SCAN LXRO_685993E3_LXFROMLAT_INDEX
8 5 BITMAP CONVERSION FROM ROWIDS
9 8 INDEX RANGE SCAN LXRO_685993E3_LXTYPE_INDEX
To execute this query it takes long time compare to non bitmap conversion.
3) Whenevr I gather stats on the temp_table and see the new execution plan look like following (no bitmap conversion). Gathering stats only affect the subsequent queries not the current query which is running with bitmap conversion. Here I want to stop the bitmap conversion for the current query. I mean before it picks up the execution plan with bitmap conversion
ID PARENT OPERATION OBJECT_NAME
0 SELECT STATEMENT
1 0 TABLE ACCESS BY INDEX ROWID LXRO_685993E3
2 1 NESTED LOOPS
3 2 INDEX SKIP SCAN MXTEMPOID_MXOID_MXINDEX
4 2 INDEX RANGE SCAN LXRO_685993E3_TYPFLATFID_INDEX
4) Please explain how can I stop the bitmap conversion happening in execution plan. (had it been permanent table once the stats gathering is enough but as its temporary table)
5) after the report generation records from the temp tables are deleted immediately.
Thank you
-Anurag

user635138 wrote:
Hi Jonathan,
a) table is created as "on commit delete rows" (the default)
b) user is getting rid of the temporary data by deleting it,Not related to the index issue, but with "on commit delete rows", the users don't need to delete the GTT data, they can simply issue a "commit;" and their data will disappear. It's possible, of course, that the 3rd party application won't let you do this.
c) everyone who uses this table insert different volumes of data from different different select queriesSo we need to know if there are any statst generated at any time - perhaps by program, possibly by dynamic_sampling, that could cause plans to change when cursors were invalidated. Your early posts mentioned gathering stats on the GTT - but if you use any of the normal collection method with an "on commit delete rows" table, you should get stats showing no data in the table, and that is likely to affect the execution plan. What method are you using to generate the plan, by the way ?
d) What indexes exist on this table. for this see the syntax of table and index. it might help to come to solution
My mistake - I should have noticed that the bitmap conversion was happening on the other table, not the GTT. This suggests that you may need to consider the two-column index as a solution to the problem - but before you do that, take a look at the queries and data. You say that you get 5M to 10M rows in the GTT: that's quite a lot of "temporary" data - without looking at what the optimizer suggests, can you work out a sensible execution path for the query.
In passing - you have "conditions" in the where clause, but how variable are these, and are they only join coniditions or do you also have some flitering conditions on the non-GTT.
>
More over user executes MQL statement (this MQL is converted to SQL internally then comes on database) I have very little knowledge of MQl, don't know what change has to be made into MQL to add hints in SQL statement. no control over SQL. so only thing is, Is there any way to gather stats on table before report generation.
If you can load a real table with representative data, you could generate stats for it, then transfer the stats to the GTT. Another option - with the limitations of the dynamic_sampling hint - is to set the parameter optimizer_dynamic_sampling to the value 2, which will tell the optimizer to sample a few blocks from every table that has no stats (and this includes GTTs automatically). If you try this, remember that you seem to have collected zero stats on the GTT, so you may have to delete these before Oracle samples the table.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
"Science is more than a body of knowledge; it is a way of thinking"
Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • BITMAP CONVERSION TO ROWIDS

    This is the plan used for my query in my prod database.
    10.2.0.3
    In dev same oracle version, the plan is not doing bitmap conversion.
    prod query time: 4minutes
    dev query time:20 seconds
    how can i tell oracle to stop bitmap conversing on me?
    BTW, i have no bitmap index, weird.
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1934 | 267K| 3025 (1)| 00:00:37 |
    | 1 | SORT ORDER BY | | 1934 | 267K| 3024 (25)| 00:00:37 |
    | 2 | UNION-ALL | | | | | |
    | 3 | MAT_VIEW ACCESS BY INDEX ROWID | MV_SONG | 92 | 14076 | 2304 (1)| 00:00:28 |
    | 4 | BITMAP CONVERSION TO ROWIDS | | | | | |
    | 5 | BITMAP AND | | | | | |
    | 6 | BITMAP CONVERSION FROM ROWIDS| | | | | |
    |* 7 | INDEX RANGE SCAN | IDX_MV_SONG_USCFALB | | | 417 (2)| 00:00:06 |
    | 8 | BITMAP CONVERSION FROM ROWIDS| | | | | |
    | 9 | SORT ORDER BY | | | | | |
    |* 10 | DOMAIN INDEX | MV_SON_TITLE_FULLT_IDX | | | 1827 (0)| 00:00:22 |
    | 11 | MAT_VIEW ACCESS BY INDEX ROWID | MV_SONG | 1842 | 253K| 720 (1)| 00:00:09 |
    |* 12 | INDEX RANGE SCAN | IDXF_MV_SONG_SONTUSFALB | 737 | | 3 (0)| 00:00:01 |
    ----------------------------------------------------------------------------------------------------

    In dev same oracle version, the plan is not doing bitmap conversion.
    prod query time: 4minutes
    dev query time:20 secondsIs the amount of data in both databases the same?
    If you want to switch off this behaviour you can change the value of the BTREE_BITMAP_PLANS parameter. (Actually it might not be an underscore parameter in 10.2 - I wouldn't know, I'm still on 9i). Of course, the usual caveats about tweaking underscore paarmters apply.
    Niall Litchfield wrote an interesting article on this pararmeter aa couple of years back. You should read it.
    Cheers, APC

  • In Pages 5, Maverick, How do I stop automatic conversation of URLs to hyperlinks and seeing them underlined

    There used to be a preference setting in Pages.  Now it seems gone in Pages 5.   So how do I stop automatic conversation of URLs to hyperlinks and seeing them underlined in text.  Sometimes I want it, but not always.

    The preference setting to turn off links is gone. When you enter content that triggers link detection, a link character style gets applied. Right-click on the link, choose Edit Link from the menu, and then Remove.
    To prevent Pages from automatically detecting links, visit Edit > Substitutions > and deselect Smart Links.

  • How to get rid of 'BITMAP CONVERSION' in Execution Plan.

    Hi I am using oracle 10g.
    I am getting the path of execution of the query something as below. I have posted some part of it not all.
    I want to get rid of this 'BITMAP CONVERSION' Section of the path, is there any hint for the same in oracle?
    |  56 |      TABLE ACCESS BY INDEX ROWID      | XMVL_ONLINE_VIEW_BASE         |  7274 |  1662K|       |  3320  (21)| 00:00:17 |
    |  57 |       BITMAP CONVERSION TO ROWIDS     |                               |       |       |       |            |          |
    |  58 |        BITMAP AND                     |                               |       |       |       |            |          |
    |  59 |         BITMAP OR                     |                               |       |       |       |            |          |
    |  60 |          BITMAP CONVERSION FROM ROWIDS|                               |       |       |       |            |          |
    |  61 |           SORT ORDER BY               |                               |       |       |       |            |          |
    |  62 |            INDEX RANGE SCAN           | IDX_XMVLONLINEVIEW_BCOMPANYPK |       |       |       |     4  (50)| 00:00:01 |
    |  63 |          BITMAP CONVERSION FROM ROWIDS|                               |       |       |       |            |          |
    |  64 |           SORT ORDER BY               |                               |       |       |  3608K|            |          |
    |  65 |            INDEX RANGE SCAN           | IDX_XMVLONLINEVIEW_BCOMPANYPK |       |       |       |     4  (50)| 00:00:01 |
    |  66 |         BITMAP CONVERSION FROM ROWIDS |                               |       |       |       |            |          |
    |  67 |          SORT ORDER BY                |                               |       |       |  3288K|            |          |
    |  68 |           INDEX RANGE SCAN            | IDX_XMVLVIEW_UPPERVENDORNAME  |       |       |       |    59  (45)| 00:00:01 |

    Mark,
    Please check below link :
    http://www.orafaq.com/node/1420
    In the above link there is a query :
    EXPLAIN PLAN FOR
    SELECT *
    FROM ef_actl_expns
    WHERE lbcr_sk IN (
    SELECT lbcr_sk
    FROM ed_lbr_cst_role
    WHERE lbr_actv_typ_cd = 'A'
    If it is ALTER SESSION SET OPTIMIZER_MODE = 'FIRST_ROWS' then there is "BITMAP CONVERSION TO ROWIDS" in the execution plan, but if it is ALTER SESSION SET OPTIMIZER_MODE = 'FIRST_ROWS_1' then there is no "BITMAP CONVERSION" in the plan. So, can we suggest to OP to go for ALTER SESSION SET OPTIMIZER_MODE = 'FIRST_ROWS_1' ?
    But yes, as you stated that what is 4 digit of Oracle version is also mising in the above link. I am just asking that is it good to go with ALTER SESSION SET OPTIMIZER_MODE = 'FIRST_ROWS_1' please ? Because generally in the execution plan "BITMAP CONVERSION" happens for star transformation so, I think below link may also be interest to OP :
    http://docs.oracle.com/cd/B19306_01/server.102/b14223/schemas.htm
    Regards
    Girish Sharma

  • How to stop email chaos?

    Does anybody know how to stop email chaos with the new mail program that "intuitively" groups messages together so you cant find them anymore? I just want all my emails on their own as they come in. I dont want whatever layer of AI they are trying to layer over this because it doesnt work.

    Hello,
    Take a look to the "View" menu and uncheck "Organize by Conversation" option ...
    Regards.

  • I switched my number to my daughters iPhone 4 and she got an iPhone 5.  When I send txt using iMessage, she is getting a copy of the txt on her phone as well. Any idea on how to stop this?

    I switched my number to my daughters iPhone 4 and she got an iPhone 5.  When I send txt using iMessage, she is getting a copy of the txt on her phone as well. Any idea on how to stop this?

    This occurs when two people share the same apple id for imessage.
    settings - message - send & receive - uncheck or remove the apple id.
    do the same for start a new conversation.

  • How to stop crazy AIR!

    Hi,
    When I convert videos, e.g. Youtube video, using Roxio Copy & Convert, 'something' keeps creating Flv files during the process. Often it screws up the whole work. Roxio soft does not support Flv. I do know for sure it is being done by Adobe Air. The AIR pop-up windows popped up while I was converting the videos and ever since nothing is going well. I deleted Adobe Media Player but it didn't stip either Flv creation or screwing the conversion.
    I often see Flv files that have nothing to do with the videos I am converting. I don't even know where they came from. I don't even know what Air does and want to uninstall it. But, I read somewhere it has something to do with Flash or others. The situation is totally annoying.
    Would anyone know how to stop this?
    Thanks a lot for your help.

    You posted in the forum about these forums, which is not the right  place for issues with video conversion or AIR. From your description I find it unlikely your issue is caused by AIR, so I would suggest you repost in the forum for whichever video conversion tool you are using. If that is an Adobe tool you can browse the list of forums here, else I suggest checking the website of your vendor.

  • How to STOP syncing with Outlook via GPRS?

    I use an unlocked iPhone 3G with a prepaid mobile card.
    Everytime I open my Calendar function on the iPhone (just to see the days and dates) the iPhone attempts to sync over the air with my Outlook account calendar via GPRS.
    This costs a bomb on the prepaid card, and I want to stop the sync function.
    Would someone kindly tell me how to STOP the iPhone from syncing with my Outlook Calendar?

    If calendar events are synced over the air, this means you are accessing an Exchange account or a MobileMe account.
    If you don't want to sync calendar events over the air with the account, you need to turn Calendars off for over the air syncing for the account preferences on your iPhone. This will erase all calendars and calendar events from your iPhone and you will need to sync direct with a supported application on your computer via the iTunes sync process. If an Exchange account with Outlook on a Winblows PeeCee, this will not be possible.

  • How to stop syncing the photos only on facebook

    how to stop syncing the photos only on facebook

    corg2333 wrote:
    yeaa but it is not only on facebook i think..
    Disable the automatic spell checking service in your browser.
    Safari
    --> Edit --> spelling and grammar --> uncheck "check while typing"
    Firefox
    http://support.mozilla.com/de/questions/500215

  • How to stop voice control

    how to stop voice control?

    Hi Joannewpark,
    Press your Home Button to get to the Home Screen.
    Press Settings, then press again 2x fast - you will go to the Settings screen
    Press on General, then press again 2x fast - you will go to the General screen
    Use 2 fingers to indicate scroll up - Voice Over will begin to read the items on the screen, and will eventually get to the Accessibility option. When it says "Accessibility" press on it, then press on it 2x fast
    It will go to the Accessibility screen, tap on the Voice Over option one, and then again 2x fast, now tap on the Voice Over option again, and then double tap to turn it off.
    Cheers,
    GB

  • How to stop text box on iWeb page from automatically reverting to hyperlink when I click 'save'

    As far as I see, the main text box in the body section of my iWeb page reverts to a hyperlink (connecting to a file) when I click save.  I don't know how the hyperlink got activated to begin with--I must have done something, but I don't know what it was.  I tried this many times to fix it: went to Inspector "hyperlink" section, activated the text box in the page, un-clicked "make hyperlinks active" (so they are inactive), then un-clicked "Enable as a hyperlink."  That much works--the hyperlink (little white arrow in blue circle) disappears from the lower right corner of text box.  But as soon as I save (command S), the text box reverts to a hyperlink. 
    If I don't click save and move around the pages, it does not revert to a hyperlink.  It only reverts to a hyperlink when the file is saved.  Why is it doing this and how to stop this from happening--how to permanently return the text box to a non-hyperlink?
    The website page is: http://www.usronline.net/USR/VedicResearch.html.  If you click anywhere randomly in the main text, you'll get a prompt to download a PDF file.  This should not be, but I can't get this hyperlink to go away for good.
    Many thanks in advance.
    Vishnupriya

    Please pardon the reply delay--a big project deadline had to be met.  Now back to this work:
    Yes, the text in the oval object had a drop shadow (the oval object itself did not).  I removed the drop shadow from the text, but the image file icon stayed in the right corner of the oval object.  I deleted the text and then the image file icon disappeared.  But as soon as I typed text again inside the oval object (not even pasting the previous text) the image file icon appeared again.  I deleted the oval object entirely and simply typed the text inside the main text box itself.  The image file icon that was attached to that oval object is gone (along with the oval object).
    Still the image file icon is attached to the main text box, though.  I again tried to uncheck the Enable as hyperlink (same process as described in first posting) with that oval object gone, but when I "save" again it reverts to a hyperlink. 
    Next I tried this: I copied the text from the problem text box and pasted it into another text box (outside of the problem one).  Still in the new text box with the pasted text, the image file icon shows in the upper right corner. 
    I also removed all the drop shadow features from this main text box (there was one more, on some words typed in the main text box), but it is still showing as an image.
    I don't know how it became an image file, and I'm still stumped as to how to fix it (short of forgetting about trying to figure out how it became an image and just retyping all text into a new text box).
    The link you provided for "Web Safe Fonts" is returning this: "The server at www.ampsoft.net is taking too long to respond."  I'm using Arial and Georgia (Georgia only on the menu and header text) in the site, and I had verified before designing the site that these are web safe, so I had thought they were.
    If you or anyone have any further suggestions or suspicions on this matter, I'd be glad to hear them.
    Thank you.

  • In my macbook pro when composing email it coping into thrash as well so how to stop this ?

    in my macbook pro when composing email it coping into thrash as well so how to stop this ?

    You may have a Bad fan. Make an appointment and take it to the genius bar for an evaluation. It's free, in warranty or out.

  • Can't figure out how to stop my MBP from opening programs at startup, namely word and messages

    Recenty my MBPro has started opening MS Word and Messages at startup and I can't figure out how to stop it?  I've tried selecting and de-selcting the startup option from the dock but this doesn't help.  Does anyone have any suggestions?

    System Preferences has a setting for this.
    In the Users & Groups section you will fine a "Login Items" header.  This is a list of all the programs that will open automatically when you log in.  You can select any program and click the [--] button below that window to stop the program from opening automatically.

  • How to stop iTunes creating a new library on my hard drive when it can't find the one I have created and told it to use on an external drive?

    I have quite alot of music etc so to save hard drive space I have created my iTunes library on an external hard drive. If I ever accidentaly open iTunes when that external hard drive isn't attached iTunes makes a whole new library from scratch on my computers hard drive. I find this highly frustrating as I often open Itunes to find no music as it have changed librarys and I have to re-load my actual library: very frustraiting and time consuming.
    I would like to know if it is possible to lock iTunes some how to stop it from changing folders when it can'f find the library, or atleast give me a warning that it can't find the library before creating a whole new one????

    Tunes works through a database file which has a list of your tracks.  When you click on a track it looks up in the database which file it needs to play, then plays the file.  If something breaks this link then you get !  The two main ways to get ! are to move a file from where iTunes expects it to be, or to delete it altogether.  I don't know which has happened in your case.  You can try using Spotlight to find a file for the one referred to in a broken link.  If the files have been moved then they need to be moved back.  If they were deleted completely you will have to restore them from a backup or download them again from the iTunes Store and rebuild your library.

  • How to stop multiple auto-switching to address bar every time I open a new tab and try to type something anywhere outside of address bar?

    How to stop multiple auto-switching to address bar every time I open a new tab and try to type something anywhere outside of address bar? Like something just wants me to use that embedded search when u type something not-web-address in address bar and hit enter. And the most ridiculous thing is that it happens repeatedly on like every second, like I just move down from address bar and start typing again, but then again it switches me to address bar, and 3, 4 times like that. And the result is also that I can't see the address of that page.
    I think its has something to do with my AVG antivirus, because this started the same time some AVG Nation started to appear in every new tab i open (and thats also irritating me, I read about it here on support.mozilla.org and it seems that the only solution is to completely reinstall Firefox, but I dont want to lose all my settings) but when i type something in address bar and hit enter it opens the search results in Google.
    Please try to help me, I like Firefox but I must switch to Chrome until I fix this problem.
    Thanks in advance

    First, please update to Firefox 32. 22 is no longer support nor is it secure. Then let us know if you still have this problem. [[Update Firefox to the latest version]]

Maybe you are looking for

  • My safari stOp play videos on iPhone

    I was able to play videos through my safari app on my iPhone 4. Ever since I updated my phone from 4.3.5 to iOS 5 the safari can't pay any videos now. I tried closing resetting the app JavaScript is turned on. I even restarted my phone and the proble

  • Config settings to configure PO doucment number as storage bin coordinates.

    Hello, For example, for a goods receipt, you can set up the system to use the purchase order number as the storage bin coordinates in the interim storage area for goods receipts. Please provide config settings to configure PO doucment number as stora

  • E72 - email - viewing the plain text

    Hi on my E63 the operation of the mail client is to display the text of the mail and show the HTML component as an attachment (which is actually what it really is in email anyway). The E72 now displays the HTML component natively (which is what I hav

  • Registration key for QTPRO7 ?

    Hi, I've bought two registration keys online, both times I get a receipt for purchase in my inbox, but NO unlock Key ..am I missing something .. or is this just a scam?

  • How to chnge report heading dynamically

    Good day Experts I trust you are all well. I need to borrow your expertise.. I have an query regarding Report Heading. presently i am working on Quarterly report. In report data starts from Jan 2008 Report will run on every quarter on 1st of April 1s