Help needed to understand the message and tune the query which is causing high cpu/io
the sql which is causing high cpu/io is, how to go about finding what is the issue and fine tune this?
SELECT
*
FROM
(SELECT /*+FIRST_ROWS(10)*/ *
FROM
VERIWISE.TB_EXT1_EVENT A
WHERE
A.IS_PROCESSED = 'N' AND A.DEVICE_ID = :B1 ORDER BY 1)
WHERE ROWNUM <=
GET_PARAMETER('PKG_GSMD200_MESSAGE_DISPATCHER', 'EVENTS_LIMIT')
0