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

本站中文解释

Oracle视图USER_OBJ_AUDIT_OPTS用于查看用户对象的审计选项。它提供的信息可用于确定哪些类型的行为由每个对象进行审计,以及审计数据应该被记录哪里。

使用这个视图的用法如下:

SELECT object_name, object_type, audit_option
FROM user_obj_audit_opts
WHERE object_name = ‘TableName’;

其中,object_name是要查询的表的名称,object_type包括TABLE、VIEW、SEQUENCE,等,audit_option包括AUDIT、NOAUDIT,说明查询表是否启用了审计选项。

官方英文解释

USER_OBJ_AUDIT_OPTS describes auditing options on all objects owned by the current user. Its columns (except for OWNER) are the same as those in DBA_OBJ_AUDIT_OPTS.

Note:

This view is relevant when using traditional auditing. Traditional auditing is deprecated in Oracle Database 21c. Oracle recommends that you instead use unified auditing, which enables selective and more effective auditing inside Oracle Database.

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

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

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 Also:

“DBA_OBJ_AUDIT_OPTS”


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