- 浏览: 1132509 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (411)
- Java Foundation (41)
- AI/机器学习/数据挖掘/模式识别/自然语言处理/信息检索 (2)
- 云计算/NoSQL/数据分析 (11)
- Linux (13)
- Open Source (12)
- J2EE (52)
- Data Structures (4)
- other (10)
- Dev Error (41)
- Ajax/JS/JSP/HTML5 (47)
- Oracle (68)
- FLEX (19)
- Tools (19)
- 设计模式 (4)
- Database (12)
- SQL Server (9)
- 例子程序 (4)
- mysql (2)
- Web Services (4)
- 面试 (8)
- 嵌入式/移动开发 (18)
- 软件工程/UML (15)
- C/C++ (7)
- 架构Architecture/分布式Distributed (1)
最新评论
-
a535114641:
LZ你好, 用了这个方法后子页面里的JS方法就全不能用了呀
页面局部刷新的两种方式:form+iframe 和 ajax -
di1984HIT:
学习了,真不错,做个记号啊
Machine Learning -
赵师傅临死前:
我一台老机器,myeclipse9 + FB3.5 可以正常使 ...
myeclipse 10 安装 flash builder 4.6 -
Wu_Jiang:
触发时间在将来的某个时间 但是第一次触发的时间超出了失效时间, ...
Based on configured schedule, the given trigger will never fire. -
cylove007:
找了好久,顶你
Editable Select 可编辑select
Oracle: 三个内置的性能工具包 Explain plan、Autotrace、Tkprof:
http://vitas08xy.blog.sohu.com/108168502.html
Oracle EXPLAIN PLAN 执行计划
Using EXPLAIN PLAN:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/ex_plan.htm#PFGRF009
通过分析SQL语句的执行计划优化SQL(总结):
http://www.itpub.net/thread-478999-1-11.html#
Oracle's explain plan:
http://www.adp-gmbh.ch/ora/explainplan.html
Oracle执行计划解释:
http://space.itpub.net/14075938/viewspace-471205
怎样看懂Oracle的执行计划:
http://hi.baidu.com/edeed/blog/item/73c46538d2614d2796ddd864.html
原文:http://kr.forums.oracle.com/forums/thread.jspa?messageID=4537207 以后再找最初的原文
SQLPlus中查看解释计划:
关于dbms_xplan.display:
dbms_xplan是SYS用户的一个package,display是该package下的一个function。
TKPROF
关于tkprof:
TKPROF使用实例:
http://www.blogjava.net/wxqxs/archive/2009/04/12/265343.html
使用TKPROF的一个例子:
http://unix-cd.com/vc/www/16/2010-09/16229.html
Oracle alert.log这个文件放在哪里?
Unix: $ORACLE_BASE/admin/sid/bdump下
Windows: %ORACLE_BASE%/admin/sid/bdump下
另外trace文件在udump文件夹下
Oracle Table Access Methods:
http://www.remote-dba.net/t_op_sql_table_access.htm
How to avoid the full table scan:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:9422487749968
How to fetch all the records :
http://forums.oracle.com/forums/thread.jspa?threadID=447344
There's no setting to fetch all records. You wouldn't like SQL Developer to fetch for minutes on big tables anyway.
If, for 1 specific table, you want to fetch all records, you can do Control-End in the results pane to go to the last record. You could time the fetching time yourself, but that will vary on the network speed and congestion, the program (SQL*Plus will be quicker than SQL Dev because it's more simple), etc.
Now, what I think you really want here, is getting the execution time. If you really want to analyze the query's performance, you'd have to use the explain plan, autotrace and tkprof (see the manual for tuning and performance).
To make us life easier, the makers of SQL Developer included support of the explain plan, and as of v1.1, autotrace!
I'm sure you've got enough to work things out from here...
http://vitas08xy.blog.sohu.com/108168502.html
Oracle EXPLAIN PLAN 执行计划
Using EXPLAIN PLAN:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/ex_plan.htm#PFGRF009
通过分析SQL语句的执行计划优化SQL(总结):
http://www.itpub.net/thread-478999-1-11.html#
引用
读笔:
1 初始化参数optimizer_mode::
http://blog.csdn.net/whqcfp/archive/2006/12/05/1430653.aspx google more
2 Oracle 绑定变量:
http://www.ezloo.com/2009/04/oracle_bind_variable.html google more
ACCESS PATH(访问路径/存取路径):
http://space.itpub.net/6517/viewspace-145522
http://lzfhope.blog.163.com/blog/static/6363992201072465310995/
1 初始化参数optimizer_mode::
http://blog.csdn.net/whqcfp/archive/2006/12/05/1430653.aspx google more
2 Oracle 绑定变量:
http://www.ezloo.com/2009/04/oracle_bind_variable.html google more
ACCESS PATH(访问路径/存取路径):
http://space.itpub.net/6517/viewspace-145522
http://lzfhope.blog.163.com/blog/static/6363992201072465310995/
Oracle's explain plan:
http://www.adp-gmbh.ch/ora/explainplan.html
Oracle执行计划解释:
http://space.itpub.net/14075938/viewspace-471205
怎样看懂Oracle的执行计划:
http://hi.baidu.com/edeed/blog/item/73c46538d2614d2796ddd864.html
原文:http://kr.forums.oracle.com/forums/thread.jspa?messageID=4537207 以后再找最初的原文
SQLPlus中查看解释计划:
SQL> explain plan for <需做解释计划的语句>; Explained SQL> select * from table(dbms_xplan.display);
关于dbms_xplan.display:
dbms_xplan是SYS用户的一个package,display是该package下的一个function。
TKPROF
关于tkprof:
引用
You can run the TKPROF program to format the contents of the trace file and place the output into a readable output file. Optionally, TKPROF can also:
Determine the execution plans of SQL statements
Create a SQL script that stores the statistics in the database
TKPROF reports each statement executed with the resources it has consumed, the number of times it was called, and the number of rows which it processed. This information lets you easily locate those statements that are using the greatest resource. With experience or with baselines available, you can assess whether the resources used are reasonable given the work done.
Determine the execution plans of SQL statements
Create a SQL script that stores the statistics in the database
TKPROF reports each statement executed with the resources it has consumed, the number of times it was called, and the number of rows which it processed. This information lets you easily locate those statements that are using the greatest resource. With experience or with baselines available, you can assess whether the resources used are reasonable given the work done.
TKPROF使用实例:
http://www.blogjava.net/wxqxs/archive/2009/04/12/265343.html
使用TKPROF的一个例子:
http://unix-cd.com/vc/www/16/2010-09/16229.html
Oracle alert.log这个文件放在哪里?
Unix: $ORACLE_BASE/admin/sid/bdump下
Windows: %ORACLE_BASE%/admin/sid/bdump下
另外trace文件在udump文件夹下
Oracle Table Access Methods:
http://www.remote-dba.net/t_op_sql_table_access.htm
How to avoid the full table scan:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:9422487749968
How to fetch all the records :
http://forums.oracle.com/forums/thread.jspa?threadID=447344
引用
There's no setting to fetch all records. You wouldn't like SQL Developer to fetch for minutes on big tables anyway.
If, for 1 specific table, you want to fetch all records, you can do Control-End in the results pane to go to the last record. You could time the fetching time yourself, but that will vary on the network speed and congestion, the program (SQL*Plus will be quicker than SQL Dev because it's more simple), etc.
Now, what I think you really want here, is getting the execution time. If you really want to analyze the query's performance, you'd have to use the explain plan, autotrace and tkprof (see the manual for tuning and performance).
To make us life easier, the makers of SQL Developer included support of the explain plan, and as of v1.1, autotrace!
I'm sure you've got enough to work things out from here...
发表评论
-
Oracle: minus | in | exists
2012-09-05 13:49 1405解释及例子: MINUS Query: http://www. ... -
一个奇怪的Oracle sql问题
2011-01-13 16:13 1315select A.M,B.N from Table1 A ... -
Oracle Analytic Functions:RANK, DENSE_RANK, FIRST and LAST;PARTITION BY
2010-12-13 17:02 1282Oracle/PLSQL: Rank Function: ht ... -
Oracle Analytic Functions:RANK, DENSE_RANK, FIRST and LAST
2010-12-13 17:02 1226Oracle/PLSQL: Rank Function: ht ... -
Oracle:Collections Records Type %TYPE %ROWTYPE
2010-11-09 22:27 1237PL/SQL Collections and Records: ... -
Oracle Cursor 游标
2010-11-09 20:44 3006Oracle中Cursor介绍: http://www.ite ... -
Oracle 锁机制
2010-09-19 20:12 3687Oracle多粒度封锁机制研究: http://www.itp ... -
Oracle Data Dictionary 数据字典
2010-09-19 16:44 1493Oracle数据字典查阅: http://download.o ... -
Oracle Sign Function
2010-09-17 14:52 1443Oracle/PLSQL: Sign Function: ht ... -
Oracle Built-In Functions: Next_Day and Last_Day
2010-09-16 17:09 1493next_day(date,char): 它用来返回从第一个 ... -
Oracle Procedure 存储过程
2010-09-16 08:36 1324Oracle/PLSQL: Creating Procedur ... -
Oracle Exception Handle 异常处理
2010-09-15 13:00 2046Handling PL/SQL Errors: http:// ... -
关于Oracle数据和对象的导入导出 [转]
2010-09-14 10:25 1232关于Oracle数据和对象的导入导出 [转]: http:// ... -
Oracle jobs(DBMS_JOB and DBMS_SCHEDULER)
2010-07-21 14:14 7684写PL/SQL procedure的时候,一定要写的够健壮、够 ... -
Oracle 各种注释
2010-07-20 14:19 3581为SQL语句添加注释: http://do ... -
Oracle 监听 本地Net服务名 配置
2010-07-20 10:32 1293Oracle数据库配置: http://shupili1410 ... -
[Oracle]Difference between a database and an instance(数据库 实例 区别)
2010-07-20 09:31 1462Difference between a database a ... -
Oracle Bulk Collect
2010-07-16 10:03 1348On BULK COLLECT: http://www.ora ... -
Oracle/PLSQL: FOR Loop 循环语句
2010-07-15 16:43 9283Oracle/PLSQL: FOR Loop: http:// ... -
Oracle Trigger 触发器
2010-06-09 16:37 1785备忘速查: oracle的update insert dele ...
相关推荐
NULL 博文链接:https://babydeed.iteye.com/blog/1567772
oracle执行计划,oracle explain plan,在ORACLE数据库中,需要对SQL语句进行优化的话需要知道其执行计划,从而针对性的进行调整.ORACLE的执行计划的获得有几种方法,下面就来总结下
详细讲解在Oracle中如何使用explain_plan,值得参考和收藏学习。
NULL 博文链接:https://qidaoxp.iteye.com/blog/758552
Oracle中EXPLAIN PLAN的使用技巧
explain plan interpreting sql 分析
详细介绍了oracle解释计划的原理,对理解oracle解释计划非常有用。
1.如何分析SQL语句 2.选用适合的ORACLE优化器 3.用EXPLAIN PLAN 分析SQL语句 4.使用TKPROF 工具来查询SQL性能状态 5.表分区的应用
6.sql trace分析工具--TKPROF详细讲解 7.V$SQL视图详解加几个实例 8.autotrace验证压缩表性能 9.autotrace验证消除子查询后的性能 10.基于基本的优化CBO 11.如何统计数据库数据 12.Oracle如何统计操作系统数据 13./*...
1. 预估执行计划 – Explain PlanExplain plan以SQL语句作为输入,得到这条SQL语句的执行计划,并将执行计划输出存储到计划表中。 首先,在你要执行的SQL语句前加explain plan for,此时将生成的执行计划存储到计划...
本工具是用 Java 开发的、专门用于 Oracle 数据库操作的一种图形界面工具: 多线程、多连接、支持 PL/SQL、功能实用、操作简便,能运行于所有平台包括 Windows、Linux 及 Unix,勿需安装 Oracle 客户端,仅 2.8 MB ...
SQL语句性能分析之explain
MySQL 性能优化 Explain ,MySQL 性能优化 ExplainMySQL 性能优化 ExplainMySQL 性能优化 ExplainMySQL 性能优化 ExplainMySQL 性能优化 ExplainMySQL 性能优化 ExplainMySQL 性能优化 Explain
query processing,Explain plan,autotrace
非常全面的ORACLE SQL性能优化介绍及实例:优化器的选择、共享SQL语句、访问Table的方式、减少访问数据库的次数、使用DECODE函数、减少对表的查询、通过内部函数提高SQL效率、用NOT EXISTS替代NOT IN、使用EXPLAIN ...
(2)“Explain Plan” 按钮能快速地显示语句的执行计划; (3)“Export” 按钮能将SQL编辑器中的 SELECT 语句块直接导出为 XLS /CSV /INSERT SQL /HTML /XML 等格 式,方便于数据移植、备份、打印及存档等; (4)...
(2)“Explain Plan” 按钮能快速地显示语句的执行计划; (3)“Export” 按钮能将SQL编辑器中的 SELECT 语句块直接导出为 XLS /CSV /INSERT SQL /HTML /XML 等格式,方便于数据移植、备份、打印及存档等; (4)...
Explain.solr.pl 是一个 Solr 的可视化工具,用来帮助你分析为什么一个文档会出现在搜索结果列表中。 支持 Solr: 3.0 3.1 3.2 3.3 3.4 3.5 标签:Explain
Explain命令在解决数据库性能上是第一推荐使用命令,大部分的性能问题可以通过此命令来简单的解决,Explain可以用来查看SQL语句的执行效 果,可以帮助选择更好的索引和优化查询语句,写出更好的优化语句。...
oracle_fdw是PostgreSQL扩展,提供了Foreign Data Wrapper,可以轻松,高效地访问Oracle数据库,包括下推WHERE条件和所需的列以及全面的EXPLAIN支持。 本自述包含以下部分: oracle_fdw由Laurenz Albe编写,由...