• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

time to execute query

 
ram prabhu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic