Auditing SQL Statements, Privileges, and Other General Activities

简介: Auditing SQL Statements, Privileges, and Other General Activities

In addition, you can create policies that use conditions. However, if you want to audit specific columns or use event handlers, you must use fine-grained auditing.

The general steps for performing this type of auditing are as follows:

In most cases, use the CREATE AUDIT POLICY statement to create an audit policy. If you must audit application context values, then use the AUDIT statement.
See the relevant categories under Auditing Activities with Unified Audit Policies and the AUDIT Statement.

If you are creating an audit policy, then use the AUDIT statement to enable it and optionally apply (or exclude) the audit settings to one or more users, including administrative users who log in with the SYSDBA administrative privilege (for example, the SYS user).
AUDIT also enables you to create an audit record upon an action's success, failure, or both.

See Enabling Unified Audit Policies to Users.

Query the UNIFIED_AUDIT_TRAIL view to find the generated audit records.
See also Audit Policy Data Dictionary Views for additional views.

Periodically archive and purge the contents of the audit trail.
See Purging Audit Trail Records.

相关文章
|
6月前
|
SQL 关系型数据库 MySQL
实时计算 Flink版操作报错合集之报错显示“Unsupported SQL query! sqlUpdate() only accepts SQL statements of type INSERT and DELETE"是什么意思
在使用实时计算Flink版过程中,可能会遇到各种错误,了解这些错误的原因及解决方法对于高效排错至关重要。针对具体问题,查看Flink的日志是关键,它们通常会提供更详细的错误信息和堆栈跟踪,有助于定位问题。此外,Flink社区文档和官方论坛也是寻求帮助的好去处。以下是一些常见的操作报错及其可能的原因与解决策略。
258 0
|
SQL 关系型数据库 测试技术
[20130117]Analyzing a SQL Trace File with SQL Statements.txt
[20130117]Analyzing a SQL Trace File with SQL Statements.txt参考链接:http://antognini.
699 0
|
SQL
zt:Cardinality (SQL statements) 最好的解释
http://www.itpub.net/thread-934862-1-1.html In SQL, the term cardinality refers to the uniqueness of data values contained in a particular column (attribute) of a database table.
676 0
|
2月前
|
关系型数据库 MySQL 网络安全
5-10Can't connect to MySQL server on 'sh-cynosl-grp-fcs50xoa.sql.tencentcdb.com' (110)")
5-10Can't connect to MySQL server on 'sh-cynosl-grp-fcs50xoa.sql.tencentcdb.com' (110)")
|
4月前
|
SQL 存储 监控
SQL Server的并行实施如何优化?
【7月更文挑战第23天】SQL Server的并行实施如何优化?
114 13
|
4月前
|
SQL
解锁 SQL Server 2022的时间序列数据功能
【7月更文挑战第14天】要解锁SQL Server 2022的时间序列数据功能,可使用`generate_series`函数生成整数序列,例如:`SELECT value FROM generate_series(1, 10)。此外,`date_bucket`函数能按指定间隔(如周)对日期时间值分组,这些工具结合窗口函数和其他时间日期函数,能高效处理和分析时间序列数据。更多信息请参考官方文档和技术资料。