The following query reveals that my FRA contains archived logs from the last 3 days only (indicated by an "A" - available).
-- Set your NLS_DATE_FORMAT in your session to avoid ORA-01830: date format picture ends before converting entire input string
alter session set NLS_DATE_FORMAT='DD.MM.YYYY HH24:MI:SS';
select trunc(completion_time),status,count(*)
from v$archived_log
where completion_time > to_date('20.06.2018 00:00:00')
group by trunc(completion_time),status
order by 1 desc;Output:
| TRUNC(COMPLETION_TIME) | STATUS | COUNT(*) |
|---|---|---|
| 29.06.2018 | A | 37 |
| 28.06.2018 | A | 57 |
| 27.06.2018 | A | 54 |
| 27.06.2018 | D | 1 |
| 26.06.2018 | D | 75 |
| 25.06.2018 | D | 75 |
| 24.06.2018 | D | 53 |
| 23.06.2018 | D | 55 |
| 22.06.2018 | D | 59 |
| 21.06.2018 | D | 58 |
| 20.06.2018 | D | 54 |
Archive log files prior to these, have been deleted (indicated by a "D") by rman after having been successfully backed up.
No comments:
Post a Comment