摘要: 一、引言: 我们随便执行一条查询语句,并打开autotrace: 1 SQL> set autotrace traceonly; 2 SQL> select * from emp; 3 4 14 rows selected. 5 6 7 Execution Plan 8 ---------------------------------------------------------- 9 Plan hash value: 395616093210 11 ---------------------------------------------------------------- 阅读全文
posted @ 2012-12-24 22:19 I’m Me! 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 一、实验说明:操作系统:rhel 5.4 x86 数据库:Oracle 11g R2二、操作步骤: 2.1、首先创建一个表t_btree,并创建B-Tree索引,索引键是object_name:1 SQL> create table t_btree as select * from dba_objects;2 3 Table created.4 5 SQL> create index ind_btree on t_btree(object_name);6 7 Index created. 接着是执行下面的查询语句两次: 1 SQL> set linesize 150; 2 S 阅读全文
posted @ 2012-12-24 16:31 I’m Me! 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 一、实验说明: 操作系统:rhel 5.4 x86 数据库:Oracle 11g R2二、操作步骤: 首先创建一张t_btree表,并建立B-Tree索引,索引键是status:1 SQL> create table t_btree as select * from dba_objects;2 3 Table created.4 5 SQL> create index status_btree on t_btree(status);6 7 Index created. 执行两次下面的查询语句,并显示执行计划: 1 SQL> set autotrace traceonly; 2 阅读全文
posted @ 2012-12-24 15:14 I’m Me! 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 一、实验说明:操作系统:rhel 5.4 x86 数据库:Oracle 11g R2 实验说明:该实验是为了说明B-Tree索引性能优于BitMap索引的情况。二、实验操作: 首先创建一张t_btree表,并建立B-Tree索引,索引键是object_id:1 SQL> create table t_btree as select * from dba_objects;2 3 Table created.4 5 SQL> create index ind_tree on t_btree(object_id);6 7 Index created. 执行两次下面的查询语句,并显示执行计 阅读全文
posted @ 2012-12-24 14:07 I’m Me! 阅读(1173) 评论(0) 推荐(0) 编辑