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

Thread: DEALLOCATE UNUSED

  1. #1
    Join Date
    Sep 2001
    Location
    Düsseldorf, Germany.
    Posts
    588
    Hi,

    If I execute

    ALTER TABLE tab_name DEALLOCATE UNUSED; to recover the unused blocks.. will it invalid procedures or triggers written on tab_name table?

    I tried this by executing test statements... It worked well and didn't invalid any procedure or triggres written on tab_name.

    I just want to make sure by asking experts before running it on production database.

    Please answer.

    Thanks

    Sameer

  2. #2
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    I don't see any reason that deallocating unused will invalid procedurs/packages.

    Sanjay

  3. #3
    Join Date
    Sep 2001
    Location
    Düsseldorf, Germany.
    Posts
    588
    Yes, true...

    But I am bit scared because of "ALTER TABLE" words

    Because if you try to modify a column having trigger on it , then it INVALIDS the trigger.

    So I just wanted to make sure

    Thanks

    Sameer


  4. #4
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    I would go for it without thinking twice..
    Good Luck!!

    Sanjay

  5. #5
    Join Date
    Aug 2000
    Location
    Belgium
    Posts
    342
    Be aware that DEALLOCATE UNUSED does not work if the segment has only 1 extent.
    The initial extent can not be deallocated.

    Regards
    Gert

  6. #6
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    Be aware that DEALLOCATE UNUSED does not work if the segment has only 1 extent.
    The initial extent can not be deallocated.
    In that case Oracle will return an error..

    Sanjay

  7. #7
    Join Date
    Oct 2001
    Location
    Madrid, Spain
    Posts
    763
    Deallocate unused only works (make it's function) with this space above the HWM (high water mark).

    Cheers

    Angel

  8. #8
    Join Date
    Oct 2001
    Location
    Madrid, Spain
    Posts
    763
    Ops ...

    If the space is below the HWM and you are in 8i, you could make

    alter table XXXXX move tablespace YYYYY storage (initial ...)

    Cheers

    Angel

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