Home > Database > Mysql Tutorial > Oracle 查看数据库空间使用情况

Oracle 查看数据库空间使用情况

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:24:25
Original
1737 people have browsed it

1、查看Oracle所有表空间大小 select tablespace_name,sum(bytes)/1024/1024 from dba_data_files group by tablespace_name; 2、

1、查看Oracle所有表空间大小

select tablespace_name,sum(bytes)/1024/1024 from dba_data_files group by tablespace_name;

2、Oracle未使用的表空间大小

select tablespace_name,sum(bytes)/1024/1024 from dba_free_space group by tablespace_name;

3、使用的表空间大小

select df.tablespace_name,SUM(df.bytes)/1024/1024 total,SUM(fs.bytes)/1024/1024 free,SUM(df.bytes-fs.bytes)/1024/1024 used from dba_data_files df,dba_free_space fs

where df.tablespace_name = fs.tablespace_name

group by df.tablespace_name

linux

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