dbTalk Databases Forums  

Time of search in data base

comp.databases.object comp.databases.object


Discuss Time of search in data base in the comp.databases.object forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brucken
 
Posts: n/a

Default Time of search in data base - 11-05-2003 , 10:24 AM






Hi!!!!
I created a data base under oracle9i and I want to measure the search
time in this data base. Let us suppose that I have this request to
carry out:

select * from usager where name = 'John' and age = 45;

I want to know time that oracle puts to make this search in the data
base. What's the script enabling me to determine this search time?

Thanks.

Reply With Quote
  #2  
Old   
Ruud de Koter
 
Posts: n/a

Default Re: Time of search in data base - 11-06-2003 , 01:46 AM






Hi Brucken,
Quote:
Hi!!!!
I created a data base under oracle9i and I want to measure the search
time in this data base. Let us suppose that I have this request to
carry out:

select * from usager where name = 'John' and age = 45;

I want to know time that oracle puts to make this search in the data
base. What's the script enabling me to determine this search time?
You should read up on the use of tkprof. There is a master index to the Oracle
documentation that should help you get under way.

Regards,

Ruud.
Quote:
Thanks.
--
--------------------------------------------------------------------------------------
Ruud de Koter HP OpenView Software Business Unit
Senior Software Engineer IT Service Management Operation
Telephone: +31 (20) 514 15 89 Van Diemenstraat 200
Telefax : +31 (20) 514 15 90 PO Box 831
Telnet : 547 - 1589 1000 AV Amsterdam, the Netherlands
Email : ruud_dekoter (AT) hp (DOT) com

internet: http://www.openview.hp.com/products/servicedesk
intranet: http://ovweb.bbn.hp.com/itservicemanager
--------------------------------------------------------------------------------------


Reply With Quote
  #3  
Old   
parag_cg
 
Posts: n/a

Default Re: Time of search in data base - 11-06-2003 , 07:40 AM




Hi,

One simple way is to set timing on sql plus.

i.e

sql>set timing on;

execute your query. oracle will display elapsed time taken by
the query.



thanks and regards,

Parag


--
parag


Posted via http://dbforums.com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.