Chat now with support
Chat with Support

SQL Optimizer for Oracle 10.0 - User Guide

Welcome to SQL Optimizer
About SQL Optimizer SQL Optimization Workflow New in This Release Additional Resources Database Privileges Database Privileges Script Connect to the Database Windows Layout Customize Toolbars Keyboard Shortcuts Support Bundle Register SQL Optimizer Check for Updates SQL Operations
ALL PARTITION ALTER INDEX AND EQUAL ANTI JOIN BITMAP AND BITMAP COMPACTION BITMAP CONSTRUCTION BITMAP CONVERSION BITMAP INDEX BITMAP JOIN INDEX UPDATE BITMAP JOIN INDEX UPDATE STATEMENT BITMAP KEY ITERATION BITMAP MERGE BITMAP MINUS BITMAP OR BUFFER SORT CARTESIAN JOIN COLLECTION ITERATOR CONCATENATION CONNECT BY CONNECT BY PUMP COUNT COUNT STOPKEY CREATE AS SELECT CUBE SCAN DDL STATEMENT DELETE DOMAIN INDEX FAST FULL INDEX SCAN FILTER FIRST ROWS FIXED INDEX FIXED TABLE FOR UPDATE FULL INDEX SCAN FULL INDEX SCAN DESCENDING FULL INDEX SCAN (MIN/MAX) HASH GROUP BY HASH GROUP BY PIVOT HASH JOIN HASH JOIN BUFFERED HASH PARTITION HASH UNIQUE INDEX INDEX BUILD NON UNIQUE INDEX RANGE SCAN INDEX RANGE SCAN DESCENDING INDEX RANGE SCAN (MIN/MAX) INDEX SAMPLE FAST FULL SCAN INDEX SKIP SCAN INDEX SKIP SCAN DESCENDING INDEX UNIQUE SCAN INLIST ITERATOR INLIST PARTITION INSERT INTERSECTION INTO INVALID PARTITION ITERATOR PARTITION LOAD AS SELECT MAT_VIEW ACCESS MAT_VIEW REWRITE ACCESS MERGE JOIN MINUS MULTI-TABLE INSERT NESTED LOOPS OUTER JOIN PARTITION PARTITION HASH EMPTY PARTITION LIST PARTITION RANGE PROJECTION PX BLOCK ITERATOR PX COORDINATOR PX ITERATOR PX PARTITION PX PARTITION HASH ALL PX PARTITION LIST ALL PX PARTITION RANGE ALL PX RECEIVE PX SEND RANGE PARTITION RECURSIVE EXECUTION RECURSIVE WITH PUMP REFERENCE MODEL REMOTE SELECT SEMI JOIN SEQUENCE SINGLE PARTITION SINGLE RANGE PARTITION SORT SORT AGGREGATE SORT GROUP BY SORT GROUP BY CUBE SORT GROUP BY NOSORT SORT GROUP BY ROLLUP SORT JOIN SORT ORDER BY SORT UNIQUE SQL MODEL TABLE ACCESS TABLE ACCESS BY GLOBAL INDEX ROWID TABLE ACCESS BY INDEX ROWID TABLE ACCESS BY LOCAL INDEX ROWID TABLE ACCESS BY ROWID TABLE ACCESS BY USER ROWID TABLE ACCESS CLUSTER TABLE ACCESS FULL TABLE ACCESS HASH TABLE ACCESS SAMPLE TABLE QUEUE TEMP TABLE GENERATION TEMP TABLE TRANSFORMATION UNION UNION ALL UNION ALL (RECURSIVE WITH) UNPIVOT UPDATE VIEW VIEW PUSHED PREDICATE WINDOW
Optimize SQL
Create Optimize SQL Sessions Open Optimizer SQL Sessions Rewrite SQL Generate Execution Plan Alternatives
Optimize Indexes Batch Optimize SQL Scan SQL Inspect SGA Analyze Impact Manage Plans Configure Options SQL Optimizer Tutorials About Us Legal Notices

BITMAP JOIN INDEX UPDATE

 

The BITMAP JOIN INDEX UPDATE operation updates a bitmap join index after statement execution.

 

  

 

BITMAP JOIN INDEX UPDATE STATEMENT

 

The BITMAP JOIN INDEX UPDATE STATEMENT operation updates a bitmap index after statement execution as seen in V$SQL_PLAN view.

 

  

 

BITMAP KEY ITERATION

Execution Plan image: image\BitmapKey.gif

Row operation.

The BITMAP KEY ITERATION operation returns multiple values from a bitmap index.

 

Related Topics

BITMAP MERGE

Execution Plan image: image\Plan_Bitmap_Merge.gif

Row operation.

The BITMAP MERGE operation merges two or more bitmaps from the same index.

Example

Assume that both City and State columns each has a single-column bitmap index.

select Name, City, State
from COMPANY
where City like 'New*'
or State in ('NY','NJ','CT');

This query selects rows from the COMPANY for all the companies in cities that begin with 'New' or in the states "NY", "NJ", "CT."

Execution Plan

TABLE ACCESS (BY INDEX ROWID) OF 'COMPANY'
BITMAP CONVERSION (TO ROWIDS)
BITMAP AND
  BITMAP OR
  BITMAP INDEX (SINGLE VALUE) OF 'COMPANY$STATE'
  BITMAP INDEX (SINGLE VALUE) OF 'COMPANY$STATE' 
  BITMAP INDEX (SINGLE VALUE) OF 'COMPANY$STATE'
  BITMAP MERGE
  BITMAP INDEX (RANGE SCAN) OF 'COMPANY$CITY'                 

Interpreting the Execution Plan

The plan shows that the bitmap index on the State column is used to find a bitmap for all the rows in the COMPANY table that satisfy the where clause condition (where State in ('NY', 'NJ', 'CT')). The index is accessed three timesonce per state. A BITMAP OR operation creates one bitmap from all the individual state bitmaps. The index on the City column is then accessed to find all the cities that begin with 'New'. The BITMAP MERGE operation merges all the individual bitmaps from every city that starts with 'New' into one bitmap. The new City bitmap and the new State bitmap are then merged into the final bitmap using a BITMAP AND operation. The final bitmap is converted to the ROWID list to access the table.

 

Related Topics

Related Documents

The document was helpful.

Select Rating

I easily found the information I needed.

Select Rating