Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: very slow query on dba_jobs_running...
> > 1) select /*+ RULE */ * from dba_jobs_running;
> Works great. That's what I'm going to use.
Awesome ;)
This "hack" can be used with several other DD views as well, like
DBA_FREE_SPACE in LMT database.
> > 3) set your optimizer_dynamic_sampling greater than 1.
> Didn't make a difference with any setting between 0 and 10.
It seems that DD tables aren't sampled dynamically. I created another table under SYS and for that it worked...
>
> Lots of Greetings and thanks!
You're welcome,
Tanel.
Received on Tue Dec 02 2003 - 15:29:32 CST