
oracle 书籍学习笔记
文章平均质量分 78
ForKing_
这个作者很懒,什么都没留下…
展开
-
配置TKPROF
--打开sql_trace--level 的等级 --1 启用标准sql_trace 工具(如同 sql_trace=true)--4 启用sql_trace 并捕捉跟踪文件中的绑定变量值--8 启用sql_trace 并捕捉跟踪文件的等待事件--12 启用sql标准的sql_trace 并不卓绑定变量和等待事件hr@ORCL> alter session set timed_statistics原创 2013-08-21 10:46:26 · 476 阅读 · 0 评论 -
配置runstats tom写的好工具
一、以sys登录进行授权grant select on sys.v_$timer to usernamegrant select on v_$mystat to usenamegrant select on sys.v_$statname to usernamegrant select on sys.v_$latch to username二 安装Runstats包--以userna原创 2013-08-21 10:32:10 · 480 阅读 · 0 评论 -
tkprof各个字段的解释
call count cpu elapsed disk query current rows------- ------ -------- ---------- ---------- ---------- ---------- ----------Parse 1 0.00 0.00原创 2013-08-21 11:16:45 · 495 阅读 · 0 评论 -
oracle 游标处理过程
打开游标:系统会在与这个会话相关的服务器进程的服务器端私有内存中为这个游标分配一个内存结构,也就是用户全局区解析游标:有一条sql语句与这个游标关联。解析后内容(包括执行计划)会被加载到共享池中的library cache。UGA的结构会被更新,以保存指向这个共享游标在库缓存中的位置。定义输出变量:如果sql语句返回数据,必须先定义接受数据的变量。这一点不仅对查询语句很重要对于原创 2013-08-27 23:23:41 · 691 阅读 · 0 评论 -
oracle 子查询解嵌套和谓词推入(sqlsubquery unnest and pre_push)
Subquery Unnesting In subquery unnesting, the optimizer transforms a nested queryinto an equivalent join statement, and then optimizes the join. This transformationenables the optimizer to ta原创 2013-08-27 23:32:14 · 2038 阅读 · 0 评论 -
过程化到基于集合的思想
案例:produce a list of all employees who spent the same number of years in each job they held within the company during their employment。hr@ORCL> select distinct employee_id 2 from job_history j1原创 2013-09-10 22:16:37 · 512 阅读 · 0 评论