asp.net - Oracle: tracing SQL statements -


I am maintaining a home-frame web based help desk solution and we experience a false change in a db field The code included in some situations is quite clearly a mess, a mix of different methods for database access (the worst and most dangerous that is creating SQL strings through concatenation). The entire solution did not help in finding a full-text search of the problematic area (the field was shown only in the selection and only one in the valid) so I could not even get the offensive code.

Do you know the fastest way to enable SPL tracing

I did some goggles And I found this one: alternative system SET sql_trace = true scope = memory; But I would like to know what is the best way to solve the problem (and perhaps without rewriting the application to create a simple SQL logging mechanism).

The way to enable tracing is to know, but if you are having trouble working, Try to see if you can find references to the offending column in the sql_text column of SYS.v $ sql. Assuming that the statement has been conducted recently (and that the deed that was done in that work is not so long that the column you are searching for has been reduced - Oracle 8 has given full text to Not stored), you should find it out there The only case where the SQL will not be visible, if the change was done through a trigger or stored proc, then in that case you should be able to find the column in the text column of the Allstory table.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -