How to check the size of current redo log?

Oracle Database Administration
Post Reply
User avatar
jimb
Site Admin
Posts: 6146
Joined: Thu Jan 19, 2012 1:10 pm
Location: New Delhi, India
Contact:

How to check the size of current redo log?

Post by jimb »

Below is the query to determine the size of current redo log file:

Code: Select all

SELECT le.leseq                  "Current log sequence No",
         100*cp.cpodr_bno/le.lesiz "Percent Full",
         cp.cpodr_bno              "Current Block No",
         le.lesiz                  "Size of Log in Blocks"
    FROM x$kcccp cp, x$kccle le
   WHERE le.leseq =CP.cpodr_seq
     AND bitand(le.leflg,24) = 8
  /
Sample Output:

Code: Select all

Current log sequence No Percent Full Current Block No Size of Log in Blocks
----------------------- ------------ ---------------- ---------------------
                     88   60.8300781            62290                102400
Oracle Database Administration Forums
http://www.oracle-forums.com/
xaeresis
Posts: 242097
Joined: Wed Oct 04, 2023 2:39 pm

Re: How to check the size of current redo log?

Post by xaeresis »

xaeresis
Posts: 242097
Joined: Wed Oct 04, 2023 2:39 pm

Re: How to check the size of current redo log?

Post by xaeresis »

Post Reply