How To Create Tablespace
How To Create Tablespace
Tablespace in Oracle
An Oracle database consists of one or more logical storage units called tablespaces, which collectively
store all of the database's data. Each tablespace in an Oracle database consists of one or more files
called datafiles(.dbf), which are physical structures that conform to the operating system in which
Oracle is running.
Tablespace Types
There are three types of tablespaces:
Permanent
Permanent tablespaces are used to store user and application data. Oracle Database uses
permanent tablespaces to store permanent data, such as system data. Each user is assigned a
default permanent tablespace.
Undo
A database running in automatic undo management mode transparently creates and manages
undo data in the undo tablespace. Oracle Database uses undo data to roll back transactions, to
provide read consistency, to help with database recovery, and to enable features such as Oracle
Flashback Query. A database instance can have only one active undo tablespace.
Temporary
Temporary tablespaces are used for storing temporary data, as would be created when SQL
statements perform sort operations. An Oracle database gets a temporary tablespace when the
database is created. You would create another temporary tablespace if you were creating a
temporary tablespace group. Under typical circumstances, you do not have to create additional
temporary tablespaces. If you have an extremely large database, then you might configure
additional temporary tablespaces.
The physical files that comprise a temporary tablespace are called tempfiles.
The TEMP tablespace is typically used as the default temporary tablespace for users who are not
explicitly assigned a temporary tablespace.