Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Strange wait for what should be a fast query

Re: Strange wait for what should be a fast query

From: Norman Dunbar <>
Date: Wed, 20 Dec 2006 08:33:05 +0000
Message-Id: <>

Morning Charles,

>> So I am thinking to myself (out loud), "Is there anything in Java
that would
>> exhibit the same kind of behavior that Cary described?"

Is this Java app something like WebLogic? If so, it is possible that these selects from dual are being used by the WebLogic system (not the app) to check on the database's 'aliveness'. I see lots of these on a daily basis in some of my databases (and every one has a parse to execute ratio of 1:1 - oh hum!)

Another possible reason could be 'thinking time' - Java is renowned for its slowness (GD&R) so maybe it is talking ages to work out the answer from the query.

Remember, when you see that WAIT event in the trace file AFTER the FETCH, it means that the FETCH has completed and the WAIT is a 'prequel' to the next database event such as PARSE, EXEC, FETCH (information stolen blatently from Cary's book!)

HTH Cheers,

Norman Dunbar.
Contract Oracle DBA.
Rivers House, Leeds.

Internal : 7 28 2051
External : 0113 231 2051

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.

We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at

Received on Wed Dec 20 2006 - 02:33:05 CST

Original text of this message