Oracle 视图 V$XML_AUDIT_TRAIL 官方解释,作用,如何使用详细说明
本站中文解释
V$XML_AUDIT_TRAIL是oracle数据库中XML审计跟踪视图,为DBA提供XML审计及访问控制策略执行过程中的信息。
V$XML_AUDIT_TRAIL视图用于跟踪XML文档的审计事件,出现的审计异常等关键信息,包括:XML审计事件发生时间、审计对象、对象操作、审计用户、其他审计相关上下文信息。
使用V$XML_AUDIT_TRAIL视图,DBA可以搜集XML审计信息,进行相关分析,确保XML数据的安全性。
官方英文解释
V$XML_AUDIT_TRAIL
shows standard, fine-grained, SYS, and mandatory audit records written in XML format files.
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
.
Column | Datatype | Description |
---|---|---|
|
|
Type of audit row:
|
|
|
Numeric ID for the Oracle session |
|
|
Proxy session serial number, if an enterprise user has logged in through a proxy mechanism |
|
|
Numeric ID for the statement run (a statement may cause multiple audit records) |
|
|
Numeric ID for the audit trail entry in the session |
|
|
Timestamp of the audited operation (the timestamp of the user’s logon for entries is created by AUDIT SESSION) |
|
|
Global user identifier for the user, if the user has logged in as an enterprise user |
|
|
Database username of the user whose actions were audited |
|
|
Client identifier in the Oracle session |
|
|
User’s external name |
|
|
Operating system logon user name of the user whose actions were audited |
|
|
Client host system name |
|
|
Operating system process identifier of the Oracle server process |
|
|
Identifier for the user’s terminal |
|
|
Instance number as specified by the |
|
|
Owner of the audited object |
|
|
Name of the object affected by the action |
|
|
Name of the fine-grained auditing policy |
|
|
Owner of the object named in the |
|
|
New name of object after renaming, or the name of an underlying object (for example, |
|
|
Numeric code for the action type |
|
|
Description of the action |
|
|
Identifier of the transaction in which the object is accessed or modified |
|
|
Oracle error code generated by the action. Zero if the action succeeded. |
|
|
System change number (SCN) of the query |
|
|
Text comments on standard audit entries. Also indicates how the user was authenticated – the method can be one of the following:
|
|
|
Privileges granted and revoked in |
|
|
User who granted or revoked the privilege |
|
|
Numerical code of privileges, if any, used in the action |
|
|
Session summary for standard audit records. A string of 12 characters, one for each action type, in the following order: Alter, Audit, Comment, Delete, Grant, Index, Insert, Lock, Rename, Select, Update, Flashback. Values: – = None, S=Success, F=Failure, B=Both |
|
|
This column is populated only for administrative authentication audit records. It contains the administrative privilege used (for example, For all other types of audit records, the value of this column is null. |
|
|
Application execution context identifier |
|
|
List of bind variables used in the statement |
|
|
The statement or command that triggered the audit event |
|
|
Name of the edition containing the audited object |
|
|
Database identifier of the audited database |
|
|
Stores virtual private database (VPD) policy names and predicates separated by delimiter. To format the output into individual rows, use the |
|
|
Effective user for the statement execution |
|
|
The ID of the container to which the data pertains. Possible values include:
|
Note:
The SQL_BIND
and SQL_TEXT
columns are only populated if the AUDIT_TRAIL
initialization parameter is set to xml, extended
or if the AUDIT_SYS_OPERATIONS
initialization parameter is set to TRUE
.
See Also:
-
“UNIFIED_AUDIT_TRAIL”
-
“AUDIT_SYS_OPERATIONS”
-
“AUDIT_TRAIL”
-
Oracle Database PL/SQL
Packages and Types Reference for more information about theDBMS_AUDIT_UTIL.DECODE_RLS_INFO_ATRAIL_XML
function.