DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: create a index rebuilding script

  1. #11
    Join Date
    Oct 2006
    Posts
    175
    Just replace the second select statement with this:

    Code:
    select index_name "SORT1",
    '2' "SORT2",
    'select '''||index_name||''', to_char(sysdate,'||'''dd-Mon-yyyy hh24:mi:ss'''||') from dual;' "CMDLINE"
    from dba_indexes
    where owner = 'SCOTT'
    ;
    /
    HTH,
    gtcol

  2. #12
    Join Date
    Jan 2008
    Posts
    17
    thankz gtcol.
    gr8

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