Oracle 视图 USER_SQLSET_STATEMENTS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图USER_SQLSET_STATEMENTS被引入支持基于SQL优化集的优化功能,它显示用户在优化集中识别的SQL语句。
用法:
1. 可以通过以下语句查询USER_SQLSET_STATEMENTS视图:SELECT * FROM USER_SQLSET_STATEMENTS。
2. 通过以下语句查询某个用户使用的SQL优化集:SELECT DISTINCT SQLSET_NAME FROM USER_SQLSET_STATEMENTS。
3. 通过以下语句查询某个用户使用的SQL优化集中SQL语句:SELECT ENTIRE_SQL_TEXT FROM USER_SQLSET_STATEMENTS WHERE SQLSET_NAME=’SQL优化集名称’\
官方英文解释
USER_SQLSET_STATEMENTS
displays information about the SQL statements, along with their statistics, that form the SQL tuning sets owned by the current user. Its columns (except for SQLSET_OWNER
) are the same as those in ALL_SQLSET_STATEMENTS
.
See Also:
“ALL_SQLSET_STATEMENTS”