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

本站中文解释

Oracle视图DBA_ADVISOR_JOURNAL提供了关于执行DB ADVISOR任务所产生的建议信息和任务结果记录,包括日志,用于了解DB ADVISOR任务的执行状况和结果。

使用此视图的步骤如下:

1、先执行一个DB ADVISOR任务:

SQL> EXEC DBMS_ADVISOR.TASK_EXECUTE(‘MyTask’,NULL,”);

2、然后查询视图以查看生成的建议:

SELECT * FROM DBA_ADVISOR_JOURNAL
WHERE task_name = ‘MyTask’;

以上步骤可以查询到任务的数据库访问和为您调用的构造例程的状况记录,以及每个ADVISOR建议的信息,如结果状况等。

官方英文解释

DBA_ADVISOR_JOURNAL displays the journal entries for all tasks in the database.

Related View

USER_ADVISOR_JOURNAL displays the journal entries for the tasks owned by the current user. This view does not display the OWNER column.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

Owner of the task

TASK_ID

NUMBER

NOT NULL

Identifier of the task or workload object

TASK_NAME

VARCHAR2(128)

Name of the task or workload object

EXECUTION_NAME

VARCHAR2(128)

The name of the task execution with which this entry (row) is associated

JOURNAL_ENTRY_SEQ

NUMBER

NOT NULL

Sequence number of the journal entry (unique for each task). This sequence number is used to order the data.

JOURNAL_ENTRY_TYPE

VARCHAR2(12)

Type of the task:

  • FATAL

  • ERROR

  • WARNING

  • INFORMATION

  • INFORMATION[2 | 3 | 4 | 5 | 6]

JOURNAL_ENTRY

VARCHAR2(4000)

Entry in the journal

See Also:

“USER_ADVISOR_JOURNAL”


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