Objective: Release the space occupied by table having columns capable to store BLOB/CLOB data. The space is not released even after deleting the whole row from the table.
There are defined steps to execute after doing delete of Table rows. Steps are below :
Assumptions:
Table Name : BLOB_OBJECT_TAB
Column Name : BLOB_OBJECT_TAB_COL
set serverout on
spool shrink_table.log
ALTER TABLE BLOB_OBJECT_TAB enable row movement;
ALTER TABLE BLOB_OBJECT_TAB SHRINK SPACE compact;
ALTER TABLE BLOB_OBJECT_TAB SHRINK SPACE;
ALTER TABLE BLOB_OBJECT_TAB MODIFY LOB(BLOB_OBJECT_TAB_COL) (SHRINK SPACE CASCADE);
alter table BLOB_OBJECT_TAB disable row movement;
ALTER INDEX PK_ID REBUILD;
ALTER TABLE BLOB_OBJECT_TAB disable row movement;
spool off;
Amazon
Subscribe to:
Post Comments (Atom)
Amazon Best Sellors
TOGAF 9.2 - STUDY [ The Open Group Architecture Framework ] - Chap 01 - Introduction
100 Feet View of TOGAF What is Enterprise? Collection of Organization that has common set of Goals. Enterprise has People - organized by co...
-
100 Feet View of TOGAF What is Enterprise? Collection of Organization that has common set of Goals. Enterprise has People - organized by co...
-
Dead-letter queues The dead-letter queue (or undelivered-message queue) is the queue to which messages are sent if they cannot be routed to...
-
01002 A DISCONNECT error occurred. 01003 Null values were eliminated from the argument of a column function. 01004 The value of a string was...
No comments:
Post a Comment