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

本站中文解释

Oracle视图DBA_WI_TEMPLATES用来查看数据库中所有的工作流模板信息。这种视图帮助数据库管理员可以很容易地管理模板,识别模板中存在的问题,排查引起工作流出错的原因。它显示了模板的识别号,以及模板名称、版本、作者、最新修改时间、最新排序、及是否启用的状态。

若要使用这种视图,可以先在Oracle数据库中创建视图:

CREATE VIEW DBA_WI_TEMPLATES AS
SELECT TEMPLATE_ID, TEMPLATE_NAME, TEMPLATE_VERSION, TEMPLATE_AUTHOR, LAST_UPDATED, LAST_SORT_ORDER, STATUS
FROM ALL_WORKFLOW_TEMPLATES;

然后使用查询语句提取视图中的信息,比如查询特定作者Nilay创建的模板:

SELECT *
FROM DBA_WI_TEMPLATES
WHERE TEMPLATE_AUTHOR = ‘Nilay’;

使用了DBA_WI_TEMPLATES视图,数据库管理员可以有效地管理模板,识别模板中的问题,排查出错的原因,并加以解决。

官方英文解释

Each row in DBA_WI_TEMPLATES describes a template that has been found in the workload that is related to the Workload Intelligence job whose identifier is equal to JOB_ID.

A template can represent either a simple query, or an entire transaction. Two queries in the given workload belong to the same template, if they exhibit trivial differences, for example, if they contain different literal values, different bind variable names, different comments, or different white spaces.

Column Datatype NULL Description

JOB_ID

NUMBER

NOT NULL

The identifier of the job in the workload of which the given template has been found

TEMPLATE_ID

NUMBER

NOT NULL

The identifier of a template in a given job

IS_TRANSACTION

CHAR(1)

NOT NULL

Flag that indicates whether the given template represents a transaction:

  • Y – indicates that the given template represents a transaction

  • N – indicates that the given template does not represent a transaction


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