DBAtlas · Atlas d'exploitation des bases de données

Ajouter un datafile à un tablespace existant

OracleStockage

Commande

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;

Ce que fait la commande

Augmente la capacité d'un tablespace existant en ajoutant un nouveau datafile.

Quand l'utiliser

Lorsque le tablespace est plein et qu'un fichier unique approche la limite smallfile (32G/64G).

Attention

Un tablespace smallfile a une limite de blocs par fichier ; ajoutez un nouveau fichier si nécessaire. Indiquez MAXSIZE.

Ouvrir dans DBAtlas →

Voir aussi