Log database queries
I have a fairly complicated groovy script which performs some operations on an Oracle db. Is there a way to log all the queries being performed on the database during a run? I do not have DBA access to the db. It is tedious to trace through the code and figure all the queries being 开发者_运维技巧fired. Just was wondering if there was a way to log the actual queries instead.
Thanks.
Eventually used this log4jdbc
精彩评论