Performance Improvement Tips for Oracle on UNIX

装萌丶二货少年

装萌丶二货少年

2016-01-29 14:49

Performance Improvement Tips for Oracle on UNIX,Performance Improvement Tips for Oracle on UNIX

TIMED_STATISTICS = true

Restart your database.  Run your application. Run tkprof against the tracefile created by your application:

tkprof EXPLAIN=username/passwd

Look at formatted output of trace command and make sure that your

      SQL statement is using indexes correctly.  Refer to DBA guide for a list

      of rules that the oracle optimizer uses when choosing a path for a SQL statement. 

                 <<<<<< OUTPUT OF TKPROF FILE  >>>>>>> 

count   = number of times OPI procedure was executed 

cpu     = cpu time executing in hundredths of seconds 

elap    = elapsed time executing in hundredths of secs 

phys    = number of physical reads of buffers (from disk) 

cr      = number of buffers gotten for consistent read 

cur     = number of buffers gotten in current mode (usually for update) 

rows    = number of rows processed by the OPI call 

(本文来源于图老师网站,更多请访问http://m.tulaoshi.com)

===========================================================

select * from emp where empno=7369  

            count     cpu    elap    phys      cr     cur    rows 

Parse:          1       0       0       0       0       0 

Execute:        1       0       0       0       0       2       0 

Fetch:          1       0       0     219     227       0       2 

Execution plan: 

TABLE ACCESS (FULL) OF EMP 

===========================================================

select empno from emp where empno=7934  

            count     cpu    elap    phys      cr     cur    rows 

Parse:          2       0       0       0       0       0 

Execute:        2       0       0       0       0       2       0 

(本文来源于图老师网站,更多请访问http://m.tulaoshi.com)

Fetch:          2       0       0       0&nb

展开更多 50%)
分享

猜你喜欢

Performance Improvement Tips for Oracle on UNIX

电脑网络
Performance Improvement Tips for Oracle on UNIX

Monitor Oracle Resource Consumption in UNIX

电脑网络
Monitor Oracle Resource Consumption in UNIX

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

Unix到Oracle的日期转换

电脑入门
Unix到Oracle的日期转换

oracle的一些tips技巧

编程语言 网络编程
oracle的一些tips技巧

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

Unix环境下Oracle数据库优化心得介绍

编程语言 网络编程
Unix环境下Oracle数据库优化心得介绍

Performance Stretching教你在家做锻炼

手机软件 应用软件
Performance Stretching教你在家做锻炼

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

Php做的端口嗅探器--可以指定网站和端口

Php做的端口嗅探器--可以指定网站和端口

《侠盗猎车5》次世代版野生动物摄影挑战视频攻略

《侠盗猎车5》次世代版野生动物摄影挑战视频攻略
下拉加载更多内容 ↓