Index rebuild - Direct-path
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Index rebuild - Direct-path

  1. #1
    Join Date
    Jul 2001
    Posts
    108

    Index rebuild - Direct-path

    Hello,

    I am planning to rebuild few indexes in our production system.

    Example:

    >alter index "ZXML_IAM_EMAIL~0" rebuild online parallel 8 nologging compute statistics;

    Also I heard that we can use the Direct-path operations (no rollback/undo generated) to rebuild an index.

    How can I use the Direct-path option in the above Index rebuild sql statement?

    Thanks,
    Nikee

  2. #2
    Join Date
    Jan 2001
    Posts
    3,131
    HEY

    Where is Tom Kyte when we need him!?
    I remember when this place was cool.

  3. #3
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    There is much to be read about the need or otherwise to rebuild indexes - infact at the moment it's hard to avoid it! My interpretation of what I read is that it is rarely necessary/useful. (And can wreck your indexes - been there, done that, very colourful T-shirt). So you'd better know what you're doing and why.

    The nologging is the "best" you can do in an index rebuild.

    slim & Tamil helped me to understand this:
    http://www.dbasupport.com/forums/sho...0&pagenumber=2

    and specifically from the doc for alter index:
    http://download-west.oracle.com/docs...8a.htm#2050160
    Use the logging_clause to specify whether subsequent Direct Loader (SQL*Loader) and direct-path INSERT operations against a nonpartitioned index, a range or hash index partition, or all partitions or subpartitions of a composite-partitioned index will be logged (LOGGING) or not logged (NOLOGGING) in the redo log file.
    P.S. AFAIK direct-path, direct load refer to operations on the table, not the index.
    Last edited by DaPi; 04-19-2005 at 03:45 PM.
    "The power of instruction is seldom of much efficacy except in those happy dispositions where it is almost superfluous" - Gibbon, quoted by R.P.Feynman

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