Analyse
Date: Tue, 23 Jul 2002 19:06:34 +1000
Message-ID: <3d3d1a71$1_1_at_news.iprimus.com.au>
I need some advice on the use of the PL/SQL dbms_stats package.
I am able to analyze the tables in a database, however, I want to keep the
current table stats in case there is performance degradation after the
analyze is performed. I have been testing the use of the dbms_stats package
and I am able to create the stats table and export the current stats in a
test database. However, when I imported the stats back, I noticed that the
empty_blocks, avg_space, avg_space_freelist_blocks and num_freelist_blocks
in dba_tables were all set to zero. I checked this table before the export
and the values of these fields were non-zero. I'd like to know if this is
the normal behaviour of the dbms_stats.export/import or should I expect to
see the original values in these columns?
I found the following statement in the Oracle 8.1.7 Performace & Tuning
Guide:
"To verify that table statistics are available, execute the following
against the DBA_TABLES:
SELECT TABLE_NAME, NUM_ROWS, BLOCKS, AVG_ROW_LEN,
TO_CHAR(LAST_ANALYZED, 'MM/DD/YYYY H24:MI:SS')
FROM DBA_TABLES
These are the commands I executed:
Thanks.
Monica
WHERE TABLE_NAME IN ('TABLE1', 'TABLE2');"
'23JUL02 1030', true, 'oracle');
'23JUL02 1030', true, 'oracle');
PS. I'm using Oracle Server Enterprise 8.1.6.3 on Solaris 2.6 platform. Received on Tue Jul 23 2002 - 11:06:34 CEST