自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Oracle數(shù)據(jù)庫只讀模式的CACHE BUFFERS CHAINS測試

數(shù)據(jù)庫 Oracle
本文我們主要介紹了Oracle數(shù)據(jù)庫只讀模式的CACHE BUFFERS CHAINS的性能測試的相關(guān)內(nèi)容,希望能夠?qū)δ兴鶐椭?/div>

Oracle數(shù)據(jù)庫只讀模式的CACHE BUFFERS CHAINS測試是本文我們主要要介紹的內(nèi)容,雖然從Oracle 9i里邊引入了只讀模式的CACHE BUFFERS CHAINS,但是在獲取BUFFER LOCK的時候,還是會請求CACHE BUFFERS CHAINS,但是情形沒有8i里邊那么嚴(yán)重了,接下來我們對其進(jìn)行測試。

測試步驟如下:

1.首先建一個表。

 

  1. create table test (a int,b varchar2(20)); 

 

2.往這個表里INSERT 50000行數(shù)據(jù);

 

  1. declare  
  2. i int;  
  3. begin  
  4. for i in 1..50000  
  5. loop  
  6. insert into test values(i,'adsfsafsa');  
  7. end loop;  
  8. end; 

 

3.在A的欄位上創(chuàng)建一個INDEX;

 

  1. create index test_i on test(i); 

 

4.編一個存儲過程;進(jìn)行大量的索引掃描操作

 

  1. create or replace procedure test_k is  
  2. begin  
  3. for i in (select /*+ INDEX(TEST TEST_I) */ * from test where a>20000)  
  4. loop  
  5. null;  
  6. end loop;  
  7. end; 

 

 5.打開2000個會話來執(zhí)行這個存儲過程;

  1. var i number;  
  2. begin  
  3. for j in 1..2000  
  4. loop  
  5. dbms_job.submit(:i,'TEST_K;');  
  6. commit;  
  7. end loop;  
  8. end; 

 

6.查詢等待事情發(fā)現(xiàn)latch: cache buffers chains等待很嚴(yán)重,CPU運大部分時間都運行在SYS模式下.

 

  1. Cpu(s): 16.3%us, 83.7%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st 

 

結(jié)論:就算以只讀模式獲取cache buffers chains LATCH并不能完全解決這個LATCH爭用的問題,只是爭用程度不那么嚴(yán)重了。

關(guān)于Oracle數(shù)據(jù)庫只讀模式的CACHE BUFFERS CHAINS測試的相關(guān)知識就介紹到這里了,希望本次的介紹能夠?qū)δ兴斋@!

【編輯推薦】

  1. Oracle數(shù)據(jù)庫學(xué)習(xí)筆記之表的聯(lián)合查詢
  2. Oracle數(shù)據(jù)庫RMAN不完全恢復(fù)之基于SCN恢復(fù)
  3. Oracle數(shù)據(jù)庫RMAN不完全恢復(fù)之基于時間恢復(fù)
  4. Oracle C#實現(xiàn)Oracle Text全文檢索的簡單例子
  5. Oracle數(shù)據(jù)庫RMAN不完全恢復(fù)之基于日志序列號恢復(fù)

 

責(zé)任編輯:趙鵬 來源: ChinaUnix博客
相關(guān)推薦

2021-12-13 22:59:23

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

2010-04-30 16:34:43

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

2010-04-27 13:49:04

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

2014-07-11 09:48:42

2010-04-15 10:20:18

連接Oracle數(shù)據(jù)庫

2011-08-01 13:28:09

Oracle歸檔模式非歸檔模式

2011-08-24 17:08:28

Oracle數(shù)據(jù)庫歸檔模式

2012-06-28 10:18:01

數(shù)據(jù)庫

2010-04-23 09:23:44

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

2011-05-26 10:30:12

Oracle數(shù)據(jù)庫約束

2015-08-21 12:59:38

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

2011-03-10 13:24:26

2010-08-30 14:31:43

Cache

2011-03-16 08:54:45

Oracle數(shù)據(jù)庫索引

2011-05-19 13:25:14

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

2010-04-22 16:16:35

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

2009-09-02 14:55:19

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

2011-05-26 14:43:49

ORACLE數(shù)據(jù)庫異常處理

2022-04-25 14:41:15

甲骨文數(shù)據(jù)庫機數(shù)據(jù)庫

2010-04-09 10:32:03

Oracle 數(shù)據(jù)庫
點贊
收藏

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