audit by user by table
看聯機文件audit語法應該可以實現,實際上確不能。
T@ bip> audit select,insert,update,delete on t.t by ys;
audit select,insert,update,delete on t.t by ys *
ERROR at line 1:
ORA-01708: ACCESS or SESSION expected
audit select,insert,update,delete on t.t by ys *
ERROR at line 1:
ORA-01708: ACCESS or SESSION expected
I wanted to audit dml by user by table,but I can not.Use FGA instead.
BEGIN
DBMS_FGA.ADD_POLICY(
object_schema => 'T',
object_name => 'T',
policy_name => 'chk_t',
audit_condition => 'sys_context(''userenv'',''session_user'')=''TT''',
enable => TRUE,
statement_types => 'INSERT, UPDATE, SELECT, DELETE',
audit_trail => DBMS_FGA.DB);
END;
/
DBMS_FGA.ADD_POLICY(
object_schema => 'T',
object_name => 'T',
policy_name => 'chk_t',
audit_condition => 'sys_context(''userenv'',''session_user'')=''TT''',
enable => TRUE,
statement_types => 'INSERT, UPDATE, SELECT, DELETE',
audit_trail => DBMS_FGA.DB);
END;
/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/756652/viewspace-722623/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20191203]enq: ZA - add std audit table partition.txtENQ
- yii2接入pgSQL(查詢不到表The table does not exist: {{%user}})SQL
- ORACLE AUDITOracle
- Oracle Audit setupOracle
- mysqlalchemy audit extensionMySql
- MySQL審計auditMySql
- AUDIT審計(2)
- mybatis進行資料庫建表 CREATE command denied to user 'root'@'127.0.0.1' for table 問題MyBatis資料庫127.0.0.1
- 2.2.6 Overview of Common Audit ConfigurationsView
- linux監控工具auditLinux
- SQL Server 審計(Audit)SQLServer
- fluentd 推送 mariadb audit log
- ORACLE AUDIT審計(1)Oracle
- oracle user$Oracle
- [20190530]oracle Audit檔案管理.txtOracle
- PRVF-4007 : User equivalence check failed for user "grid"UIAI
- 快速瞭解:user-valid和:user-invalid
- create table,show tables,describe table,DROP TABLE,ALTER TABLE ,怎麼使用?
- User Account Control
- Vue @user 元件Vue元件
- 【AUDIT]Oracle審計配置及常用sqlOracleSQL
- MySQL審計外掛-MariaDB Audit PluginMySqlPlugin
- MyBatis-maven-User例子-根據id查詢UserMyBatisMaven
- [20191129]oracle Audit檔案管理3.txtOracle
- [20191128]oracle Audit檔案管理2.txtOracle
- FGA審計及audit_trail引數AI
- Auth::user() 踩坑
- LightBeter Software User Agreement
- user表的改
- Django的User ModelDjango
- Oracle OCP(28):USEROracle
- table
- Make sure you configure your "user.name" and "user.email" in git.AIGit
- App\User 替換為 App\Models\User 的問題解決!APP
- @1-MYSQL當前使用者user()與current_user()MySql
- Oracle Audit 審計功能的認識與使用Oracle
- Disable Database Audit In Oracle 19c RAC-20220111DatabaseOracle
- mysql 5.7新增server_audit 安全審計功能MySqlServer