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

Home -> Community -> Mailing Lists -> Oracle-L -> how to deal with this situation? truncate table + statistics

how to deal with this situation? truncate table + statistics

From: The Human Fly <sjaffarhussain_at_gmail.com>
Date: Tue, 13 Sep 2005 12:30:44 +0300
Message-ID: <97b7fd2f050913023045485d36@mail.gmail.com>


Hello List,

Well, I have a little bit tricky or I can say confused situation. We have database for shares tradining. Beginning of every day, a couple of tables will be truncted and we analyze the schema. The situation is, when we truncate and analzye those tables,

statitiscs are updated as rum_rows=0, and blocks =0. The entire day,
about 100,000 records comes in each of those truncated  tables. But,
for the optimizer,  the data dictionary statistics provides nothing,
when there are records coming every second, we dont re-analyze again, i.e. old statistics available to the optimizer. How can we deal with this situation? Is it better to collect the statistics before table get truncated, so that statistics available for those tables to help otpimizer? If so, lets say, if our num_rows says 100,000 and truncated the table, when records start coming in a table, optimizer assumed that this table has 100,000 records, may be the empty table starts filling from 10 records and keep growing.? What is the best way to deal this?
-- 
Best Regards,
Syed Jaffar Hussain
OCP 8i & 9i DBA,
Banque Saudi Fransi,
Saudi Arabia
----------------------------------------------------------------------------------------
"It is your atittude, not your aptitude that determins your altitude."
--
http://www.freelists.org/webpage/oracle-l
Received on Tue Sep 13 2005 - 04:32:43 CDT

Original text of this message

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