1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

アーカイブログの生成量を確認するには

Posted at

1日あたりのアーカイブログの生成量を知りたいときがあるので方法をまとめます。

どこを確認?

動的パフォーマンスビューのv$archived_logに対するクエリ発行で確認できます。

確認方法

事前に

SQLPlusでデータベースに接続して、REDOブロックサイズ確認を確認します。
この出力結果により後に記載する「BLOCKS
512」の数字部分を変更します。

select blocksize from v$log;

アーカイブREDO生成量の確認

set lines 200 pages 10000
select
    to_char(COMPLETION_TIME,'yyyy/mm/dd hh24:mi:ss') comp_time
  , trunc(BLOCKS*512/1024/1024) mb
from v$archived_log
order by 1;

日単位で確認するには

select
    to_char(trunc(COMPLETION_TIME),'yyyy/mm/dd') comp_time
  , trunc(sum(BLOCKS*512/1024/1024)) mb
from v$archived_log
group by trunc(COMPLETION_TIME)
order by 1;

以上

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?