全部博文(101)
分类: Oracle
2011-04-19 18:37:05
如何查询用户下的表空间名字(除了临时表空间)
;
如果查询当前连接用户
SQL> select tablespace_name from user_extents
group by tablespace_name;
TABLESPACE_NAME
------------------------------
SYSAUX
SYSTEM
如果要指定用户来查询,当然要有足够的权限;
SQL> select tablespace_name from dba_extents
where owner='SYS' group by tablespa
ce_name;
TABLESPACE_NAME
------------------------------
SYSAUX
UNDOTBS1
JINLIAN_UNDO
SYSTEM
JINLIAN1_UNDO
SQL> select tablespace_name from dba_extents
where owner='SYSTEM' group by table
space_name;
TABLESPACE_NAME
------------------------------
SYSAUX
SYSTEM