formatage SQL

This commit is contained in:
Yacine31
2024-02-10 02:30:28 +01:00
parent 2d51059e6c
commit a4bc29b998
35 changed files with 538 additions and 401 deletions

View File

@@ -1,10 +1,13 @@
prompt <h2>Les dernières erreurs ASM (Les 30 derniers jours et les 50 dernières lignes)</h2>
-- set pages 99
select to_char(ORIGINATING_TIMESTAMP, 'DD-MM-YYYY HH-MM-SS') "Date", message_text "Message"
FROM X$DBGALERTEXT
WHERE originating_timestamp > systimestamp - 30
AND regexp_like(message_text, '(ORA-)')
AND rownum <=50
order by originating_timestamp desc;
SELECT
TO_CHAR(ORIGINATING_TIMESTAMP, 'DD-MM-YYYY HH-MM-SS') "Date",
MESSAGE_TEXT "Message"
FROM
X$DBGALERTEXT
WHERE
ORIGINATING_TIMESTAMP > SYSTIMESTAMP - 30
AND REGEXP_LIKE(MESSAGE_TEXT, '(ORA-)')
AND ROWNUM <=50
ORDER BY
ORIGINATING_TIMESTAMP DESC;