Menu Chiudi

Moving a table to a new tablespace on Oracle 10g

Database schema

How to move table from one tablespace to another? Moving a table to a new tablespace on Oracle 10g is quite easy and a straight forward task.

On Oracle 10g you can move a table from one tablespace to another as shown below. Keep in mind that everything associated with the table is moved as well (e.g. privileges, constraints, synonyms, etc.), but NOT indexes.

SQL> ALTER TABLE MOVE TABLESPACE ;

WARNING: By doing so, all indexes associated to the moved table will no longer useful and must be rebuilt as the following:

SQL> ALTER INDEX REBUILD;

Wanna try?

Condividi
Leggi anche:   Esempio di sviluppo per Raspberry Pi con Windows e Ubuntu

Disclaimer

Questa pagina potrebbe contenere link di affiliazione. Gli acquisti o gli ordini che effettuerai tramite tali link possono generare commissioni che ci aiutano a sostenere questo sito web.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Moderazione dei commenti attiva. Il tuo commento non apparirà immediatamente.