Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL tuning questions

Re: SQL tuning questions

From: damorgan <dan.morgan_at_ci.seattle.wa.us>
Date: Thu, 07 Feb 2002 20:05:04 GMT
Message-ID: <3C62DDF5.6EF90E@ci.seattle.wa.us>


Two possibilities. One is to get the start time saved into a variable such as:

vStartTime := SYSDATE;

then do the same thing when the procedure ends. If you are running ad hoc queries just wrap them into an anonymous block.

You can also use dbms_utility.get_time for 1/100 of a second accuracy.

Daniel Morgan

tshen wrote:

> hi, guys:
>
> Q 1: why some time oracle won't use the hint which I give?
> Q 2: since I found the "set timing on" cann't tell the exact the time
> the oracle
> execute the query, so how can I tell the exact time of execution
> of the query?
> Q3: I have no problem with each single simple tuning sample SQL, but
> in real life,
> the SQL became very complicate and huge, so is there any steps
> or spots that I
> must look or deal first, and then second....... ? please give
> some suggestion of
> the real life SQL tuning. thanks
>
> tshen
Received on Thu Feb 07 2002 - 14:05:04 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US