Bitmap Index Not Used in PROD and used in DEV

I am in a situation where in in DEV Bitmap Index is used and in PROD bitmap Index is not used. I checked the count, in PROD I have 10 mil rows and in DEV I have 16 mil rows. Optimizer is CHOOSE and also when I tried to force to use index in PROD, I got higher cost.
Any suggestions why Index is not used in PROD as opposed to DEV

As other says, no guarantee that the same query with same setting OS, ORACLE to produce the same execution plan. Also, as Justin said, dont every take cost as your tuning parameter, pay attention to response time, also, number of logical reads and physical reads. What are the wait events during?
For an index, most important factors are, blevel, clustering_factor, number of distinct values. Clustering actor make a lot of difference. You said, when you force index to use, your performance has gained. If so, why not, why the HINTS there in place? Go ahed and use it, but, after all the R&D. Are the Optimizer* paraemters same on the both databases?
If possible, post the execution plan of the query, with HINT and without HINT as well.
Jaffar

Similar Messages

  • I spend 5 months in Florida and 7 months in Ontario, Canada. Can a Verizon Samsung Note ll be unlocked and used with a sim card from another carrier in Ontario?

    I spend 5 months in Florida and 7 months in Ontario, Canada. Can a Verizon Samsung Note ll be unlocked and used with a sim card from another carrier in Ontario?

    Yes, you should be able to use a local SIM card from a carrier in Ontario. You should not have to do anything prior to doing so.

  • Why bitmap index not working?

    I have a table containing 4.2M rows and 16 distinct fs_type_code. So I created a bitmap index ntr_fs_type_code_ind on the column. Then I run the query:
    update /*+ INDEX_COMBINE(NTR_FS_TYPE_CODE_IND) */ ntr_CORPALL_20050801 d
    set eqt_basket_id = NULL, index_weight = NULL
    where
    fs_type_code in ('EQGR','EQVG','EQDL')
    and eqt_basket_id = equity_symbol
    and index_weight = 0;
    I clearly tell optimizer to use the bitmap index. But it turns out the optimizer ignore the index and still use full table scan.
    When I created regular b-tree index, the same query (without hint) use index scan.
    Can anybody tell me why the bitmap index not working here?
    Thanks,

    <quote>I clearly tell optimizer to use the bitmap index</quote>
    You are clearly not doing it right (see bellow). But anyway …
    1. For frequently modified tables (OLTP type application) you may want to rethink the applicability of bitmap indexes …
    low cardinality in itself is not enough justification for using bitmap indexes.
    2. Your update statement may modify a minority, a majority, or anything in between of the total number of
    rows in your table … here is no one universal access method which is always better
    (if there were one they wouldn’t have bothered with coding the rest).
    In short, index access is not always the better way.
    3. Don’t rush into hinting (because that optimizer is such a lousy piece of software) …
    and if you do, make sure you do it correctly and for the right reasons.
    flip@FLOP> create table t as select * from all_objects;
    Table created.
    flip@FLOP> insert into t select * from t;
    30043 rows created.
    flip@FLOP> insert into t select * from t;
    60086 rows created.
    flip@FLOP> insert into t select * from t;
    120172 rows created.
    flip@FLOP> insert into t select * from t;
    240344 rows created.
    flip@FLOP> create bitmap index tx on t (object_type);
    Index created.
    flip@FLOP> exec dbms_stats.gather_table_stats(user,'T',method_opt=>'for all indexed columns',cascade=>true)
    PL/SQL procedure successfully completed.
    flip@FLOP> select object_type,count(*) from t group by rollup(object_type);
    OBJECT_TYPE          COUNT(*)
    CONSUMER GROUP             32
    DIRECTORY                  32
    EVALUATION CONTEXT         16
    FUNCTION                 1648
    INDEX                   23152
    INDEX PARTITION          2048
    INDEXTYPE                 128
    JAVA CLASS             163024
    JAVA RESOURCE            3120
    LIBRARY                   224
    LOB                        16
    MATERIALIZED VIEW          32
    OPERATOR                  464
    PACKAGE                  5488
    PACKAGE BODY               32
    PROCEDURE                 640
    SEQUENCE                  144
    SYNONYM                202512
    TABLE                   18816
    TABLE PARTITION           880
    TRIGGER                  4768
    TYPE                    10640
    TYPE BODY                  16
    VIEW                    42816
                           480688
    flip@FLOP> set autotrace on explain
    update few rows … CBO goes with the index … no hinting
    flip@FLOP> update t d set object_id=object_id-1 where object_type in ('INDEX','PACKAGE','PACKAGE BODY','TABLE');
    47488 rows updated.
    Elapsed: 00:00:09.02
    Execution Plan
       0      UPDATE STATEMENT Optimizer=CHOOSE (Cost=536 Card=47488 Bytes
              =1044736)
       1    0   UPDATE OF 'T'
       2    1     INLIST ITERATOR
       3    2       BITMAP CONVERSION (TO ROWIDS)
       4    3         BITMAP INDEX (SINGLE VALUE) OF 'TX'
    update lots of rows … CBO goes with the ft … no hinting
    flip@FLOP> update t d set object_id=object_id-1 where object_type in ('JAVA CLASS','SYNONYM');
    365536 rows updated.
    Elapsed: 00:00:25.04
    Execution Plan
       0      UPDATE STATEMENT Optimizer=CHOOSE (Cost=638 Card=365536 Byte
              s=8041792)
       1    0   UPDATE OF 'T'
       2    1     TABLE ACCESS (FULL) OF 'T' (Cost=638 Card=365536 Bytes=8
              041792)
    update lots of rows … wrong hint syntax … CBO goes with the ft
    flip@FLOP> update /*+ index_combine(tx) */ t d set object_id=object_id-1 where object_type in ('JAVA CLASS','SYNONYM');
    365536 rows updated.
    Elapsed: 00:00:21.00
    Execution Plan
       0      UPDATE STATEMENT Optimizer=CHOOSE (Cost=638 Card=365536 Byte
              s=8041792)
       1    0   UPDATE OF 'T'
       2    1     TABLE ACCESS (FULL) OF 'T' (Cost=638 Card=365536 Bytes=8
              041792)
    update lots of rows … correct hint syntax … CBO goes with the index … but was it better than the ft?
    flip@FLOP> update /*+ index_combine(d tx) */ t d set object_id=object_id-1 where object_type in ('JAVA CLASS','SYNONYM')
    365536 rows updated.
    Elapsed: 00:00:25.01
    Execution Plan
       0      UPDATE STATEMENT Optimizer=CHOOSE (Cost=1665 Card=365536 Byt
              es=8041792)
       1    0   UPDATE OF 'T'
       2    1     INLIST ITERATOR
       3    2       BITMAP CONVERSION (TO ROWIDS)
       4    3         BITMAP INDEX (SINGLE VALUE) OF 'TX'
    flip@FLOP>

  • What is the difference between Outlook features using exchage server and using 3rd party mail server ?

    Hi~ I'd like to know what the difference is between Outlook features using exchage server and using 3rd party mail server.
    If I use 3rd party mail server with Outlook, Outlook features are the same as Exchange Server ?
    I want to use all Outlook features..

    The basic features (and many advanced features) are identical in all accounts. With pop3, your mail, calendar, contacts, tasks, notes are stored in a pst and are only on the computer. IMAP accounts only sync email back to the server, not calendar,
    contacts, and tasks. Outlook.com EAS accounts (aka Hotmail) syncs calendar and contacts back to the server. Exchange mailboxes stores everything on the server - mail, calendar, contacts, custom views, rules - and if you open the mailbox in outlook on
    any other computer, the mailbox is identical. Because everything is on the server, you'll have much better syncing with smartphones and tablets with Exchange mailboxes.
    Calendar sharing, open other users folder, and retention policies are Exchange-only. Mail Tips and apps (linked under the reading pane header in Outlook 2013) are Exchange-only.
    Diane Poremsky [MVP - Outlook]
    Outlook & Exchange Solutions Center
    Outlook Tips
    Subscribe to Exchange Messaging Outlook weekly newsletter

  • I have an 27 inch apple iMac 2010. Can I upgrade by buying a Mac book pro and use plug in and use the iMac as a screen only?

    I have an 27 inch apple iMac 2010. Can I upgrade by buying a Mac book pro and use plug in and use the iMac as a screen only?

    Yes your 2010 supports Target Display Mode using MiniDisplay Port input.
    check out FAQ #4 > Target Display Mode: Frequently Asked Questions (FAQ) 

  • Differnce between LAST USED in RSZCOMPDIR and USED in 0TCT_MC01

    Hello
    I have two problems to solve:
    1. What is the differnce between LAST USED in RSZCOMPDIR and USED in 0TCT_MC01
    2. LAST USED in RSZCOMPDIR is filled but in 0TCT_MC01 I have no log about that.
        ==> can anybody explain that to me?
    Thanks to you all !!!

    Cant anybody help

  • Bitmap index not used

    I exported/imported a schema. Same Oracle version (10.2.0.3), same server (HP-UX/Itanium).
    I have a select that doesn't use a bitmap index in the new database. The same bitmap index is used in the old database.
    I run analyze, tried hinting (index, index_combine) nothing helped, I could not force the optimizer to use the index in the new database. Any suggestion?
    Thanks

    Hi Andras
    I would strongly recommend taking a 10053 trace and see what the CBO is up to.
    Cheers
    Richard Foote
    http://richardfoote.wordpress.com/

  • Some times firefox does not opens facebook and google pages and this does not happen for other sites. Iam Currently using windows xp and using 3.6.3 Firefox version.Please help.

    Some times the fire fox does not open google and facebook pages but it does not happen for other sites. Iam currently using Windows xp and iam using Mozilla Fire fox 3.6.3 .Please help
    == URL of affected sites ==
    http://www.facebook.com,www.google.com

    You can try a direct connection and select No Proxy in the connection settings.
    You can find the connection settings in "Tools > Options > Advanced : Network : Connection"
    Also do a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • My 5s can not open the screen and use it while charging. Anyone with same problem?

    My 5s cannot open screen and use it when charger is connected. Anyone knows why?

    Do you use the original charger?
    My friend had the same problem with fake chinese charger.
    He changed a charger and everything is fine now.
    Maybe your charger just broken and needed to replace.

  • The difference using file text and using database ...

    whatz 'p dude !!!
    yo men i have a little quest bout using file text and
    usig database .
    the quest is :
    if u a programer tell me, if u use file text why u use that ?
    whats the advantages using file text for saving record ?
    and if u use database like jdbc,sql,orcle for making java
    what the advantages using them ?
    can u give me some hope plizzzz

    if u a programer tell me, if u use file text
    why u use that ?Text files are good for storing things like configuration data. For this, you are best served using java.util.Properties to store data in any easily accessible format. That's the problem with text files, you have to invent a format and a way to read/write that format every time you use a text file for a database. Sure you could use a standard format like CSV, but you run into big problems when your database exceeds several megabytes in size. Doing something a simple as reading a single field from a file usually involves reading the entire file. That can kill performance if you have to do it repeatedly and often.
    and if u use database like jdbc,sql,orcle for
    making java what the advantages using them ?Java was made with C, not with JDBC, SQL, or Oracle. SQL is a language for reading and writing data from a database. JDBC is a Java interface to interact with databases. And Oracle itself is a relational database.
    The advantages of using a database are ease of use, performance, and reliability. All you need to know is JDBC and SQL to read/write data from a database (though SQL varies slightly with every different database). Databases use indexes to allow them to quickly find rows and fiels in a database without having to read the entire database. Most of them cache data in memory to speed things up too.
    That's it. If you want to know more, search Google or buy a book or two :)
    can u give me some hope plizzzzI'm hopeful you will realize that you make yourself look like an idiot typing like that.

  • I am using Windows 7 and using IE 10, I have to reinstall Flash Player each time I start my computer

    Hi I am using Windows 7 and IE 10 and I have to reinstall Flash Player each time I start my computer, even with a fresh install. The same thing is happening on my laptop and is driving me crazy. Does anyone have any suggestions to fix this problem. I have tried some suggested fixes from this forum with still no results. Thanks.

    Make sure that you allow Firefox in your security software (firewall).
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    Try a clean reinstall and delete the Firefox program folder before reinstalling a fresh copy of Firefox.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 19.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible, to cleanup the Windows registry and settings in security software.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you will also lose your personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored in the Firefox Profile Folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected when you uninstall Firefox.
    If you keep having problems then also create a new profile.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • What happened to the history & private window tab that I used to have and used

    When you updated my browser you removed the firefox tab in the upper left corner of the screen. That tab had links to history, bookmarks, private window and more. Now the tab is gone and I can no longer access these features. I used those features and want them back.

    Look in the Upper Right hand corner of Firefox, do you see a little icon with 3 lines on top of each other? Click that to find all your History, bookmarks and private browsing settings, [[Learn more about the design of the new Firefox]]

  • When to use Perform Changing and using. and Table

    Hi,
    What is use of Perform chaging and using ?
    in what situation we need to use it ?

    Hi Jim,
    PERFORM: PERFORM command is used to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking.Such calls to subroutines can be used for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    ABAP Subroutine example is given in this link
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db979d35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
    Passing the values in an internal table has many scenarios like pass by value pass by reference pass by value and referenceSuch scenarios are well explained in the following link
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db979035c111d1829f0000e829fbfe/content.htm
    Revert for further clarification,
    Thanks and Regards
    Srikanth.P

  • I have an OpenGL application that run in a window. I would like to use this application and use its window in a VI interface. Note t

    hat I DON'T WANT TO OPEN the window application FROM the Labview VI BUT IN the Labview VI. I think it's possible to do that and to do communicate the OpenGL application with the Labview Interface using an ActiveX but I don't know how. Can someone help me ?You can answer the question or send it at [email protected]
    Regards.
    Cyril

    hat I DON'T WANT TO OPEN the window application FROM the Labview VI BUT IN the Labview VI. I think it's possible to do that and to do communicate the OpenGL application with the Labview Interface using an ActiveX but I don't know how. Can someone help me ?The desired behavior you desribed may not be possible with that application. In general LabVIEW does not offer a window object that other standalone applications can run it. The closest thing is the ActiveX container. If the programmers for your application created an activeX control of your program and they provided documentation, it should be pretty easy to incorperate the app and labview into one window. I recommend contacting the manufacuturer of the app to see if they have an activeX control version of the app.

  • Why does my iphone 4 not let me unlock and use it?

    In the beginning, when the ios 7 update came out, i wanted to see if i could update it using just my 3G data. But thats when my phone restarted, and when i went to unlock it, there was a different background that said ios 6. When i do unlock it, there is a message that says connect to itunes. And when i do connect it and try to reboot/reconfigure it, with the ios 7 patch, it reads that there is an error and that the action cannot be done because my phone is not recognized. Finally the ios 7 patch worked, but i still have the connect to itunes problem. And when i do connect it, itunes reads: there is a problem with your iphone. what can i doooo?

    In the beginning, when the ios 7 update came out, i wanted to see if i could update it using just my 3G data. But thats when my phone restarted, and when i went to unlock it, there was a different background that said ios 6. When i do unlock it, there is a message that says connect to itunes. And when i do connect it and try to reboot/reconfigure it, with the ios 7 patch, it reads that there is an error and that the action cannot be done because my phone is not recognized. Finally the ios 7 patch worked, but i still have the connect to itunes problem. And when i do connect it, itunes reads: there is a problem with your iphone. what can i doooo?

