Performance Improvement Tips for Oracle on UNIX

2016-01-29 14:49 5 1 收藏

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

【 tulaoshi.com - Oracle教程 】

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 

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

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 

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

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 

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

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 

Fetch:          2       0       0       0&nb

来源:https://www.tulaoshi.com/n/20160129/1494372.html

延伸阅读
用户经常需要备份计算机系统中的数据,为了节省存储空间,常常将备份文件进行压缩。下面分别介绍备份与压缩的命令 用户经常需要备份计算机系统中的数据,为了节省存储空间,常常将备份文件进行压缩。下面分别介绍备份与压缩的命令。tar命令tar可以为文件和目录创建档案。利用tar,用户可以为某一特定文件创建档案(备份文件),也可以在档案中...
// Set example: procedure  TForm1.Button1Click(Sender: TObject); begin    // will reset after system start    SetDoubleClickTime(1500); end ; // Get example: procedure  TForm1...
The purpose of this document is to provide a few OS commands for UNIX  operating systems to gather information about Physical Memory (RAM),   swap memory,CPU usage and idle percentage, whether lots of processes  are in the process run queue and whether too much paging and swapping&n...
秋季宝宝皮肤干燥能用护肤品吗 Tulaoshi.Com   宝宝 还小,身体的一切机能还没有发育完整,不建议用护肤品。在保持脸部 皮肤 清洁的同时注意室内空气湿度和温度要适宜。随着宝宝月龄的增加,可以选择成分简单,不含香料、酒精,能保持皮肤水分平衡的护肤品,以减少对宝宝皮肤的刺激。 护理宝宝肌肤的...
标签: 婴儿发烧
孩子发烧可能引发脑膜炎吗? Tulaoshi.com 当今世界上有近1/4的孩子生活在重组的家庭里,这意味着有无数的女性要遭受继子女的非难和敌意,悲忿和排斥,原因很简单——“你不是我的亲生母亲!”做孩子继母的12句禁语 其实与继子女们建立良好关系并非难如登天。虽然孩子有时会像小兽一样伸出利爪攻击他人,但他/她毕竟是孩子,过早...

经验教程

24

收藏

48
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部