Oracle数据库查看查看一周内的归档日志产生情况

select logtime,  

       count(*),  

       round(sum(blocks * block_size) / 1024 / 1024) mbsize  

  from (select trunc(first_time, 'dd') as logtime, a.BLOCKS, a.BLOCK_SIZE  

          from v$archived_log a  

         where a.DEST_ID = 1  

           and a.FIRST_TIME > trunc(sysdate - 7))  

 group by logtime  

 order by logtime desc;

 select count(*) from v$process;

请使用浏览器的分享功能分享到微信等