日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

统计信息及相关说明

發(fā)布時(shí)間:2023/12/13 编程问答 44 豆豆
生活随笔 收集整理的這篇文章主要介紹了 统计信息及相关说明 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
統(tǒng)計(jì)信息: ? ? ? ? ? 0? recursive calls ????? 20434? db block gets
? 317970511? consistent gets
????????? 0? physical reads
??? 3759764? redo size
??????? 382? bytes sent via SQL*Net to client
?????? 1061? bytes received via SQL*Net from client
????????? 3? SQL*Net roundtrips to/from client
????? 10001? sorts (memory)
????????? 0? sorts (disk)
????? 10000? rows processed
? recursive calls?統(tǒng)計(jì)在一段語(yǔ)句執(zhí)行時(shí),遞歸調(diào)用的次數(shù)。在執(zhí)行SQL時(shí),生成的執(zhí)行計(jì)劃可能牽涉到許多相關(guān)的調(diào)用執(zhí)行,比如在執(zhí)行Update時(shí)可能需要先select,這個(gè)select就是update的遞歸調(diào)用;在執(zhí)行語(yǔ)句時(shí)可能還牽涉到對(duì)系統(tǒng)表的遞歸查詢等操作,這些通通都算是遞歸調(diào)用。 ? Recursive Calls:? Number of recursive calls generated at both the user and system level.?
Oracle Database maintains tables used for internal processing. When it needs to change these tables, Oracle Database generates an internal SQL statement, which in turn generates a recursive call.?
In short, recursive calls are basically SQL performed on behalf of your SQL. So, if you had to parse the query, for example, you might have had to run some other queries to get data dictionary information. These would be recursive calls. Space management, security checks, calling PL/SQL from SQL—all incur recursive SQL calls.?

DB Block Gets:(DB Block Gets:請(qǐng)求的數(shù)據(jù)塊在buffer能滿足的個(gè)數(shù)) Number of times a CURRENT block was requested.?
Current mode blocks are retrieved as they exist right now, not in a consistent read fashion.
Normally, blocks retrieved for a query are retrieved as they existed when the query began. Current mode blocks are retrieved as they exist right now, not from a previous point in time.?
During a SELECT, you might see current mode retrievals due to reading the data dictionary to find the extent information for a table to do a full scan (because you need the "right now" information, not the consistent read). During a modification, you will access the blocks in current mode in order to write to them.?

Consistent Gets:(Consistent Gets:數(shù)據(jù)請(qǐng)求總數(shù)在回滾段Buffer中) Number of times a consistent read was requested for a block.?
This is how many blocks you processed in "consistent read" mode. This will include counts of blocks read from the rollback segment in order to roll back a block.?
This is the mode you read blocks in with a SELECT, for example.?
Also, when you do a searched UPDATE/DELETE, you read the blocks in consistent read mode and then get the block in current mode to actually do the modification.?

Physical Reads: Total number of data blocks read from disk. This number equals the value of "physical reads direct" plus all reads into buffer cache. (Physical Reads:實(shí)例啟動(dòng)后,從磁盤(pán)讀到Buffer Cache數(shù)據(jù)塊數(shù)量)

sorts (memory): 在內(nèi)存中排序 ? Sorts (disk): Number of sort operations that required at least one disk write. Sorts that require I/O to disk are quite resource intensive. Try increasing the size of the initialization parameter SORT_AREA_SIZE.

(Sorts(disk):從磁盤(pán)上進(jìn)行排序的數(shù)量)

? Physical Reads通常是我們最關(guān)心的,如果這個(gè)值很高,說(shuō)明要從磁盤(pán)請(qǐng)求大量的數(shù)據(jù)到Buffer Cache里,通常意味著系統(tǒng)里存在大量全表掃描的SQL語(yǔ)句,這會(huì)影響到數(shù)據(jù)庫(kù)的性能,因此盡量避免語(yǔ)句做全表掃描,對(duì)于全表掃描的SQL語(yǔ)句,建議增加相關(guān)的索引,優(yōu)化SQL語(yǔ)句來(lái)解決。

關(guān)于physical reads ,db block gets 和consistent gets這三個(gè)參數(shù)之間有一個(gè)換算公式:

數(shù)據(jù)緩沖區(qū)的使用命中率=1 - ( physical reads / (db block gets + consistent gets) ) ? 針對(duì)以上3個(gè)概念進(jìn)行的說(shuō)明解釋及關(guān)系如下: 1、DB Block Gets(當(dāng)前請(qǐng)求的塊數(shù)目) 當(dāng)前模式塊意思就是在操作中正好提取的塊數(shù)目,而不是在一致性讀的情況下而產(chǎn)生的塊數(shù)。正常的情況下,一個(gè)查詢提取的塊是在查詢開(kāi)始的那個(gè)時(shí)間點(diǎn)上存在的數(shù)據(jù)塊,當(dāng)前塊是在這個(gè)時(shí)刻存在的數(shù)據(jù)塊,而不是在這個(gè)時(shí)間點(diǎn)之前或者之后的數(shù)據(jù)塊數(shù)目。 2、Consistent Gets(數(shù)據(jù)請(qǐng)求總數(shù)在回滾段Buffer中的數(shù)據(jù)一致性讀所需要的數(shù)據(jù)塊) 這里的概念是在處理你這個(gè)操作的時(shí)候需要在一致性讀狀態(tài)上處理多少個(gè)塊,這些塊產(chǎn)生的主要原因是因?yàn)橛捎谠谀悴樵兊倪^(guò)程中,由于其他會(huì)話對(duì)數(shù)據(jù)塊進(jìn)行操作,而對(duì)所要查詢的塊有了修改,但是由于我們的查詢是在這些修改之前調(diào)用的,所以需要對(duì)回滾段中的數(shù)據(jù)塊的前映像進(jìn)行查詢,以保證數(shù)據(jù)的一致性。這樣就產(chǎn) 生了一致性讀。 3、Physical Reads(物理讀) 就是從磁盤(pán)上讀取數(shù)據(jù)塊的數(shù)量,其產(chǎn)生的主要原因是: 1、 在數(shù)據(jù)庫(kù)高速緩存中不存在這些塊 2、 全表掃描 3、 磁盤(pán)排序 它們?nèi)咧g的關(guān)系大致可概括為: 邏輯讀指的是Oracle從內(nèi)存讀到的數(shù)據(jù)塊數(shù)量。一般來(lái)說(shuō)是'consistent gets' + 'db block gets'。當(dāng)在內(nèi)存中找不到所需的數(shù)據(jù)塊的話就需要從磁盤(pán)中獲取,于是就產(chǎn)生了'phsical reads'。

轉(zhuǎn)載于:https://www.cnblogs.com/zhaoshuangshuang/archive/2012/07/23/2605663.html

總結(jié)

以上是生活随笔為你收集整理的统计信息及相关说明的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。