解決db file sequential read與db file scattered read
1.根據收集的等待事件,分析是那些物件以及對應的sql。
2.確定是那些物件,執行如下:
SELECT segment_name, partition_name, p1, p2
FROM dba_extents, wait1
WHERE wait1.p2 BETWEEN block_id AND (block_id + blocks - 1)
AND file_id = wait1.p1
ORDER BY segment_name
3.確定執行的sql語句,執行如下:
SELECT hash_value, address, piece, sql_text
FROM v$sqltext
WHERE hash_value IN (SELECT DISTINCT sql_hash_value
FROM wait1)
ORDER BY hash_value, piece;
SELECT hash_value, address, piece, sql_text
FROM v$sqltext
WHERE hash_value = :1
ORDER BY hash_value, piece;
注意這個有可能一些已經不在shared pool。
4.另外透過這個指令碼也可以確定物件,缺點這個塊一定要讀入sga。
SELECT DISTINCT a.object_name, a.subobject_name
FROM dba_objects a, SYS.x_$bh b
WHERE (a.object_id = b.obj OR a.data_object_id = b.obj)
AND b.file# = :p1
AND b.dbablk = :p2 ;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-82824/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- db file scattered read與事件db file sequential read相類似(轉)事件
- 等待事件db file sequential read、db file scattered read和direct read的區別事件
- db file sequential read 詳解
- Oracle:db file scattered readOracle
- 事件:db file scattered read事件
- db file scattered read等待事件事件
- 【等待事件】db file scattered read事件
- db file sequential read等待事件事件
- 【等待事件】db file sequential read事件
- 詳解 db file sequential read 等待事件事件
- db file sequential read及優化優化
- db file sequential read事件的發生事件
- High Waits on 'Db File Sequential Read'AI
- data file int write和db file sequential read個人想法
- Waiting Too Frequently for 'db file sequential read'AI
- oracle wait event之db file sequential readOracleAI
- 非空閒的等待事件-db file scattered read事件
- tatspack之十二-db file scattered read-DB檔案分散讀取
- 非空閒等待事件之:db file scattered read(轉)事件
- oracle之 db file sequential read等待事件優化思想Oracle事件優化
- 何時會發生db file sequential read等待事件?事件
- db file sequential read wait event等待事件之二AI事件
- 【TUNE_ORACLE】等待事件之IO等待“db file scattered read”Oracle事件
- 【TUNE_ORACLE】等待事件之IO等待“db file sequential read”Oracle事件
- 【kingsql分享】何時出現生db file sequential read等待事件SQL事件
- 同一個資料塊的db file sequential read,說明了什麼?
- 消除11.2上的db file parallel readParallel
- 等待事件--db file scattered reads事件
- 等待事件--db file sequential reads事件
- 找出導致db file scattered read等待事件發生的SQL及其執行計劃事件SQL
- control file sequential read等待事件事件
- oracle等待事件2構造一個DB File Sequential Read等待事件和構造一個Direct Path ReadOracle事件
- 0322理解db file parallel read等待事件2Parallel事件
- 0316理解db file parallel read等待事件Parallel事件
- DB_FILE_MULTIBLOCK_READ_COUNT的設定BloC
- Oracle中db_file_multiblock_read_count引數探究OracleBloC
- 關於db_file_multiblock_read_count引數的設定BloC
- oracle 10g的db_file_multiblock_read_count引數Oracle 10gBloC