DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2001

    Can I create a local index for only one of the partitions?

    If I have 2 partitions, named part1 and part2, can I create a local index for only part2, not part1?

    When I look at the CREATE INDEX syntax, I don't see a place to specify a partition name.


  2. #2
    Join Date
    Nov 2004

    Key word Local

    Maybe this will help you

    Example :

    CREATE INDEX invoices_idx ON invoices (invoice_date) LOCAL;

    CREATE INDEX invoices_idx ON invoices (invoice_date) LOCAL
    (PARTITION invoices_q1 TABLESPACE users,
    PARTITION invoices_q2 TABLESPACE users,
    PARTITION invoices_q3 TABLESPACE users,
    PARTITION invoices_q4 TABLESPACE users);

  3. #3
    Join Date
    Dec 2000
    Ljubljana, Slovenia
    The answer is: NO.

    But if you are so desperate to have only rows in one of the partitions indexed (I can't find any reason why would one want to have such a thing)), then you should read about function-based indexes.
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.