dポイントプレゼントキャンペーン実施中!

Windows版 Oracle 9iで、下記のSQLを実行した値で質問なのですが・・・
<<SQL>>
Select name, value from V$SYSSTAT where name like 'table%';
<<SQL結果>>
NAME VALUE
---------------------------------------------------------------- ----------
table scans (short tables) 41298
table scans (long tables) 171
table scans (rowid ranges) 0
table scans (cache partitions) 0
table scans (direct read) 0
table scan rows gotten 151275758
table scan blocks gotten 11959596
table fetch by rowid 23079146
table fetch continued row 1048
table lookup prefetch client count 0

Webで検索すると、
Full Scan率は「table scans (long tables) / ( table scans (short tables)+table scans (long tables) )」とあったり、
「table fetch by rowid < table scan rows gotten」は頻繁にFull Scanしている状態とあって、「table scan rows gotten」がFull Scanの行数に思えるですが、実測した下記の値からは違うように思えるのですが、どのように解釈すれば良いのでしょうか?
table scans (short tables) 41298
table scans (long tables) 171
----
table scan rows gotten 151275758
table fetch by rowid 23079146

A 回答 (2件)

こんにちわ。



> 何回のFullScanの結果として読み込んだ行数が
> 「table scan rows gotten 151275758」で、
> Full Scanの総数 = table scans (short tables) +
> table scans (long tabels)と考えて良いのでしょうか?
Oracle のマニュアル (9.2 リファレンス) を見るとその解釈で良さそうです。

以下のURL で、9.2 リファレンスが参照できます。
http://otndnld.oracle.co.jp/document/oracle9i/92 …

参考URL:http://otndnld.oracle.co.jp/document/oracle9i/92 …
    • good
    • 0
この回答へのお礼

回答ありがとうございます。

リファレンスが理解できるようもう少し勉強します m(_ _)m

お礼日時:2012/06/19 16:18

こんにちわ。



> ・・・下記の値からは違うように思えるのですが、・・・

table scans (short tables), table scans (long tables) は共に
Full Scan が実行された回数です。

Oracle は、一定以上大きなテーブルをSelect した時に、1回のSelect で
他のBuffer Cache を追い出してしまわないようにCache しないように
なっています。

table scans (short tables) は、Buffer Cache にCache されるような
小さいテーブルに対するFull Scan の回数で、
table scans (long tabels) は、Buffer Cache にCache されないような
大きなテーブルに対するFull Scan の回数です。
    • good
    • 0
この回答へのお礼

ご回答ありがとうございます。

追加の質問で申し訳ないですが・・・
何回のFullScanの結果として読み込んだ行数が「table scan rows gotten 151275758」で、

>table scans (short tables) は、Buffer Cache にCache されるような
>小さいテーブルに対するFull Scan の回数で、
>table scans (long tabels) は、Buffer Cache にCache されないような
>大きなテーブルに対するFull Scan の回数です。
Full Scanの総数 = table scans (short tables) + table scans (long tabels)と考えて良いのでしょうか?

お礼日時:2012/06/16 08:58

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!