Cómo crear un tablespace en Oracle

De vez en cuando necesitará crear un nuevo tablespace en su base de datos Oracle.

A continuación se explica cómo crear un tablespace en Oracle.

Espacio de tablas permanente

CREATE tablespace TS_NAME datafile
size 1G AUTOEXTEND ON NEXT 500M MAXSIZE UNLIMITED;

Espacio de tablas temporal

CREATE temporary tablespace TS_TEMP tempfile
size 1G AUTOEXTEND ON NEXT 500M MAXSIZE UNLIMITED;

Deshacer tablespace

CREATE undo tablespace TS_UNDO datafile size 3G;

Cómo aumentar el tamaño de un tablespace en Oracle

ALTER TABLESPACE TS_NAME ADD DATAFILE 
SIZE 100M AUTOEXTEND ON NEXT 500M MAXSIZE UNLIMITED;

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *