
Tive que efetuar uma manutenção no banco de dados no qual fui requisitado a movimentar uma tabela de uma tablespace para outra. Para efetuar esta operação é importante observar os seguintes tópicos na tabela:
A tabela possui LONG, LOB ou ROWID ?
A tabela possui Oracle Advanced Queuing (AQ)?
Caso a tabela não possui essas características a movimentação é recomendada, caso contrário não. Sendo assim, segue um exemplo da movimentação de uma tabela para outra tablespace:
- Movimentação da tabela através do comando: ALTER TABLE <TABLE NAME to be moved> MOVE TABLESPACE <destination TABLESPACE NAME>;
SQL> ALTER TABLE BRUNO.TABLE_TECHDATABASKET TABLESPACE TECHDATABASKETTBS; Table altered. Após a movimentação é necessário efetuar o rebuild dos índices associados a tabela:
SQL> select 'alter index BRUNO.'||'"'||index_name||'" rebuild online;' from dba_indexes where status = 'UNUSABLE'; 'ALTERINDEXA_GEDISRAP_T_CENTRAL.'||'"'||INDEX_NAME||'"REBUILDONLINE;' -------------------------------------------------------------------------------- alter index BRUNO."IN_BRUNO.TABLE_TECHDATABASKET" rebuild online; SQL> alter index BRUNO."IN_BRUNO.TABLE_TECHDATABASKET" rebuild online; Index altered.


*The views expressed here are my own and do not represent those of my employer.*
Hello, I’m Bruno — a dual citizen of Brazil and Sweden. I bring a global perspective shaped by experiences in both South America and Europe, with a strong focus on collaboration and innovation across cultures. I am a Computer Scientist, PhD Candidate in Information and Communication Technologies, focusing on Data Science and Artificial Intelligence, and hold dual Master’s degrees in Data Science and Cybersecurity. With over fifteen years of international experience spanning Brazil, Hungary, and Sweden, I have collaborated with global organizations such as IBM, Playtech, and Oracle, as well as contributed remotely to projects across multiple regions. My professional interests include Databases, Cybersecurity, Cloud Computing, Data Science, Data Engineering, Big Data, Artificial Intelligence, Programming, and Software Engineering, all driven by a deep passion for transforming data into strategic business value.