Hi,
Whenever we ran the AWR report for the database server . The following below query always appear in the report on daily basis consuming more than 99% cpu on the database server .
insert into MX_U_S (MX_U_S_01, MX_U_S_02, MX_U_S_03, TOTAL, CREATED_DTTM) select MX_U_01, MX_U_02, MX_U_03, count(1), sysdate from MX_U where (MX_U_06 = 'START' or MX_U_06 is null) and (created_dttm is null or created_dttm <= to_date('2022-01-05T00:00:00', 'YYYY-MM-DD"T"HH24:MI:SS')) group by MX_U_01, MX_U_02, MX_U_03
DELETE FROM MX_U where (created_dttm is null or created_dttm <= to_date('2021-10-13T00:00:00', 'YYYY-MM-DD"T"HH24:MI:SS'))
Need you support on to reduce the utilization of the above query on the database server?