oracle 查看用户所在的表空间

 时间:2026-02-14 15:13:34

1、数据字典中用户表:dba_users;

通过数据字典查看有多少个用户:select username from dba_users;

oracle 查看用户所在的表空间

2、数据字典中表空间表: dba_tablespaces;

查看有几个表空间:select tablespace_name from dba_tablespaces;

oracle 查看用户所在的表空间

3、oracle 查看用户所在的表空间:select username,default_tablespace from dba_users order by username;如图所示;

oracle 查看用户所在的表空间

4、如果感觉查询的部方便使用where进行用户名大写进行条件过滤:select username,default_tablespace from dba_users  where username='用户名';

例如查询SYSTEM用户的所属表空间--用户名需要大写,如图所示;

oracle 查看用户所在的表空间

5、查看表空间的名字及大小:select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size   

from dba_tablespaces t, dba_data_files d where t.tablespace_name = d.tablespace_name   

group by t.tablespace_name;

oracle 查看用户所在的表空间

  • git如何切换用户
  • dbeaver怎么连接mysql数据库?
  • putty保存连接信息
  • idea怎么安装插件
  • notepad++怎么将界面语言设置为中文
  • 热门搜索
    放飞梦想手抄报资料 创模手抄报 关于曹文轩的手抄报 勤俭节约手抄报大全 反腐倡廉手抄报内容 成长手抄报内容 汉字王国手抄报 手抄报花边简单图案 健康小常识手抄报 有关于安全的手抄报