-
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
-
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.
-
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.