Newsgroups: comp.databases.oracle.server
From: Charles Hooper <hooperc2...@yahoo.com>
Date: Mon, 28 Jan 2008 18:37:37 -0800 (PST)
Local: Mon, Jan 28 2008 9:37 pm
Subject: Re: long running select min(timestamp) query
Responses inline:
On Jan 28, 6:26 pm, "bobdu...@gmail.com" <bobdu...@gmail.com> wrote: > On Jan 28, 11:39 am, Charles Hooper <hooperc2...@yahoo.com> wrote: What you posted above are the estimates, and do not include the actual > > Try a simple test: > > First, create a table with a single column and an index on that > > column: > > CREATE TABLE T1 (EVENTDATE TIMESTAMP NOT NULL); > > CREATE INDEX T1_IND1 ON T1(EVENTDATE); > > Now, insert 900,000 rows into the table, commit and gather table and > > COMMIT; > > EXEC > > Finally, run a simple query: > > From a 10046 trace, only 3 blocks read, all by consistent read: > > The DBMS XPLAN: > > Does the above experiment execute quickly, and read only 3 blocks on > I tried your experiment, and achieved similar responses - i'm a > --------------------------------------------------------------------------- ----------- > I think this is comparable, but please advise if not. execution statistics. But for this comparison, that will work just as well. See the following for an example of how to use DBMS_XPLAN to retrieve the actual execution statistics: http://jonathanlewis.wordpress.com/2006/11/09/dbms_xplan-in-10g/ Your explain plan (of my query example) above shows a prediction of Now, let's look at the explain plan that you posted for your original To enable a 10046 trace for your session with wait events: To disable the trace for your session: You can find the trace file that is generated in the udump directory The above reads as: 0 CPU seconds, 352/1000000 second elapsed time, 0 You will likely also find various wait events which may help identify Please post a DBMS_XPLAN for your query using the technique described Charles Hooper You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||