The initial investigation of this issue is written in the Production Emergency post. You might want to read that first if you haven’t already.
Addressing the underlying problem
We had identified the source of the problem. The SQL text can be extracted from the database as follows:
This displays the SQL text. If the application populates the module
, program
and client_id
of v$session
using
dbms_application_info
, then there is enough information to find out what code is causing the
problem and even who was running the program that caused it.