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? ...
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
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 (
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.
Click Here to Expand Forum to Full Width