Professional Documents
Culture Documents
Managing Indexes: Oracle Corporation. All Rights Reserved
Managing Indexes: Oracle Corporation. All Rights Reserved
Managing Indexes: Oracle Corporation. All Rights Reserved
Managing Indexes
Logical
• Single column or concatenated
• Unique or nonunique
Physical
• Partitioned or nonpartitioned
• B-tree or bitmap
– Normal or reverse key (B-tree only)
Root
Branch
KEY ROWID
EMPNO ENAME JOB ...
EMPNO (BLOCK# ROW# FILE#) ----- ----- --------
----- ------------------- 7499 ALLEN SALESMAN
1257 0000000F.0002.0001 7369 SMITH CLERK
2877 0000000F.0006.0001 7521 WARD SALESMAN ...
4567 0000000F.0004.0001 7566 JONES MANAGER
6657 0000000F.0003.0001 7654 MARTIN SALESMAN
8967 0000000F.0005.0001 7698 BLAKE MANAGER
9637 0000000F.0001.0001 7782 CLARK MANAGER
9947 0000000F.0000.0001 ... ... ... ...
... ... ... ... ... ...
... ...
Table File 3
Block 10
Block 11
Index Block 12
start end
key ROWID ROWID bitmap
<Blue, 10.0.3, 12.8.3, 1000100100010010100>
<Green, 10.0.3, 12.8.3, 0001010000100100000>
<Red, 10.0.3, 12.8.3, 0100000011000001001>
<Yellow, 10.0.3, 12.8.3, 0010001000001000010>
13-6 Copyright Oracle Corporation. All rights reserved.
Comparing B-Tree and
Bitmap Indexes
B-tree Bitmap
INDEX_STATS
13-15 Copyright Oracle Corporation. All rights reserved.
Dropping Indexes
DBA_INDEXES DBA_IND_COLUMNS
OWNER INDEX_OWNER
INDEX_NAME INDEX_NAME
INDEX_TYPE TABLE_OWNER
TABLE_OWNER TABLE_NAME
TABLE_NAME COLUMN_NAME
UNIQUENESS COLUMN_POSITION
TABLESPACE_NAME COLUMN_LENGTH
LOGGING
STATUS