Añadir un datafile a un tablespace existente
OracleAlmacenamientoComando
ALTER TABLESPACE customer_data
ADD DATAFILE '/u01/oradata/ORCL/customer_data02.dbf'
SIZE 2G AUTOEXTEND ON NEXT 256M MAXSIZE 30G;
-- ASM:
ALTER TABLESPACE customer_data
ADD DATAFILE '+DATA' SIZE 2G AUTOEXTEND ON NEXT 256M MAXSIZE 30G;Qué hace
Aumenta la capacidad de un tablespace existente añadiendo un nuevo datafile.
Cuándo usarlo
Cuando el tablespace está lleno y un solo archivo se acerca al límite de smallfile (32G/64G).
Precaución
Un tablespace smallfile tiene un límite de bloques por archivo; añada un archivo nuevo si es necesario. Indique MAXSIZE.