Professional Documents
Culture Documents
Surendra Reddy
9966990878
Tablespace:
i).It is logical storage unit in Oracle Database.
ii) Tablespace consist of one or more datafiles (check below)
iii) Information about Tablespace can be obtained from view DBA_TABLESPACES,
USER_TABLESPACES, DBA_TEMP_FILES (for Temporary Tablespaces)
iv) Tablespace is further divided in to logical units Segments (Segment is divided in to Extent
and Extent in to Block). To know more about Segment, Extents and Blocks
v) Various type of Tablespace are BIGFILE, SYSTEM, SYSAUX, UNDO and TEMPORARY.
1).How to create Tablespace?
SQL>create tablespace xcell11 datafile '/d01/oracle/oradata/gen/xcell11.dbf' size 50m autoextend
on next 5m maxsize 100m offline nologging
2).How to create a Temporary Tablespace?
SQL>create temporary tablespace xcell21 tempfile '/d01/oracle/oradata/gen/temp.dbf' size 5m
autoextend on;
3).How to create undo tablespace?
SQl>create undo tablespace xcell12 datafile '/d01/oracle/oradata/gen/undo.dbf' size 5m autoextend
on retention guarantee;
4) How to create Bigfile tablespace?
SQL>create bigfile tablespace big datafile '/d01/oracle/oradata/gen/big.dbf' size 50m autoextend on;
5).How to take offline a tablespace?
SQL>alter tablespace tablespace_name offline (normal, immediate, temporary)
6).How to take online a tablespace?
SQL>altert tablespace tablespace_name online;
7) How to rename a tablespace?
SQL>alter tablespace xcell11 rename to xcell2l;
8) How to make a tablespace read only?
SQL>alter tablespace xcell2l read only;
Xcell-it Solutions, Ayyappa Society, Madhapur, Hyderabad. Contact:-9985296674, 040-64566226, 40202040
Surendra Reddy
9966990878
Surendra Reddy
9966990878
Diagram of tablespace
Surendra Reddy
9966990878
Datafiles:
i)
ii)
One or more physical datafile are logically grouped together to make a tablespace
iii)
iv)
Surendra Reddy
9966990878