How to query the usage rate of redo logfile

Source: Internet
Author: User
Tags log query

How to query the usage rate of redo logfile



The use of redo logfile cannot be queried through the v$ view, but we can get it through the underlying view.



First, I'll introduce you to the views and fields you refer to.

x$kccle----[K]ernel [C]ache [C]ontrolfile management [l]ogfil[e] Record

This view records the use of logfile

which

LESIZ------logfile size (in logical blocks) leseq------Log sequence # LEBSZ------logfile Logical block size

By the way, the redo logfile is in the operating system block. So, the Lebsz here is the size of the OS block.

If we need to get the OS block size, we can query from here:



Sql> select Max (Lebsz) lbsize from X$kccle;

Lbsize----------512





X$KCCCP----[K]ernel [C]ache [C]ontrolfile management [C]heckpoint]

Checkpoint Enhancement (progress)

CPODR_SEQ------Log file's SEQ # cpodr_bno------The number of blocks used in the log file

Get log File Usage:

SELECT Le.leseq current_log_sequence#,

100*cp.cpodr_bno/le.lesiz Percentage_full

From X$KCCCP cp,x$kccle le

WHERE Le.leseq =cp.cpodr_seq;

Reference:

Http://www.jlcomp.demon.co.uk/faq/redologuse.html







July 24, 2004, Saturday 0:13

If you are have any question,please mail to eygle@itpub.net.






Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.