Update 23_archive_log_per_day.sql

where first_time > systimestamp - 30
This commit is contained in:
Yacine31
2023-11-23 01:32:06 +01:00
parent 7fc0940871
commit e441c248c0

View File

@@ -59,6 +59,7 @@ sum(decode(to_char(first_time, 'hh24'),'22',1,0)) "22",
sum(decode(to_char(first_time, 'hh24'),'23',1,0)) "23", sum(decode(to_char(first_time, 'hh24'),'23',1,0)) "23",
sum(decode(to_char(first_time, 'hh24'),'24',1,0)) "24" sum(decode(to_char(first_time, 'hh24'),'24',1,0)) "24"
from v$log_history from v$log_history
where first_time > systimestamp - 30
group by to_char(first_time, 'YYYY/MM/dd') group by to_char(first_time, 'YYYY/MM/dd')
order by to_char(first_time, 'YYYY/MM/dd') order by to_char(first_time, 'YYYY/MM/dd')
; ;
@@ -69,6 +70,7 @@ select
count(*) "Nbr de fichiers", count(*) "Nbr de fichiers",
ROUND(sum(BLOCKS*BLOCK_SIZE)/1024/1024, 0) "Taille_Mo" ROUND(sum(BLOCKS*BLOCK_SIZE)/1024/1024, 0) "Taille_Mo"
from v$archived_log from v$archived_log
where first_time > systimestamp - 30
group by to_char(first_time, 'YYYY/MM/dd') group by to_char(first_time, 'YYYY/MM/dd')
order by to_char(first_time, 'YYYY/MM/dd') order by to_char(first_time, 'YYYY/MM/dd')
; ;