DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

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

  1. #1
    Join Date
    Apr 2001
    Posts
    257

    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.

    thanks,

  2. #2
    Join Date
    Nov 2004
    Posts
    24

    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
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    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