During table migration of tables from one tablespace to another, does it needs free space to do the alter table move?

dba.stackexchange https://dba.stackexchange.com/questions/233469

Pergunta

During migration of tables from one tablespace to another (all datafiles in the same disk/partition/mount), does it needs free space to do the alter table move?

exemple:. I have 30gb of free space on that disk, table of 1TB in tablespace_1, i wanna move the table using alter table move to tablespace_2.. can i do it or do i need to have more space available? if so, how much free space available?

Thx a lot :)

Foi útil?

Solução

Table move copies the whole table into a new segment, then drops the old segment. This means you need enough space to store the old segment and the new segment at the same time. For a 1 TB table full of data, you need another 1 TB free space for the move to succeed.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a dba.stackexchange
scroll top