Creating a Bitmap Index on an Index-Organized Table

Bitmap indexes can be created on index-organized tables (IOT) as secondary indexes on the IOT, but they must be created with a mapping table. See the following example of creating the IOT:

CREATE TABLE employees_part (  EMPLOYEE_ID          NUMBER(6)         NOT NULL  ,FIRST_NAME          VARCHAR2(20)  ,LAST_NAME           VARCHAR2(25)      NOT NULL  ,EMAIL               VARCHAR2(25)      NOT NULL  ,PHONE_NUMBER        VARCHAR2(20)  ,HIRE_DATE           DATE              NOT NULL  ,JOB_ID              VARCHAR2(10)      NOT NULL  ,SALARY              NUMBER(8,2)  ,COMMISSION_PCT      NUMBER(2,2)  ,MANAGER_ID          NUMBER(6)  ,DEPARTMENT_ID       NUMBER(4)  ,CONSTRAINT employees_part_pk PRIMARY ...

Get Expert Indexing in Oracle Database 11g: Maximum Performance for Your Database now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.