GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  PL/SQL
Go To First  |  Previous Question  |  Next Question 
 PL/SQL  |  Question 142 of 241    Print  
How can i see the time of execution of a sql statement?

  
Total Answers and Comments: 3 Last Update: March 18, 2009     Asked by: Mrigen 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 21, 2006 04:11:53   #1  
celso j.alos        

RE: How can i see the time of execution of a sql state...

use set timing on in sqlplus


 
Is this answer useful? Yes | No
February 09, 2007 17:30:47   #2  
geetha24 Member Since: March 2006   Contribution: 27    

RE: How can i see the time of execution of a sql state...
Set Timing onSelect * from Emp;You will get the time displayed.
 
Is this answer useful? Yes | No
March 18, 2009 00:12:21   #3  
sharmasl Member Since: March 2009   Contribution: 10    

RE: How can i see the time of execution of a sql statement?

First execute "Set Timing on" Cammand on SQL Prompt and after that

SQL> SET TIMING ON

Execute the SQL Cammand on SQL Prompt

Select * from Emp;

You will get the time displayed. Like This-

SQL> SELECT * FROM EMP;

EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
---------- ---------- --------- ---------- --------- ---------- ---------- ----------
7369 SMITH CLERK 7902 18-JAN-81 1100 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1700 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1350 500 30
7566 JONES MANAGER 7839 02-APR-81 3075 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1850 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2950 30
7782 CLARK MANAGER 7839 09-JUN-81 5000 10
7788 SCOTT ANALYST 7566 19-APR-87 3200 20
7839 KING PRESIDENT 17-NOV-81 0 10
7844 TURNER SALESMAN 7698 08-SEP-81 1600 0 30
7876 ADAMS CLERK 7788 23-MAY-87 1200 20
7900 JAMES CLERK 7698 03-DEC-81 1050 30
7902 FORD ANALYST 7566 03-DEC-81 3100 20
7934 MILLER CLERK 7782 23-JAN-82 0 10

14 rows selected.

Elapsed: 00:00:00.04


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape