Oracle 视图 AUDIT_UNIFIED_CONTEXTS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图AUDIT_UNIFIED_CONTEXTS存储系统视管理权限范围内各个用户会话处理查询时访问的上下文信息。当使用AUDIT_OPTION=’CONTEXT’和启用系统审计时,可在AUDIT_UNIFIED_CONTEXTS视图中观察会话上下文信息。
此外,AUDIT_UNIFIED_CONTEXTS 视图还提供审核报告,可用于分析特定的上下文信息。主要的字段有SQL_TEXT、INSTANCE_NUMBER、USERNAME、LOCAL_HOST、LOCAL_USERNAME、INVOKER_WEIGHT。
在使用AUDIT_UNIFIED_CONTEXTS视图之前,应当先在数据库中启用系统审计:
ALTER SYSTEM SET AUDIT_TRAIL=DB SCOPE=SPFILE;
然后,可以使用Audit Option ‘CONTEXT’保证收集的信息包括上下文:
ALTER SYSTEM SET AUDIT_TRAIL=DB, EXTENDED SCOPE=SPFILE;
最后,可以使用如下语句查询上下文信息:
SELECT * FROM AUDIT_UNIFIED_CONTEXTS;
官方英文解释
AUDIT_UNIFIED_CONTEXTS
describes the application context’s attributes, which are configured to be captured in the audit trail.
Note:
This view is populated only in an Oracle Database where unified auditing is enabled.
-
See Oracle Database Security
Guide for more information about unified auditing. -
See Oracle Database Upgrade
Guide for more information about migrating to unified auditing.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
Application context namespace |
|
|
|
Application context attribute |
|
|
|
Username of database user for whom the application context’s attribute is confiured to be captured in the audit trail |