偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

Oracle性能檢測sql語句詳解

數(shù)據(jù)庫 Oracle
Oracle性能檢測sql語句 是我們經(jīng)常用到的,以下的文章主要是介紹Oracle性能檢測sql語句在實際應(yīng)用中的不同之處,以下就是正文的介紹。

以下的文章主要是淺談Oracle性能檢測sql語句 ,我在一個信譽(yù)度很好的網(wǎng)站找到一個關(guān)于Oracle性能檢測sql語句的資料以及相關(guān)代碼的示例,拿出來供大家分享。以下就是文章的詳細(xì)內(nèi)容介紹。

Oracle性能檢測sql語句

1. 監(jiān)控事例的等待

 

  1. select event,sum(decode(wait_Time,0,0,1)) "Prev",  
  2. sum(decode(wait_Time,0,1,0)) "Curr",count(*) "Tot"  
  3. from v$session_Wait  
  4. group by event order by 4;  

 

2. 回滾段的爭用情況

 

  1. select name, waits, gets, waits/gets "Ratio"  
  2. from v$rollstat a, v$rollname b  
  3. where a.usn = b.usn;  

 

3. 監(jiān)控表空間的 I/O 比例

 

  1. select df.tablespace_name name,df.file_name "file",f.phyrds pyr,  
  2. f.phyblkrd pbr,f.phywrts pyw, f.phyblkwrt pbw  
  3. from v$filestat f, dba_data_files df  
  4. where f.file# = df.file_id  
  5. order by df.tablespace_name;  

 

4. 監(jiān)控文件系統(tǒng)的 I/O 比例

 

  1. select substr(a.file#,1,2) "#", substr(a.name,1,30) "Name",  
  2. a.status, a.bytes, b.phyrds, b.phywrts  
  3. from v$datafile a, v$filestat b  
  4. where a.file# = b.file#;  

 

5.在Oracle性能檢測中在某個用戶下找所有的索引

 

  1. select user_indexes.table_name, user_indexes.index_name,
    uniqueness, column_name  
  2. from user_ind_columns, user_indexes  
  3. where user_ind_columns.index_name = user_indexes.index_name  
  4. and user_ind_columns.table_name = user_indexes.table_name  
  5. order by user_indexes.table_type, user_indexes.table_name,  
  6. user_indexes.index_name, column_position;  

 

6. 監(jiān)控 SGA 的命中率

 

  1. select a.value + b.value "logical_reads", c.value "phys_reads",  
  2. round(100 * ((a.value+b.value)-c.value) / (a.value+b.value))
     "BUFFER HIT RATIO"  
  3. from v$sysstat a, v$sysstat b, v$sysstat c  
  4. where a.statistic# = 38 and b.statistic# = 39  
  5. and c.statistic# = 40;  

 

7. 監(jiān)控 SGA 中字典緩沖區(qū)的命中率

 

  1. select parameter, gets,Getmisses , getmisses/
    (gets+getmisses)*100 "miss ratio",  
  2. (1-(sum(getmisses)/ (sum(gets)+sum(getmisses))))*100 "Hit ratio"  
  3. from v$rowcache  
  4. where gets+getmisses <>0  
  5. group by parameter, gets, getmisses;  

 

以上的相關(guān)內(nèi)容就是對Oracle性能檢測sql語句的介紹,望你能有所收獲。

【編輯推薦】

  1. Oracle 字符串split的相關(guān)實際應(yīng)用代碼介紹
  2. Oracle創(chuàng)建Split 與Map 函數(shù)的代碼示例
  3. Oracle索引整理的詳細(xì)描述
  4. Oracle 權(quán)限入門如何管理
  5. Oracle 10G for linux常用命令淺析
責(zé)任編輯:佚名 來源: 互聯(lián)網(wǎng)
相關(guān)推薦

2010-04-13 14:43:37

Oracle性能檢測

2010-04-12 14:22:13

Oracle性能sql語句

2010-04-29 14:06:40

Oracle SQL

2010-11-18 11:08:30

oracle授權(quán)語句

2009-11-16 17:55:58

Oracle SQL語

2010-11-18 10:06:16

Oracle數(shù)據(jù)庫性能

2009-11-16 13:47:35

Oracle SQL語

2009-11-06 17:21:36

驗證Oracle SQ

2009-11-06 17:13:24

Oracle SQL語

2010-04-13 15:04:16

Oracle優(yōu)化

2009-11-05 18:07:33

Oracle導(dǎo)出sql

2010-09-07 11:53:00

SQL語句

2017-03-14 14:38:21

數(shù)據(jù)庫SQL語句集合運算

2010-06-04 10:09:29

Linux 性能檢測

2009-04-09 13:14:09

Oracle分頁查詢CBO

2010-04-06 14:26:41

Oracle復(fù)制表

2010-04-29 12:05:21

Oracle使用SQL

2023-11-15 16:35:31

SQL數(shù)據(jù)庫

2009-01-14 09:28:12

OracleSQL10g

2010-04-20 15:22:34

Oracle SQL
點贊
收藏

51CTO技術(shù)棧公眾號