Oracle 视图 USER_ADVISOR_LOG 官方解释,作用,如何使用详细说明

本站中文解释

_DETAILS

Oracle视图USER_ADVISOR_LOG_DETAILS存储着使用advisor执行的每次运行的详细信息。该视图包括以下字段:

– ADVISOR_NAME:存储的advisor的名称;
– TIMESTAMP:advisor运行的时间;
– ATTRIBUTE_NAME:advisor发现或收集的属性名称;
– ATTRIBUTE_VALUE:生成的属性值;
– TASK_NAME:任务名称;
– STATEMENT_DETAILS:包括SQL语句和可选参数。

使用Oracle视图USER_ADVISOR_LOG_DETAILS可以查询某次advisor运行生成的属性值、任务名称和SQL语句,如下所示:

SELECT ATTRIBUTE_VALUE, TASK_NAME, STATEMENT_DETAILS
FROM USER_ADVISOR_LOG_DETAILS
WHERE ADVISOR_NAME = ‘ADVISOR_X’
AND TIMESTAMP = TO_DATE(‘2020-02-23 13:05:00’, ‘YYYY-MM-DD HH24:MI:SS’);

官方英文解释

USER_ADVISOR_LOG displays information about the current state of the tasks owned by the current user. Its columns (except for OWNER) are the same as those in DBA_ADVISOR_LOG.

See Also:

“DBA_ADVISOR_LOG”


数据运维技术 » Oracle 视图 USER_ADVISOR_LOG 官方解释,作用,如何使用详细说明