10.1.0.2 的dbsnmp使用者的session一直在db file sequenal read
10.1.0.2 的dbsnmp使用者的session一直在db file sequenal read
sql語句為:
insert into mgmt_db_size_gtt select tablespace_name,NVL(sum(bytes)/1048576, 0) sz from sys.dba_free_space group by tablespace_name
原來檢視本身有問題。
以下是10.1.0.2下檢視部分內容:
...
select /*+ ordered use_nl(u) use_nl(fi) */
ts.name, fi.file#, u.ktfbuebno,
u.ktfbueblks * ts.blocksize, u.ktfbueblks, u.ktfbuefno
from sys.recyclebin$ rb, sys.ts$ ts, sys.x$ktfbue u, sys.file$ fi
where ts.ts# = u.ktfbuesegtsn
and u.ktfbuesegtsn = fi.ts#
and u.ktfbuesegfno = fi.relfile#
and u.ktfbuesegtsn = rb.ts#
and u.ktfbuesegfno = rb.file#
and u.ktfbuesegbno = rb.block# and ts.bitmapped <> 0 and ts.online$ in (1,4) and ts.contents$ = 0
...
以下是10.2.0.2下檢視部分內容:
...
union all
select /*+ ordered use_nl(u) use_nl(fi) */
ts.name, fi.file#, u.ktfbuebno,
u.ktfbueblks * ts.blocksize, u.ktfbueblks, u.ktfbuefno
from sys.recyclebin$ rb, sys.ts$ ts, sys.x$ktfbue u, sys.file$ fi
where ts.ts# = rb.ts#
and rb.ts# = fi.ts#
and rb.file# = fi.relfile#
and u.ktfbuesegtsn = rb.ts#
and u.ktfbuesegfno = rb.file#
and u.ktfbuesegbno = rb.block# and ts.bitmapped <> 0 and ts.online$ in (1,4) and ts.contents$ = 0
union all
...
導致兩個檢視執行計劃不同,第一種執行計劃出現偏差。
[@more@]來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/112417/viewspace-977668/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 等待事件db file sequential read、db file scattered read和direct read的區別事件
- 解決db file sequential read與db file scattered read
- db file scattered read與事件db file sequential read相類似(轉)事件
- db file sequential read事件的發生事件
- Oracle:db file scattered readOracle
- 事件:db file scattered read事件
- 消除11.2上的db file parallel readParallel
- db file scattered read等待事件事件
- db file sequential read等待事件事件
- 【等待事件】db file sequential read事件
- 【等待事件】db file scattered read事件
- db file sequential read 詳解
- 非空閒的等待事件-db file scattered read事件
- DB_FILE_MULTIBLOCK_READ_COUNT的設定BloC
- db file sequential read及優化優化
- data file int write和db file sequential read個人想法
- 詳解 db file sequential read 等待事件事件
- High Waits on 'Db File Sequential Read'AI
- Waiting Too Frequently for 'db file sequential read'AI
- oracle wait event之db file sequential readOracleAI
- oracle 10.1.0.2庫的oe使用者Oracle
- 0322理解db file parallel read等待事件2Parallel事件
- 0316理解db file parallel read等待事件Parallel事件
- tatspack之十二-db file scattered read-DB檔案分散讀取
- 關於db_file_multiblock_read_count引數的設定BloC
- oracle 10g的db_file_multiblock_read_count引數Oracle 10gBloC
- oracle之 db file sequential read等待事件優化思想Oracle事件優化
- 非空閒等待事件之:db file scattered read(轉)事件
- 何時會發生db file sequential read等待事件?事件
- db file sequential read wait event等待事件之二AI事件
- 同一個資料塊的db file sequential read,說明了什麼?
- 【TUNE_ORACLE】等待事件之IO等待“db file sequential read”Oracle事件
- 【TUNE_ORACLE】等待事件之IO等待“db file scattered read”Oracle事件
- Oracle中db_file_multiblock_read_count引數探究OracleBloC
- 找出導致db file scattered read等待事件發生的SQL及其執行計劃事件SQL
- DB_FILE_MULTIBLOCK_READ_COUNT引數和區間尺寸的設定問題BloC
- Oracle SYS使用者無法設定session級別的read onlyOracleSession
- 【kingsql分享】何時出現生db file sequential read等待事件SQL事件