首页 > Linux操作系统 > Linux操作系统 > oracle查看昨天产生归档日志文件总量


原创 Linux操作系统 作者:李晨超 时间:2013-03-27 12:04:51 0 删除 编辑


V$ARCHIVED_LOG displays archived log information from the control file, including archive log names. An archive log record is inserted after the online redo log is successfully archived or cleared (name column is NULL if the log was cleared). If the log is archived twice, there will be two archived log records with the same THREAD#, SEQUENCE#, and FIRST_CHANGE#, but with a different name. An archive log record is also inserted when an archive log is restored from a backup set or a copy and whenever a copy of a log is made with the RMAN COPY command.
block_size   NUMBER      Redo log block size. This is the logical block size of the archived log,  which is the  same as the logical block size of the online log from which the archived log was opied. The online log logical block size is a platform. specific value that is not adjustable by the user. 

block        NUMBER         Size of the archived log (in blocks) 

fisrt_time   DATE             Timestamp of the first change

SELECT SUM(block_size*blocks)/1024/1024/1024 "SIZE(MB)"
FROM v$archived_log 
WHERE TRUNC(first_time) >= TRUNC(sysdate-1)
AND TRUNC(first_time) < TRUNC(sysdate);

SELECT TRUNC(first_time) "TIME",SUM(block_size*blocks)/1024/1024/1024 "SIZE(MB)"
FROM v$archived_log
GROUP BY TRUNC(first_time);

来自 “ ITPUB博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: bbed的使用
请登录后发表评论 登录


  • 博文量
  • 访问量