Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get the total Elapsed Time of multiple queries

1003106May 7 2013 — edited May 7 2013
Hi Friends,

I am executing below two SQL's at a time in a .sql file and I want the total execution time of these two queries:-

set timing on;
select 1 from dual;
select 2 from dual;

The output of the above sql file is returning the results like below which is expected:-

1
----------
1

Elapsed: 00:00:00.01

2
----------
2

Elapsed: 00:00:00.00

I want the total execution time of the two SQL queries at a time, I mean post execution of the two queries I want to know the total execution time, in this case is execution case will be 00:00:00.01.

Can you guys help to achieve this...

Regards,
Arijit
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2013
Added on May 7 2013
2 comments
595 views