select * from table(dbms_xplan.display_cursor(sql_id,0));
收集数据库信息需要收集直方图信息.
Oracle 在自动收集直方图信息时只对那些使用过的列(即在where 条件中出现的列)收集直方图统计信息。Oracle会在SYS.COL_USAGE$中记录各个表中各列使用情况
select object_id from user_objects where object_name= 'T'
90196
select name ,intcol# from sys.col$ where obj#=90196
select obj#,intcol#,equality_preds from sys.col_usage$ where obj#= 90196
select
column_name,density,num_buckets,histogram
from
dba_tab_col_statistics
where
table_name=
'T'
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8568259/viewspace-2102586/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/8568259/viewspace-2102586/