正德厚生,臻于至善

EBS 19c DB收集统计信息

在db1运行
sqlplus system/manager@PROD
exec dbms_stats.gather_schema_stats(ownname=>'SYS',options=>'GATHER AUTO');
exec dbms_stats.gather_schema_stats(ownname=>'SYSTEM',options=>'GATHER AUTO');
exec dbms_stats.gather_dictionary_stats;
exec dbms_stats.gather_fixed_objects_stats;

--exec dbms_stats.gather_database_stats(estimate_percent=>100,degree=>48,cascade=>true,granularity=>'ALL',no_invalidate=>false);

在db2运行
sqlplus apps/apps@PROD
exec fnd_stats.GATHER_SCHEMA_STATS(schemaname =>'ALL' ,estimate_percent =>'100' ,degree => '48',options =>'GATHER' );

sqlplus apps/apps@PROD
exec fnd_stats.gather_schema_statistics(schemaname=>'ALL',estimate_percent=>dbms_stats.auto_sample_size,degree => '48',options=>'GATHER');
set timing on;
exec fnd_stats.gather_schema_statistics(schemaname=>'ALL',estimate_percent=>dbms_stats.auto_sample_size,degree => '48',options=>'GATHER AUTO');
赞(0) 打赏
未经允许不得转载:徐万新之路 » EBS 19c DB收集统计信息
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