rounded card notes from AskTom

本文探讨了数据库执行计划中rounded cardinality的概念及其与original cardinality的区别,并详细对比了autotrace与explain plan的不同之处,包括变量绑定、类型转换等方面。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Note 1:What is a rounded cardinality?

rounded card是执行计划时的预测数值

original card是对象实际的原始的数值

Note 2: auto trace和explain plan有哪些区别:

  a) explain plan does not bind variable peek, a real query would.

b) explain plan sees all binds as varchar2's - in real life they are numbers, dates, varchar2's and 
so on.  Hence, implicit conversions may or may not be observed by explain plan that would be 
observed in real life.
c) explain plan does a hard parse, uses the statistics/dynamic samples that are IN PLACE RIGHT NOW. 
 A query that was run for real "a little while ago" or "a little while from now" might see 
different inputs
d) explain plan uses the current operational environment to come up with a plan.  You might be 
explaining in a FIRST_ROWS session, whereas the query was actually executed in a ALL_ROWS session 
(or any one of the optimizer parameters could be different)
e) any combination of a, b, c, d...
 
 
 
 

http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:63445044804318

转载于:https://www.cnblogs.com/helloolduncle/archive/2011/11/24/2262314.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值