...'%ORA-%' and rownum < 6;
ERR
------------------------------------
ORA-12505
ORA-12505
ORA-12505
ORA-28000
ORA-28000
Group by fails
select count(*), SUBSTR(msg, INSTR(msg, 'CRS-', -4),8) as ERR FROM sysman.mgmt$events where MSG like '%CRS-%' and rownum < 6 group by ERR;
ERROR at line 1...