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 theOBJECT_SCHEMA
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
Name of the schema that includes the table or view |
|
|
|
Name of the table or view |
|
|
|
Owner of the policy |
|
|
|
Name of the policy |
|
|
|
Audit condition |
|
|
|
Relevant column |
|
|
|
Owner of the audit handler function |
|
|
|
Name of the package containing the audit handler function |
|
|
|
Name of the audit handler function |
|
|
|
Indicates whether the policy is enabled ( |
|
|
|
Indicates whether the policy is applied to queries on the object ( |
|
|
|
Indicates whether the policy is applied to |
|
|
|
Indicates whether the policy is applied to |
|
|
|
Indicates whether the policy is applied to |
|
|
|
Indicates the audit trail to which the audit records generated by this audit policy will be written:
|
|
|
|
Indicates whether all columns in the |
|
|
|
Indicates whether the policy applies across multiple containers ( |
|
|
|
Indicates whether the policy was inherited from another container ( |
See Also:
-
“DBA_AUDIT_POLICIES”
-
“USER_AUDIT_POLICIES”