ORACLE scn-headroom Check

Source: Internet
Author: User

Select Tim, GSCN, round (rate), round ((CHK16KSCN-GSCN)/24/3600/32/1024,90) "Headroom" from (select Tim, GSCN, Rate, (( (To_number (To_char (Tim, ' YYYY ')) -1988) *12*31*24*60*60) + ((To_number (To_char (Tim, ' MM '))-1) *31*24*60*60) + (((to_ Number (To_char (Tim, ' DD '))-1)) *24*60*60) + (To_number (To_char (Tim, ' HH24 ')) *60*60) + (To_number (To_char (Tim, ' MI ')) * ) + (To_number (To_char (Tim, ' SS '))) * (16*1024)) Chk16kscn from (select First_time Tim, first_change# Gscn, (next_ch ange#-first_change#)/((next_time-first_time) *24*60*60)) rate from (select First_time, Leads (First_time, 1) Over (order by First_time) as Next_time, first_change#, next_change# from V$log_history where Thread#=1) where (Next_time > first_t IME)) where Tim > Sysdate-3 order by Tim Desc;

ORACLE scn-headroom Check

Related Article

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.