we seem to have a bug in our code that is allowing some null columns to be inserted into a table. However those columns have NOT NULL constraints on them and thus the insert fails.
We're trying to track down the circumstances of the event and the programmer tasked with this came up with the idea of a before trigger on the table so catch the offending insert and insert the offending bind variables into a temp table. We dont want to add debug lines of code to the app and send it out.
However because the actual insert isn't happening because of the not null constraint the before trigger doesn't fire.
We tried a instead of trigger on a view of the table but that doesn't work either.
any ideas how we can catch the insert parameters as its happening without resorting to amending the app?
Its not realistic to turn on sql trace either as the app lives on the server not on each client so the sqlnet.log file will be across all users of the app making it unreadable
We're trying to track down the circumstances of the event and the programmer tasked with this came up with the idea of a before trigger on the table so catch the offending insert and insert the offending bind variables into a temp table. We dont want to add debug lines of code to the app and send it out.
However because the actual insert isn't happening because of the not null constraint the before trigger doesn't fire.
We tried a instead of trigger on a view of the table but that doesn't work either.
any ideas how we can catch the insert parameters as its happening without resorting to amending the app?
Its not realistic to turn on sql trace either as the app lives on the server not on each client so the sqlnet.log file will be across all users of the app making it unreadable