2014年2月28日

Choosing Columns and Expressions to Index

摘要: A key is a column or expression on which you can build an index. Follow these guidelines for choosing keys to index:Consider indexing keys that are used frequently inWHEREclauses.Consider indexing keys that are used frequently to join tables in SQL statements. For more information on optimizing join 阅读全文

posted @ 2014-02-28 09:56 Step-BY-Step 阅读(173) 评论(0) 推荐(0) 编辑

Oracle/PLSQL: Creating Functions

摘要: In Oracle, you can create your own functions.译:在ORACLE中,你可以创建你自己的方法。The syntax for a function is:CREATE [OR REPLACE] FUNCTION function_name [ (parameter [,parameter]) ] RETURN return_datatypeIS | AS [declaration_section]BEGIN executable_section[EXCEPTION exception_section]END [function_name];When yo 阅读全文

posted @ 2014-02-28 08:06 Step-BY-Step 阅读(430) 评论(0) 推荐(0) 编辑

Oracle调优总结(经典实践 重要)

摘要: 转载:http://langgufu.iteye.com/blog/1974211Problem Description:1.每个表的结构及主键索引情况2.每个表的count(*)记录是多少3.对于创建索引的列,索引的类型是什么?count(distinct indexcol)的值是多少?4.最后一次对表进行分析是在什么时间,分析后,是否又对相关表做过大的操作5.索引最后一次rebuild,是在什么时间,此后对表的操作类型又是什么状况?索引中浪费的空间是多少?6.这些表的存储情况,表的存储参数,表空间的类型,存储参数等7.执行该SQL语句时,系统等候的资源是什么? Trace SQL语句的执行 阅读全文

posted @ 2014-02-28 03:41 Step-BY-Step 阅读(7056) 评论(0) 推荐(0) 编辑

导航