Смена tablespace в Oracle

Иногда возникает ситуация когда нужно переместить все объекты схемы из одного Tablespace в другой. Например — смена дискового носителя или когда нужно отдать свободное простанство в Tablespace системе.

Итак как мы это делаем. Миграция

ALTER TABLE table_name MOVE LOB (lob_column) STORE AS (TABLESPACE tablespace_name);

alter index lst.IDX_LST_STAFF_OFFICE_ID rebuild tablespace lst_index;

ALTER TABLE LST.LST_ALLOW_TURKEY_IP MOVE TABLESPACE LST;

http://www.oracle-base.com/articles/misc/RecompilingInvalidSchemaObjects.php
http://www.jlcomp.demon.co.uk/faq/iot_ts.html

Empty Oracle Recycle Bin

tux


http://www.oraclekonsulent.dk/en/index.php?blog_id=129
http://www.idevelopment.info/data/Oracle/DBA_tips/LOBs/LOBS_2.shtml

http://www.java2s.com/Code/Oracle/Constraints/Dropaprimarykey.htm

SQL> select owner||’.’||table_name «TABLE», column_name, segment_name from all_lobs where segment_name=’SYS_LOB0000639479C00002$$’;

Table in question is cube_scope and the coloum is where the lobsegment belongs is scope_bin.

To change storage for a lob segment, you can issue the following alter table statement;

alter table cube_scope modify lob (SCOPE_BIN) (storage (maxextents 80) );