Oracle 视图 DBA_AUDIT_OBJECT 官方解释,作用,如何使用详细说明
本站中文解释
Oracle 视图 DBA_AUDIT_OBJECT 是 SYSAUDIT 包提供的一个数据字典视图。该视图定义了 Oracle 数据库中需要监控的审计对象的属性,例如对象所有者、对象类型及对象名称等。
用途:我们可以利用 DBA_AUDIT_OBJECT 视图查询当前 Oracle 数据库中审计对象的属性,旨在提供基于更丰富信息基础的审计。
使用方法:
1. 使用 DESC 命令查看 DBA_AUDIT_OBJECT 视图的列信息:DESC DBA_AUDIT_OBJECT
2. 使用简单查询查看所有已配置审计对象:SELECT * FROM DBA_AUDIT_OBJECT
3. 使用 select 命令查看指定对象的审计属性:SELECT * from DBA_AUDIT_OBJECT WHERE OBJ_NAME=’TABLE_NAME’ AND SYS_PRIV=’SELECT’
官方英文解释
DBA_AUDIT_OBJECT
displays audit trail records for all objects in the database.
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
.
Related View
USER_AUDIT_OBJECT
displays audit trail records for the objects accessible to the current user.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
Operating system login username of the user whose actions were audited |
|
|
|
Name (not ID number) of the user whose actions were audited |
|
|
|
Client host machine name |
|
|
|
Identifier of the user’s terminal |
|
|
|
Date and time of the creation of the audit trail entry (date and time of user login for entries created by |
|
|
|
Creator of the object affected by the action |
|
|
|
Name of the object affected by the action |
|
|
|
Name of the action type corresponding to the numeric code in the |
|
|
|
Owner of the object named in the |
|
|
|
New name of an object after a |
|
|
|
Session summary (a string of 16 characters, one for each action type in the order
|
|
|
|
Text comment on the audit trail |
|
|
|
|
Numeric ID for each Oracle session |
|
|
|
Numeric ID for each audit trail entry in the session |
|
|
|
Numeric ID for each statement run |
|
|
|
Oracle error code generated by the action. Some useful values:
|
|
|
System privilege used to execute the action |
|
|
|
Client identifier in each Oracle session |
|
|
|
Application execution context identifier |
|
|
|
Amount of CPU time used by each Oracle session |
|
|
|
Timestamp of the creation of the audit trail entry (timestamp of user login for entries created by |
|
|
|
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 |
|
|
|
System change number (SCN) of the query |
|
|
|
Bind variable data of the query |
|
|
|
SQL text of the query |
|
|
|
Name of the edition containing the audited object |
Note:
The SQL_BIND
and SQL_TEXT
columns are only populated if the AUDIT_TRAIL
initialization parameter is set to db
, extended
.
See Also:
-
“AUDIT_TRAIL”
-
“USER_AUDIT_OBJECT”