Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    55

    Unanswered: Question on reorg with clustering index

    Running DB2 version 8.1.1 on AIX 5.1.1

    The table (employee) is being reorged and has a clustering index (empid).

    Is there any different between these two commands?

    db2 reorg table employee index empid allow no access indexscan

    db2 reorg table employee index empid allow no access

    Thanks
    Gerry

  2. #2
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    There is no functional difference in the result. If you use "indexscan", DB2 will use the index to retrieve the rows and avoid an external sort of the data.
    M. A. Feldman
    IBM Certified DBA on DB2 for Linux, UNIX, and Windows
    IBM Certified DBA on DB2 for z/OS and OS/390

Posting Permissions

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