after dbm_stats sample_size same as num_rows
From: Beckstrom, Jeffrey <jbeckstrom_at_gcrta.org>
Date: Tue, 2 Mar 2021 18:49:34 +0000
Message-ID: <DM6PR09MB4677C50ADFC6FA47FFB613DEDF999_at_DM6PR09MB4677.namprd09.prod.outlook.com>
Trying dbms_stats with auto sample_size per below code in 19.7 versus specifying of a sample size. Sample size is same as num_rows for all tables. Is this as expected?
Cleveland, Ohio 44113
Date: Tue, 2 Mar 2021 18:49:34 +0000
Message-ID: <DM6PR09MB4677C50ADFC6FA47FFB613DEDF999_at_DM6PR09MB4677.namprd09.prod.outlook.com>
Trying dbms_stats with auto sample_size per below code in 19.7 versus specifying of a sample size. Sample size is same as num_rows for all tables. Is this as expected?
dbms_stats.gather_table_stats(
ownname => obj_rec.owner,
tabname => obj_rec.table_name,
method_opt =>
'for all indexed columns size 1 ',
estimate_percent => dbms_stats.auto_sample_size,
cascade => true,
block_sample => true,
degree => dbms_stats.auto_degree);
Jeffrey Beckstrom
Greater Cleveland Regional Transit Authority
1240 W. 6th Street
Cleveland, Ohio 44113
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Mar 02 2021 - 19:49:34 CET
