空华三界。如风卷烟。 幻影六塵。犹汤沃雪。 廓然無际。唯一真心。
  • 设计索引要思考什么

    2008-04-03 20:16:40   /   Oracle数据库管理

    1。 考虑要包含哪些字段。在unique key上建立索引有利与进行index unique scan对于定义了很多字段的表,如复合索引的建立应包含最常查询的字段,有这样有利与查询使用index full scan和index fast full scan来代替full table scan2。考虑字段在索引中的位置。字段在索引中的位置决定了使用该索引的查询的数据输出顺序。因此按经常出现在order by中字段的顺序来建立索引,有利与避免不必要的排序,减少不必要的I/O3. 考虑索引中字段的DESCEND属性。往往在查询最近的十条记录时会使用倒序,因此正确的设置DE
  • 可用于查找问题的工具

    2008-03-27 21:26:04   /   Oracle数据库管理

    这只是一篇个人小结,还有许多工具没被提到,也许以后会有续篇。希望各位补充指正。1. explain plan: show the explain plan without running the sqlstep:1) @?/rdbms/admin/utlxplan -- to setup plan table2) explain plan set statement_id='xxxx' for select ....advantage:1) doesn't need to run the querydisadvantage:1) can not be used to show the explain plan of other running sessions2) except explain plan, no other useful information is display

数据统计

  • 访问量: 1195
  • 日志数: 950
  • 建立时间: 2008-03-22
  • 更新时间: 2008-04-20

RSS订阅

Open Toolbar