Oracle 视图 DBA_SQLTUNE_STATISTICS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图是Oracle数据库系统中的一种数据存储形式。DBA_SQLTUNE_STATISTICS视图是Oracle自带的一个统计信息视图, 能够为用户提供关于SQL应用程序优化的信息。它可以提供用户优化应用开发的重要参考信息,以便帮助用户更好的去优化SQL语句的数据库查询性能。
使用DBA_SQLTUNE_STATISTICS视图需要满足以下要求:
1.需要在Oracle数据库实例中安装和启用SQL tuning功能;
2.到需要安装和启用Oracle SQL Tuning Advisor;
3.需要拥有使用DBA_SQLTUNE_STATISTICS视图的权限。
若满足以上要求,则可以使用DBA_SQLTUNE_STATISTICS视图来查询统计信息,例如SQL语句执行时间,次数,表扫描次数,SQL实际执行计划等等,并将这些信息用于帮助用户进行应用开发的SQL优化。
官方英文解释
DBA_SQLTUNE_STATISTICS
displays statistics associated with all SQL statements in the database.
Related View
USER_SQLTUNE_STATISTICS
displays statistics associated with the SQL statements owned by the current user.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Tuning task identifier |
|
|
|
Advisor framework object identifier |
|
|
Schema under which the SQL is parsed |
|
|
|
Last application module recorded for the SQL |
|
|
|
Last application action recorded for the SQL |
|
|
|
Elapsed time for the SQL statement |
|
|
|
CPU time for the SQL |
|
|
|
Number of buffer gets |
|
|
|
Number of disk reads |
|
|
|
Number of disk writes |
|
|
|
Number of rows processed by the SQL |
|
|
|
Number of fetches |
|
|
|
Number of executions |
|
|
|
End of fetch count |
|
|
|
Optimizer cost for the SQL |
|
|
|
Optimizer environment |
|
|
|
Command type |
See Also:
“USER_SQLTUNE_STATISTICS”