CREATE BITMAP INDEX <index_name>
ON <tablename>(<indexcolumn>)
TABLESPACE ts1
LOCAL (PARTITION quarter1 TABLESPACE ts2,
       PARTITION quarter2 STORAGE (INITIAL 10K NEXT 2K),
       PARTITION quarter3 TABLESPACE ts2,
       PARTITION quarter4);

解决方案 »

  1.   

    oracle sql reference上有讲述。
      

  2.   

    Partitioned Index Example
    The following statement creates a global prefixed index stock_ix on table stock_xactions with two partitions, one for each half of the alphabet. The index partition names are system generated: CREATE INDEX stock_ix ON stock_xactions
      (stock_symbol, stock_series)
       GLOBAL PARTITION BY RANGE (stock_symbol)
         (PARTITION VALUES LESS THAN ('N') TABLESPACE ts3,
          PARTITION VALUES LESS THAN (MAXVALUE) TABLESPACE ts4);Index on Composite-Partitioned Table Example.
    This statement creates a local index on the sales table, which is composite-partitioned. The STORAGE clause specifies default storage attributes for the index. The STORE IN clause specifies one or more default tablespaces for the index subpartitions. However, this default is overridden for the four subpartitions of partition q3_1977, because separate TABLESPACE is specified. CREATE INDEX sales_idx ON sales(sale_date, item)
       STORAGE (INITIAL 1M, MAXEXTENTS UNLIMITED)
       LOCAL
       STORE IN (tbs1, tbs2, tbs3, tbs4, tbs5)
       (PARTITION q1_1997, PARTITION q2_1997,
        PARTITION q3_1997
          (SUBPARTITION q3_1997_s1 TABLESPACE ts2, 
           SUBPARTITION q3_1997_s2 TABLESPACE ts4, 
           SUBPARTITION q3_1997_s3 TABLESPACE ts6,
           SUBPARTITION q3_1997_s4 TABLESPACE ts8),
        PARTITION q4_1997,
        PARTITION q1_1998);Splitting a Partition Example
    The following statement splits partition partnum_ix_p6 in partitioned index partnum_ix into partnum_ix_p5 and partnum_ix_p6: ALTER INDEX partnum_ix
      SPLIT PARTITION partnum_ix_p6 AT ( 5001 )
      INTO ( PARTITION partnum_ix_p5 TABLESPACE ts017 LOGGING, 
             PARTITION partnum_ix_p6 TABLESPACE ts004 );