Maybe you are looking for

  • FAGLL03 vendor code LIFNR

    Hi, In FAGLL03, vendor field (LIFNR) is available but it is empty. In order to have value for such field, I have modified the customizing: financial accounting --> general ledger accounting --> master data --> G/L accounts --> Line Items --> Define s

  • Displaying header with data binded to the R/3 system

    hi I have developed an application which uses Interactive form to generate the Invoice PDF by getting data from back end system R/3. Now my problem is that the Header which I need to display contains some data binded with the back end system and that

  • How to get epson stylus C45 to work on lion?

    Hello. On my old MacBook White I have Snow Leopard running and I use the Guteprint driver to get my Epson Stylus C45 working. Printing works just fine using that driver, I cannot though perform maintenance operations using this driver (such as checki

  • Resolution maximum on Macbook pro

    Good evening, I have a doubt about the macbook, I need a quality monitor and I thought Thunderbolt Apple Display (flat panel 27 "), but the maximum resolution offered by the laptop is 1280 * 800, thus becoming unable to Benefit the maximum resolution

  • Premiere CS6 Audio Question

    I currently have Premiere CS5 and one of my biggest pet peeves is dropping and modifying audio transitions. From my Final Cut Pro days I could easily link multiple audio tracks, and when adding or modifying a transition to one it did it to the rest o