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

Home -> Community -> Usenet -> c.d.o.server -> Re: programmatically updating table statistics

Re: programmatically updating table statistics

From: hpuxrac <johnbhurley_at_sbcglobal.net>
Date: Fri, 7 Dec 2007 15:03:03 -0800 (PST)
Message-ID: <37be19f7-b96f-4251-a68e-c8c59541638b@b40g2000prf.googlegroups.com>


On Dec 7, 6:51 am, Wisser <RalfWis..._at_gmx.de> wrote:
> Hi,
>
> is it possible to programmatically update table statistics by
> executing SQL-statements via Jdbc-driver?
> My DB-application fills an initially empty table with a huge number of
> rows and I try to speed-up the application by keeping the table-
> statistics uptodate.
>
> Thanks,
> Ralf

Jonathan Lewis talks about this approach in his latest book. It's not an easy read exactly but worth working through.

Yes it is possible ... usually something you want to try to avoid if you can. That's the short response.

One possible approach is avoiding having stats for the table and using dynamic sampling. Do you use bind variables in your applications so your statements stay in the shared pool? Received on Fri Dec 07 2007 - 17:03:03 CST

Original text of this message

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