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

Thread: little challenge?

  1. #1
    Join Date
    Jun 2006
    Posts
    101

    Exclamation little challenge?

    Hi

    we have a LOB in our Prod DB consuming 3GB space where as the actual required space is 1Gb, we need to do something so HWM drop down to 1GB,
    what are the diffrent ways of doing this and what is the best way
    to be done in prod env.
    do we definately have to brind DB down ? export schema? or just table? ...

    Thanks

  2. #2
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,015
    You can do an online move to another tablespace. Just make sure that all of the indexes for the table are compiled when you are done, and it would be better to do this when the database is idle.
    this space intentionally left blank

  3. #3
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    So... your problem is a LOB column using too much space?

    Statement below will move table to new tablespace BUT will not move LOB segments from current tablespace...

    ALTER TABLE table_name MOVE TABLESPACE target_tablespace
    /


    Statement below will move segments that make up specific LOB column to new tablespace...

    ALTER TABLE table_name
    MOVE LOB(clob_column) STORE AS (
    TABLESPACE target_tablespace
    )
    /

    If your problem is just the LOB column I'll do just the second one.

    Hope this helps.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

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