Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • oracle Dba site Oracle
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • How to see which patches are applied. Oracle
  • Find Command Linux/Unix
  • sid_wise_sql.sql Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • Committing distributed transaction using commit force Oracle
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • Rownum with Order by Oracle
  • Rollback force for distributed transactions Oracle
  • T-SQL Vs PL/SQL Syntax SQL Server
  • Renaming the column name Oracle

_B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade

Posted on 30-Aug-2007 By Admin No Comments on _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade

Subject: Upgrading from 8.1.X to 9.X – Btree Bitmap Plan Issues – Diagnosing and Resolving

Doc ID: Note:259126.1 Type: TROUBLESHOOTING

Last Revision Date: 13-MAR-2006 Status: PUBLISHED

PURPOSE

The Oracle Cost Based Optimizer is continually been enhanced. These enhancements were designed to improve performance but in some cases can cause a minority of queries to perform no better or worse than before. This article discusses some of the potential problems you may encounter when moving SQL Queries from Oracle 8i to Oracle 9i. It mainly centres on changes within the Cost Based Optimizer.

SCOPE & APPLICATION

DBAs and Application Designers

Upgrading from 8.1.X to 9.X – Btree Bitmap Plan Issues – Diagnosing and Resolving

Btree Bitmap Plan Changes

Btree Bitmap plans is a technology that takes Btree index rowids and converts them in to bitmaps. After conversion, various bitmap comparison operations can be performed. Oracle 9i enables code that considers converting Btree indexes into bitmaps by default. The choice of a bitmap plan is a cost based choice and will only be made if the bitmap plan is deemed to be cheaper based upon the available statistics. Choice of a bitmap plan is controlled by the and (underscore). If this was set to >= 9.0.0. then the choice of bitmap plans would be enabled. This means that some 9i queries may start to use bitmap plans that were not considered before.

If an application has 8i to 9i upgrade related query tuning problems, please consider if btree bitmap plans are involved

Diagnosing Btree Bitmap Plan Issues:

Examine the explain plan and look for bitmap operations (but where not all the indexes involved are bitmap indexes)

Compare the current explain plan with the plan from the earlier version to see if the plan is different

Disable btree_bitmap_plan functionality and see if that resolves the problem

To workaround BTree to bitmap conversion issues, either disable the functionality or force a different plan in one of the following ways:

Ensure statistics are as accurate as possible, including column statistics for columns containing non uniform data distribution. This will ensure that the optimizer makes the best choice it can.

Set (underscore) = FALSE

alter session set “_B_TREE_BITMAP_PLANS” = false;

Set to a value less than “9.0.0”

This is a static parameter and cannot be changed on the fly. It has to be set in one of the instance initialisation files (e.g. initSID.ora).

Hint so that indexes are not chosen and cannot therefore be converted.

Use a stored outline See: Note 67536.1

Oracle, SQL scripts

Post navigation

Previous Post: Multiple listeners
Next Post: reset Sequence

Related Posts

  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • get_vmstat.ksh for Solaris Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Rename Oracle Instance Name Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Physical Standby switchover with session active Oracle
  • online_ts_bkup.sql Oracle
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • Display the top 5 salaries for each department using single SQL Oracle
  • how to find VIP from ifconfig Linux/Unix
  • How to start CRS manually Oracle
  • proper cpu stats Linux/Unix
  • eplan9i.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme