首页
技术基础
备份恢复
SQL优化
诊断案例
BLOG
留言板
服务
生活
网摘
阅读
下载
墨天轮
English
eygle.com - 留言簿 - 发表留言 - Powered by eYgLe.Com
返回留言簿
删 除 留 言
管理密码:
请输入管理密码, 只有版主才能删除留言.
编 辑 留 言
管理密码:
请输入管理密码, 只有版主才能编辑留言.
昵称:
性别:
帅哥
美女
不告诉你
Email:
来自:
QQ:
主页:
信息图标: ( 随机 )
BB 代码:
字体
宋体
黑体
隶书
楷体
幼圆
Arial
颜色
天蓝
品蓝
蓝色
深蓝
橙色
橙红
深红
红色
砖红
暗红
绿色
灰绿
海绿
粉红
果红
桃红
紫色
紫蓝
棕木
沙褐
土黄
深褐
土绿
灰色
大小
1号
2号
3号
4号
5号
留言给(谁?):
内容:
--以下的测试在10g的10.2.0.4和11.1.0.6下测试 --修改参数 此时 OPTIMIZER_FEATURES_ENABLE 和版本号相同 alter system set query_rewrite_enabled=true; alter system set star_transformation_enabled=true ; alter system set optimizer_secure_view_merging=true; alter system set cursor_sharing =force --创建一个表 drop table agfj_test_outline; create table agfj_test_outline ( id number(10),id2 number(10),content1 varchar2(1000)); --在表中插入50000条数据 提交 insert into agfj_test_outline select rownum,rownum,lpad('*',1000,'*') from dba_objects a,dba_objects b where rownum<=500000; commit; --创建索引 create index idx_agfj_test_outline on agfj_test_outline(id); --查看 以下sql语句执行方案 由于 字段id此时可以是NULL 不会索引扫描 sql语句全表扫描 select count(*) from agfj_test_outline --创建全表扫描的执行大纲 drop outline ol1; create or replace outline ol1 for category ol_category on select count(*) from agfj_test_outline;
Copyright © 2003~2012
eygle.com
All Rights Reserved.
Powered by:
www.eygle.com