Home > Database > Mysql Tutorial > 查询Oracle表空间信息

查询Oracle表空间信息

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:16:32
Original
1083 people have browsed it

查询Oracle表空间信息,查看当前用户每个表占用空间的大小:查询出系统表空间的大小,并按大小进行降序排列(需要SYSDBA的权限):

1.查看当前用户每个表占用空间的大小:

Select Segment_Name,Sum(bytes)/1024/1024 From User_Extents Group By Segment_Name;

2.查看每个表空间占用空间的大小:

Select Tablespace_Name,Sum(bytes)/1024/1024 From Dba_Segments Group By Tablespace_Name;

3.查询出当前用户的表所占用的空间大小,并按大小进行降序排列:

Select Segment_Name,Sum(bytes)/1024/1024 From User_Extents Group By Segment_Name order by Sum(bytes)/1024/1024 desc;

4.查询出系统表空间的大小,,并按大小进行降序排列(需要SYSDBA的权限):

Select Tablespace_Name,Sum(bytes)/1024/1024 From Dba_Segments Group By Tablespace_Name order by Sum(bytes)/1024/1024 desc;

linux

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template