select /*+ gather_plan_statistics */ distinct dname, decode( d.deptno, 10, (select count(*) from scott.emp where deptno = 10), 20, (select count...
分类:
其他好文 时间:
2015-01-12 16:26:33
阅读次数:
153
解释计划 与 执行计划的 区别随着可以得到解释计划输出的开发工具, 比如 toad 的普遍使用, 生成解释计划就变的相当简单. 而不简单的是得到执行计划.解释计划EXPLAIN PLAN 用来显示优化器为SQL语句所选择的执行计划. 你需要了解一件事, 当你得到了解释计划输出的时候, 你其实是得到了...
分类:
数据库 时间:
2015-01-12 16:21:21
阅读次数:
157
EXPLAIN PLAN 和 AUTOTRACE 都可以查看执行计划。 值得一提的是:前者只是优化器通过读取数据字典的统计信息做出'最佳'访问路径判断,并没有真正去执行语句;后者是实际去执行了SQL语句,同时把访问记录数、执行计划、统计信息等打印出来。
下面粘出实验结果加以说明,注意对比两者的耗时:
SQL> CONNECT /AS SYSDBA
Connected.SQL> SET ...
分类:
其他好文 时间:
2015-01-12 09:26:48
阅读次数:
135
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan...
分类:
其他好文 时间:
2015-01-05 07:02:29
阅读次数:
229
Phase 0: Make a plan You must first decide what steps you’re going to have in your process. It sounds simple (in fact, all of this sounds simple), and...
分类:
其他好文 时间:
2015-01-03 21:00:10
阅读次数:
146
查询优化手段和gather_plan_statistics hint:
在10g以后我们可以通过利用gather_plan_statistics提示来了解更多的SQL执行统计信息,具体使用方法如下:
如果在statistics_level参数设置为ALL,或者执行的sql使用了gather_plan_statistics hint,则在sql执行后,会在v$sql_plan_statistic...
分类:
数据库 时间:
2014-12-31 13:10:45
阅读次数:
236
cannot fetch plan for SQL_ID...
分类:
数据库 时间:
2014-12-30 23:39:47
阅读次数:
303
OpenDrive
注册地址:
https://www.opendrive.com/user_account/signup.php?action=new_acc&plan=1&lang=zhhans
在右侧填写注册信息注册新账户,就可以注册了,如下图所示:
OpenDrive提供5G免费的存储空间,每天最多1G的下载流量。OpenDr...
分类:
其他好文 时间:
2014-12-30 22:12:37
阅读次数:
220
"I need a project plan by tomorrow morning." As project managers, that's what we hear. But we know that what the boss usually means is that s/he wants...
分类:
其他好文 时间:
2014-12-29 18:17:58
阅读次数:
159
1)select*fromcnbs_security_role_menuforupdate;2)oracle中游标的使用:http://www.cnblogs.com/sc-xx/archive/2011/12/03/2275084.htmldeclare--类型定义cursorc_jobisselectcombine_no,plan_code,flagfromrate_combinewhereplan_code=‘C01‘andrownum<10;--定义一个游标变..
分类:
数据库 时间:
2014-12-29 15:37:27
阅读次数:
290