Why a session is opening up multiple cursors for the same SQL statement?
Hi All,
A DB session is having multiple open cursors for same SQL statement. The count of open cursors are going up to more than 100. The version of Oracle DB we are using is 19.14.0.
Is it expected behavior of Oracle or something went wrong and Oracle is unable to reuse existing cursor in the session cache and opening a new cursor for the same SQL? Please suggest.
select sid, sql_id, count(*) from v$open_cursor group by sid, sql_id having count(*) > 2 order by 3 desc
sid sql_id count(*)
--- ---------------- ---------
2992 0t31jd1j1t7v5 94
2992 auynk1160wy8d 28