Oracle 视图 DBA_FGA_AUDIT_TRAIL 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_FGA_AUDIT_TRAIL是Fine-Grained Auditing视图,它存储有关Fine-Grained Auditing审计内容的信息。它提供了有关用户访问、更新、插入或者删除表上数据的信息。
使用该视图可以得到以下信息:
1. 用户的名字、时间戳
2. 数据库操作,例如:
– 访问表
– 插入记录
– 更新记录
– 删除记录
3. SQL文本,对应于执行的操作
4. 审计表和主要应用模式名称
5. 比较参数
另外,使用该视图也可以完成表上数据的查询、复核和审计,确保数据的安全性。
官方英文解释
DBA_FGA_AUDIT_TRAIL
displays all audit records for fine-grained auditing.
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 | NULL | Description |
---|---|---|---|
|
|
|
Session id of the query |
|
|
Date and time of the query in the local database session time zone |
|
|
|
Database username who executed the query |
|
|
|
Operating system username who executed the query |
|
|
|
Client host machine name |
|
|
|
Client identifier in each Oracle session |
|
|
|
Application execution context identifier |
|
|
|
External name |
|
|
|
Owner of the table or view |
|
|
|
Name of the table or view |
|
|
|
Name of the Fine-Grained Auditing Policy |
|
|
|
System change number (SCN) of the query |
|
|
|
SQL text of the query |
|
|
|
Bind variable data of the query |
|
|
|
Comments |
|
|
|
Statement type of the query:
|
|
|
|
Timestamp of the query in UTC (Coordinated Universal Time) time zone |
|
|
|
Proxy session serial number, if an enterprise user has logged in through the proxy mechanism |
|
|
|
Global user identifier for the user, if the user has logged in as an enterprise user |
|
|
|
Instance number as specified by the |
|
|
|
Operating System process identifier of the Oracle process |
|
|
|
Transaction identifier of the transaction in which the object is accessed or modified |
|
|
|
Numeric ID for each statement run (a statement may cause many actions) |
|
|
|
Numeric ID for each audit trail entry in the session |
|
|
|
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 |
Note:
The SQL_BIND
and SQL_TEXT
columns are populated only if the policy has been created with the AUDIT_TRAIL
parameter set to db
, extended
.
See Also:
Oracle Database PL/SQL
Packages and Types Reference for more information about the DBMS_AUDIT_UTIL.DECODE_RLS_INFO_ATRAIL_FGA
function.