Re: typical active table count
From: Andy Sayer <andysayer_at_gmail.com>
Date: Tue, 27 Jun 2023 19:13:05 -0700
Message-ID: <CACj1VR6WMS8jkxfxQAhV-z2-Kw_aYKudGF7rdt1H2tC2LyccBg_at_mail.gmail.com>
The answer is still 42 though ;)
Date: Tue, 27 Jun 2023 19:13:05 -0700
Message-ID: <CACj1VR6WMS8jkxfxQAhV-z2-Kw_aYKudGF7rdt1H2tC2LyccBg_at_mail.gmail.com>
I would just check the execution plans for recently executed updates/inserts/merge.
select distinct object_owner, object_name from (select sc.command_name, s.sql_id, sp.object_owner, sp.object_name
from v$sql s join v$sql command sc on s.command_type = sc.command_type join v$sql_plan sp on s.sql_id = sp.sql_id and s.child_number = sp.child_number and sp.id = 1 where sc.command_name in ('INSERT','UPDATE','MERGE') and s.last_active_time > sysdate-interval'10'second )
The answer is still 42 though ;)
On Tue, Jun 27, 2023 at 6:27 PM, Mladen Gogala <gogala.mladen_at_gmail.com> wrote:
> On 6/27/23 16:00, Jonathan Lewis wrote:
>
> I can't come up with any meaningful value, though I'd certainly expect the
> answer to be more than "10 or so",
>
> In that case, the answer is 42.
>
> --
> Mladen Gogala
> Database Consultant
> Tel: (347) 321-1217https://dbwhisperer.wordpress.com
>
>
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Jun 28 2023 - 04:13:05 CEST