Oracle 中ESS有何作何,如何查询
ESS ( Expression Statistics Store)是用于保存统计信息并评估的知识库。是数据库组件之一,不能被关闭。
可查询的视图:DBA_EXPRESSION_STATISTICS
官方文档说明如下:
The Expression Statistics Store (ESS) is a repository maintained by the optimizer to store statistics about expression evaluation. The ESS resides in the SGA and persists on disk.
When an IM column store is enabled, the database leverages the ESS for its In-Memory Expressions (IM expressions) feature. However, the ESS is independent of the IM column store. The ESS is a permanent component of the database and cannot be disabled.
The database uses the ESS to determine whether an expression is “hot” (frequently accessed), and thus a candidate for an IM expression. During a hard parse of a query, the ESS looks for active expressions in the SELECT
list, WHERE
clause, GROUP BY
clause, and so on.
For each segment, the ESS maintains expression statistics such as the following:
Frequency of execution
Cost of evaluation
Timestamp evaluation
The optimizer assigns each expression a weighted score based on cost and the number of times it was evaluated. The values are approximate rather than exact. More active expressions have higher scores. The ESS maintains an internal list of the most frequently accessed expressions.
Control the behavior of IM expressions using the DBMS_INMEMORY_ADMIN
package. For example, the IME_CAPTURE_EXPRESSIONS
procedure prompts the database to identify and gradually populate the hottest expressions in the database. The IME_POPULATE_EXPRESSIONS
procedure forces the database to populate the expressions immediately.
ESS information is stored in the data dictionary and exposed in the DBA_EXPRESSION_STATISTICS
view. This view shows the metadata that the optimizer has collected in the ESS. IM expressions are exposed as system-generated virtual columns, prefixed by the string SYS_IME
, in the DBA_IM_EXPRESSIONS
view.
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作