I would like to know why a query is taking lot of shared pool
Sangeetha, January 30, 2019 - 4:49 am UTC
HI,
Why would a query is consuming lot of SGA ? In my case the query just returns one row. But it is appearing in the "SQL ordered by Sharable Memory" top in AWR.
SQL ordered by Sharable Memory
A reader, August 22, 2019 - 12:46 pm UTC
Can SQLID listed in SQL ordered by Sharable Memory in AWR report cause ORA-02055: distributed update operation failed; rollback required error.
In my existing system, process stopped with ORA-02055 and next time it worked fine.
I checked for AWR report and I can see some SQLID under SQL ordered by Sharable Memory which is otherwise not there when the process worked fine.
August 22, 2019 - 2:31 pm UTC
What exactly is the query you ran? Did you run any other statements over a database link before this in the same session?
Identifying SQL Queries that are consuming Shared Pool Memory
Mansi, August 22, 2019 - 6:15 pm UTC
I did not run anything on database link, but I ran package with multiple queries, which I wont be able to provide here.
and that is scheduled task. only difference is that I ran the package at different time and not at the scheduled one and I see this error, ever since I am trying to reproduce this error.