Extending The Size of Tablespace and Datafiles
Extending The Size of Tablespace and Datafiles
You can extend the size of a tablespace by increasing the size of an existing
datafile by typing the following command
Option 2
You can also extend the size of a tablespace by adding a new datafile to a
tablespace.
This is useful if the size of existing datafile is reached o/s file size limit or
the drive where the file is existing does not have free space.
To add a new datafile to an existing tablespace give the following command.
Option 3
You can also use auto extend feature of datafile. In this, Oracle will
automatically increase the size of a datafile whenever space is required.
You can specify by how much size the file should increase and Maximum size to
which it should extend.
You can also make a datafile auto extendable while creating a new tablespace itself
by giving the following command.
You can decrease the size of tablespace by decreasing the datafile associated with
it. You decrease a datafile only up to size of empty space in it. To decrease the
size of a datafile give the following command