1.TBS Management
1.TBS Management
Ltd
Oracle Tables Management
Tablespace Management - I
Creating tablespace :
Sql> create tablespace tbs1 datafile '/u01/prod/tsb.dbf' size 10m autoextend on
maxsize 100m default storage (next 10m);
Droping a tablespace
Sql> drop tablespace fm; it will drop tablespace and datafile at database level.
Sql> drop tablespace fm including contents and datafiles; it will drop tablespace
logically(database level) and physically(o/s level)
Renaming of tablespace
Sql> alter tablespace fm rename to fm1;
[email protected]
Futurematics.Pvt.Ltd
Oracle Tables Management
Grant tablespaces
SQL>grant alter tablespace to FM
[email protected]
Futurematics.Pvt.Ltd
Oracle Tables Management
Views:-
V$tablespace V$datafile
Dba_tablespaces User_tablespaces
Dba_data_files Dba_segments
Dba_extents sm$ts_free
Sm$ts_used sm$ts_avail