This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes time to execute query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "time to execute query" Watch "time to execute query" New topic
Author

time to execute query

ram prabhu
Greenhorn

Joined: Aug 18, 2005
Posts: 8
hai can anyone just help me to find the time taken
to execute a uery in oracle.
i just tried with calculating the difference between the system time before and after executing the query in milliseconds.but its not working properly.

Is there any predefined function in oracle api to caluclate the time taken to execute query.
Sujith Kanaparthi
Ranch Hand

Joined: Sep 04, 2005
Posts: 45
In Oracle there is an utiltiy, DBMS_UTILITY.GET_TIME using which you can calculate the time before and after executing the query.And the difference between the two gives you the query execution time.Or else, in java you have System.currentTimeMillis().
Regards,
Sujith
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: time to execute query