Oracle 视图 USER_AUDIT_TRAIL 官方解释,作用,如何使用详细说明
本站中文解释
详细描述
Oracle视图USER_AUDIT_TRAIL在Oracle数据库里是一个系统级视图,可用于查看数据库更改的审计轨迹。
它由系统用户SYS使用,是审计安全和管理能力的核心部分,允许系统管理员检查在任何时间任何用户的任何数据库表的审计信息。
主要包含的列信息有:
* ACTION_NAME:用户执行的动作名称;
* OBJECT_NAME:被操作的Oracle对象的名称;
* SQL_TEXT:执行的SQL文本;
* SESSION_ID:执行SQL的会话ID;
* SESSION_INFO:会话的详细信息;
* CLIENT_ID:客户端信息;
* STATUS:操作的执行状态;
* AUTHENTICATION_TYPE:用户身份认证类型;
* SQL_BIND:SQL参数绑定值;
* PRIVILEGE_USED:使用的系统特权;
* ACTION_TIME:动作发生的时间;
* ACTION#:动作序号;
* USERNAME:操作的用户名。
用户可以使用以下语句查询实时的审计记录:
SELECT *
FROM USER_AUDIT_TRAIL
WHERE ACTION_TIME > SYSTIMESTAMP;
官方英文解释
USER_AUDIT_TRAIL
displays the standard audit trail entries related to the current user.
Its columns are the same as those in “DBA_AUDIT_TRAIL”.
The view displays audit records generated by actions performed by the user and audit records generated by actions performed on the user’s schema objects.
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
.