Home > Database > Mysql Tutorial > Oracle管理查询管用的sql语句_MySQL

Oracle管理查询管用的sql语句_MySQL

WBOY
Release: 2016-06-01 13:59:25
Original
748 people have browsed it

Oracle日常管理用到的一些sql语句

表空间及容量:

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

表空间的空闲容量:

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

系统表空间:

select tablespace_name from dba_tablespaces;

系统数据文件:

select file_name from dba_data_files;

系统控制文件:

select value from v$parameter where name=’control_files’;

系统重做日志文件:

select member from v$logfile;

归档日志文件:

select value from v$parameter where name=’log_archive_dest’

Related labels:
source:php.cn
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