I need collect statistics for my long SQL-scripts. Script files generated by Java application and execute by third-party fast DB-driver.
In this way I can't use AUTOTRACE, because it`s not SQLPlus. But for perfomance reasons I need to know stat information about every statement in script.
Can you advice approaches or best practices?
I look in the direction of STATSPACK and secondarily tkproof. 1. STATSPACK looks like machine that breaks a butterfly on a wheel. Isn`t it? 2. tkproof needs kind of privileges and I worry that the Java application user does not have such privileges.
Is there something else?