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’;