From 40598a1d937734e14bdebd05b5d6713d47572a2f Mon Sep 17 00:00:00 2001 From: Yacine31 Date: Sun, 12 Nov 2023 02:10:43 +0100 Subject: [PATCH] Update 25_last_alertlog_errors.sql --- sql/25_last_alertlog_errors.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/25_last_alertlog_errors.sql b/sql/25_last_alertlog_errors.sql index 70175aa..b6eb351 100644 --- a/sql/25_last_alertlog_errors.sql +++ b/sql/25_last_alertlog_errors.sql @@ -1,7 +1,8 @@ prompt

Last alertlog errors (Last 30 days and last 100 errors)

set pages 999 lines 150 -select to_char(ORIGINATING_TIMESTAMP, 'DD-MM-YYYY HH-MM-SS') || ' : ' || message_text "Last alertlog (30 days)" +-- select to_char(ORIGINATING_TIMESTAMP, 'DD-MM-YYYY HH-MM-SS') || ' : ' || message_text "Last alertlog (30 days)" +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-)')