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: sybrandb <sybrandb_at_gmail.com>
Date: Fri, 7 Dec 2007 05:00:21 -0800 (PST)
Message-ID: <7b57b228-ae58-4089-862a-bf690581e06d@o6g2000hsd.googlegroups.com>


On Dec 7, 1:51 pm, 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

Just enable monitoring on the affected tables (alter table ... monitoring) and run dbms_stats.gather_schema_stats with the appriopate options (STALE comes to mind) after the deed. For dbms_stats refer to http://www.psoug.org/reference/dbms_stats.html

--
Sybrand Bakker
Senior Oracle DBA

Senior
Received on Fri Dec 07 2007 - 07:00:21 CST

Original text of this message

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