查看用户占空间大小
2015-01-20 18:08
134 查看
1、用DBA用户登录数据库。
2、以G为大小单位,查询语句:
select *
from (select owner || '.' || tablespace_name name, sum(b) g
from (select owner,
t.segment_name,
t.partition_name,
round(bytes / 1024 / 1024 / 1024, 2) b,
tablespace_name
from dba_segments t)
where owner not in
('SYS', 'OUTLN', 'SYSTEM', 'TSMSYS', 'DBSNMP', 'WMSYS')
group by owner || '.' || tablespace_name)
order by name;
2、查看表的使用空间大小
select num_rows * avg_row_len/1024/1024
from user_tables
where table_name = 'xxxx';
2、以G为大小单位,查询语句:
select *
from (select owner || '.' || tablespace_name name, sum(b) g
from (select owner,
t.segment_name,
t.partition_name,
round(bytes / 1024 / 1024 / 1024, 2) b,
tablespace_name
from dba_segments t)
where owner not in
('SYS', 'OUTLN', 'SYSTEM', 'TSMSYS', 'DBSNMP', 'WMSYS')
group by owner || '.' || tablespace_name)
order by name;
2、查看表的使用空间大小
select num_rows * avg_row_len/1024/1024
from user_tables
where table_name = 'xxxx';
相关文章推荐
- 查看MSSQL 数据库 用户每个表 占用的空间大小
- ORACLE创建表空间、创建用户、更改用户默认表空间以及授权、查看权限(修改表空间大小)
- 信息、数据-查看MSSQL 数据库 用户每个表 占用的空间大小-by小雨
- Oracle 用户表空间查看、修改大小、设置自增长等
- Oracle 用户表空间查看、修改大小、设置自增长等
- 创建表空间以及用户,授予权限,查看表空间名称及大小,物理文件的名称及大小,数据库的创建日期和归档方式,数据库的版本,数据库库对象,表空间的使用情况,表空间读写
- 查看用户表空间分配额大小
- 查看所有用户在oracle数据库占用空间大小
- 如何查看用户表所占空间的大小
- Oracle 用户表空间查看、修改大小、设置自增长等
- 如何查看用户表所占空间的大小
- 查看数据库中指定用户下每个表占的实际空间大小
- 关于查看MSSQL 数据库 用户每个表 占用的空间大小
- 查看MSSQL 数据库 用户每个表 占用的空间大小
- ORACLE创建表空间、创建用户、更改用户默认表空间以及授权、查看权限(修改表空间大小)
- 关于查看MSSQL 数据库 用户每个表 占用的空间大小
- Oracle创建表空间、创建用户以及授权、查看权限
- 在SQL中查看表所占的空间大小
- Sql Server 中查看某一数据库及数据表所占空间大小
- 查看Sql表所占空间的大小