2020年5月8日
摘要: Oracle trace文件中的一段 PARSING IN CURSOR #140498482538928 len=156 dep=0 uid=0 oct=47 lid=0 tim=45795163585 hv=777087606 ad='207895c70' sqlid='ftqjy1wr52um 阅读全文
posted @ 2020-05-08 23:54 InnoLeo 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 1.开启10046事件 drop table TX1 purge; create table TX1 (x int); set linesize 266 set pagesize 5000 alter system flush shared_pool; alter system flush buff 阅读全文
posted @ 2020-05-08 22:46 InnoLeo 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 索引查询要尽可能的避免回表,如不可避免,要关注聚合因子是否过大,聚合因子过大,回表代价高,产生的bufer 多 第一步,构造有序列x在表"colocated ",无序列x在表"disorganized" --构造有序列x在表"colocated " drop table colocated purg 阅读全文
posted @ 2020-05-08 19:40 InnoLeo 阅读(308) 评论(0) 推荐(0) 编辑
摘要: ROWID访问数据行最快,在实际应用中可以采用 生成测试数据: drop table tx1 purge; create table tx1 as select * from dba_objects; update tx1 set object_id=rownum; commit; set auto 阅读全文
posted @ 2020-05-08 16:57 InnoLeo 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 组合索引与排序 步骤一 构造测试表 drop table TX1 purge; create table TX1 as select * from dba_objects; create index idx_object_id on TX1(owner,object_type); alter tab 阅读全文
posted @ 2020-05-08 14:34 InnoLeo 阅读(531) 评论(0) 推荐(0) 编辑