This commit is contained in:
Yacine31
2023-11-10 20:20:35 +01:00
parent 1c042e269c
commit d2af6ae320
2 changed files with 8 additions and 5 deletions

View File

@@ -1,7 +1,9 @@
prompt <h2>Last alertlog errors </h2>
prompt <h2>Last alertlog errors (Last 30 days and last 100 errors)</h2>
set pages 999 lines 150
select to_char(ORIGINATING_TIMESTAMP, 'DD-MM-YYYY HH-MM-SS') || ' : ' || message_text "Last alertlog (30 days)"
FROM X$DBGALERTEXT
WHERE originating_timestamp > systimestamp - 30 AND regexp_like(message_text, '(ORA-)');
WHERE originating_timestamp > systimestamp - 30
AND regexp_like(message_text, '(ORA-)')
AND rownum <=100;
exit

View File

@@ -1,4 +1,4 @@
prompt <h2>Last RMAN backups </h2>
prompt <h2>Last RMAN backups (30 days/50 rows)</h2>
alter session set nls_date_format='DD/MM/YYYY HH24:MI:SS' ;
set linesize 250 heading off;
set heading on pagesize 999;
@@ -16,6 +16,7 @@ select
b.input_bytes_display,
b.output_bytes_display
FROM v$rman_backup_job_details b
WHERE b.start_time > (SYSDATE - 30)
ORDER BY b.start_time asc;
WHERE b.start_time > (SYSDATE - 30) and rownum <=50
ORDER BY b.start_time asc
;
exit