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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- User defined table type and table valued parameters
- audit drop table為什麼不行
- user management table and t-code
- Product_user_profile(PUP) TABLE FOR security
- audit_file_dest, background_dump_dest, core_dump_dest, user_dump_dest
- 資料庫審計(create/alter/drop table、user、tablespace)資料庫
- Database Audit and Audit trail purgingDatabaseAI
- FN_AUDIT - Name of security audit file
- [20191203]enq: ZA - add std audit table partition.txtENQ
- yii2接入pgSQL(查詢不到表The table does not exist: {{%user}})SQL
- ORACLE AUDITOracle
- 資料庫加密Product_user_profile(PUP) TABLE FOR security 【Blog 搬家】資料庫加密
- RHEL審計內容/etc/audit/audit.rules
- Oracle Audit setupOracle
- audit審計
- oracle audit and securityOracle
- 審計--audit
- mysql-auditMySql
- mysqlalchemy audit extensionMySql
- 解決Error (1133): Can’t find any matching row in the user tableError
- AUD: Audit Commit Delay exceeded, written a copy to OS Audit TrailMITAI
- oracle10g_audit_solaris_利用audit_sys_operationsOracle
- Script to Show Audit Options/Audit Trail (Doc ID 1019552.6)AI
- ORALCE 的AUDIT 以及開啟AUDIT對REDO 的影響
- MySQL審計auditMySql
- AUDIT審計(2)
- Oracle 審計 auditOracle
- oracle 審計(Audit)Oracle
- Audit Vault and Database VaultDatabase
- Backup And Recovery User's Guide-使用閃回刪除來回退DROP TABLE操作GUIIDE
- SQL Server 審計(Audit)SQLServer
- ORACLE AUDIT審計(1)Oracle
- audit_trail與extended!AI
- SAP Security Audit log size
- mybatis進行資料庫建表 CREATE command denied to user 'root'@'127.0.0.1' for table 問題MyBatis資料庫127.0.0.1
- Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist解決辦法ErrorMySql
- fluentd 推送 mariadb audit log
- linux監控工具auditLinux