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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Source of expensive SQL

Re: Source of expensive SQL

From: Jared Still <jkstill_at_gmail.com>
Date: 2006-01-07 08:13:23
Message-id: bf46380601062313h784c3041x317e34b82bf82654@mail.gmail.com


Just a thought:

Try running the query yourself and see what the results are.

That might give a clue.

Jared

On 1/5/06, Ray Feighery wrote:
>
> Hello
>
>
>
> Solaris 8
>
> Oracle 9.2.0.4
>
>
>
> The following piece of SQL is popping up in STATSPACK reports as
> expensive. It runs about once an hour. I can see that it is executed as the
> SYS user, but I don't know what is causing it to run.
>
> Any ideas what the source of this is?
>
>
>
> select i.obj#, i.flags, u.name, o.name
>
> from sys.obj$ o, sys.user$ u, sys.ind$ i
>
> where (bitand(i.flags, 256) = 256 or bitand(i.flags, 512) = 512)
>
> and (not((i.type# = 9) and bitand(i.flags,8) = 8))
>
> and o.obj#=i.obj#
>
> and o.owner# = u.user#
>
> Ray
>
>
>

--
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist
Received on Sat Jan 07 2006 - 08:13:23 CST

Original text of this message

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