查看表空间的大小
select tablespace_name,block_size,contents from dba_tablespaces;
查看表空间对应的数据文件
select file_name,tablespace_name,status from dba_data_files where tablespace_name = 'USERS';
查看表空间的默认参数
SQL> select tablespace_name,block_size,initial_extent,next_extent,max_extents,pct_increase from dba_tablespaces where tablespace_name = 'USERS';
查看undo默认存储参数
SQL> select tablespace_name,block_size,initial_extent,next_extent,max_extents from dba_tablespaces where contents= 'UNDO';
查看临时表空间有啥
select tablespace_name,status,contents,logging from dba_tablespaces where tablespace_name like 'USER%';
通过数据字典视图来查看数据文件信息
select file#,status,enabled,bytes,block_size,name from v$tempfile;
查看当前默认临时表空间
SQL> col proerty_name for a30
SQL> col proerty_value for a20
SQL> col description for a40
SQL> select *from database_properties where property_name like 'DEFAULT%'