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

本站中文解释

ALL_AUDIT_POLICIES视图用于显示所有审核策略的相关信息。它包含每种审核策略的路径名称,采用的审核模式,最后更新日期和是否有效的相关信息,用于查询回的审核策略的列表。

要使用此视图,首先需要创建审核策略,然后对视图进行SELECT查询,查询某个审核策略的相关信息。例如:

SELECT POLICY_NAME, POLICY_MODE
FROM ALL_AUDIT_POLICIES
WHERE POLICY_NAME = ‘MY_AUDIT_POLICY’;

官方英文解释

ALL_AUDIT_POLICIES describes the fine-grained auditing policies on the tables and views accessible to the current user.

Note:

This view is populated only in an Oracle Database where unified auditing is not enabled. When unified auditing is enabled in Oracle Database, the audit records are populated in the new audit trail and can be viewed from UNIFIED_AUDIT_TRAIL.

  • See Oracle Database Security
    Guide
    for more information about unified auditing.

  • See Oracle Database Upgrade
    Guide
    for more information about migrating to unified auditing.

Related Views

  • DBA_AUDIT_POLICIES describes all fine-grained auditing policies in the database.

  • USER_AUDIT_POLICIES describes the fine-grained auditing policies on the tables and views owned by the current user. This view does not display the OBJECT_SCHEMA column.

Column Datatype NULL Description

OBJECT_SCHEMA

VARCHAR2(128)

Name of the schema that includes the table or view

OBJECT_NAME

VARCHAR2(128)

Name of the table or view

POLICY_OWNER

VARCHAR2(128)

Owner of the policy

POLICY_NAME

VARCHAR2(128)

Name of the policy

POLICY_TEXT

VARCHAR2(4000)

Audit condition

POLICY_COLUMN

VARCHAR2(128)

Relevant column

PF_SCHEMA

VARCHAR2(128)

Owner of the audit handler function

PF_PACKAGE

VARCHAR2(128)

Name of the package containing the audit handler function

PF_FUNCTION

VARCHAR2(128)

Name of the audit handler function

ENABLED

VARCHAR2(3)

Indicates whether the policy is enabled (YES) or disabled (NO)

SEL

VARCHAR2(3)

Indicates whether the policy is applied to queries on the object (YES) or not (NO)

INS

VARCHAR2(3)

Indicates whether the policy is applied to INSERT statements on the object (YES) or not (NO)

UPD

VARCHAR2(3)

Indicates whether the policy is applied to UPDATE statements on the object (YES) or not (NO)

DEL

VARCHAR2(3)

Indicates whether the policy is applied to DELETE statements on the object (YES) or not (NO)

AUDIT_TRAIL

VARCHAR2(12)

Indicates the audit trail to which the audit records generated by this audit policy will be written:

  • DB – Audit records are written to DBA_FGA_AUDIT_TRAIL (fine-grained audit trail)

  • DB+EXTENDED – Audit records are written to DBA_FGA_AUDIT_TRAIL (fine-grained audit trail) and the SQL_TEXT and SQL_BIND columns are populated for this policy

  • XML – Audit records are written to V$XML_AUDIT_TRAIL (XML audit files)

  • XML+EXTENDED – Audit records are written to V$XML_AUDIT_TRAIL (XML audit files) and the SQL_TEXT and SQL_BIND columns are populated for this policy

POLICY_COLUMN_OPTIONS

VARCHAR2(11)

Indicates whether all columns in the AUDIT_COLUMN parameter (ALL_COLUMNS) or any of the columns in the AUDIT_COLUMN parameter (ANY_COLUMNS) are considered for triggering fine-grained auditing

COMMON

VARCHAR2(3)

Indicates whether the policy applies across multiple containers (YES) or not (NO)

INHERITED

VARCHAR2(3)

Indicates whether the policy was inherited from another container (YES) or not (NO)

See Also:

  • “DBA_AUDIT_POLICIES”

  • “USER_AUDIT_POLICIES”


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