EBS 中FND_STATS和dbms_stats区别

Use only FND_STATS or the Gather Schema and Gather Table Statistics Concurrent Programs.

Do NOT USE the analyze or dbms_stats command directly. It is not supported, and results in sub-optimal plans.To execute the corresponding FND_STATS procedures from SQL*Plus to gather CBO stats for one or all schemas, or for a particular table, use the following examples:
# sqlplus apps/
SQL> exec fnd_stats.gather_schema_statistics('MRP'); SQL> exec fnd_stats.gather_schema_statistics('ALL'); SQL> exec fnd_stats.gather_table_stats('MRP','MRP_FORECAST_DATES');

为什么要使用FND_STATS , 而不是DBMS_STATS . 主要有以下的考虑:

fnd_stats 是 wrapper around dbms_stats , dbms_stats 是数据库提供的包。

fnd_stsats 只能用于EBS, dbms_stats 通用于数据库 。

fnd_stats 可以从某个failed / stopped point 重新开始,dbms_stats 在10g才有这个特性

fnd_stats 会根据FND_HISTOGRAM_COLS 中所列的行自动创建 histograms, dbms_stats 需要手工创建

fnd_stats 从11.5.10开始,可以为stale or empty stats收集统计信息,变化的threshold可以被改变(default 10%), dbms_stats 在11g以前,对于staleness的变化阀值一定是 10% .

参考

http://practicalappsdba.wordpress.com/2008/04/04/fnd_stats-vs-dbms_stats/

翻译的不知道对不对, 欢迎指正,补充。

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-732185/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/35489/viewspace-732185/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值