Check Response Time & Runtime of Oracle SQL Statement

Symptom

You can measure the time taken when you are executing an SQL statement in Oracle database environment.

Solution

1. In SQL session of your Oracle database, execute the command to activate the timing.

SQL> set timing on;

2. This will compute the time taken everytime you executing any SQL statements. As below example, time taken to execute below command is 1.32 seconds.

SQL> select count(*) from sapsr3.vbrk where mandt='900';

  COUNT(*)
----------
   4903425

Elapsed: 00:00:01.32

3. To turn this timing off, execute below command.

SQL> set timing off;

You May Also Like

Leave a Reply?