SQL操作
TRUNCATE TABLE SAMPLE_TABLE;
INSERT INTO SAMPLE_TABLE (ID, NAME) VALUES (1,'SCOTT');
INSERT INTO SAMPLE_TABLE (ID, NAME) VALUES (2,'TIGER');
-- Check
INSERT INTO SAMPLE_TABLE (ID, NAME) VALUES (3,'ADMIN');
INSERT INTO SAMPLE_TABLE (ID, NAME) VALUES (4,'ADMINISTRATOR');
UPDATE SAMPLE_TABLE SET ID=10 WHERE NAME='ADMINISTRATOR';
-- ↓ ※※※ Not Check ※※※ ↓
UPDATE SAMPLE_TABLE SET ID=11 WHERE ID=3;
-- Check
UPDATE SAMPLE_TABLE SET NAME='GUEST' WHERE NAME='ADMIN';
-- Check
UPDATE SAMPLE_TABLE SET NAME='ADMIN' WHERE NAME='SCOTT';
UPDATE SAMPLE_TABLE SET NAME='SCOTT' WHERE NAME='GUEST';
-- Check
DELETE FROM SAMPLE_TABLE WHERE NAME='ADMIN';
查看结果
SELECT DB_USER || ':' || SQL_TEXT FGA_LOG FROM DBA_FGA_AUDIT_TRAIL
WHERE TIMESTAMP >= SYSDATE - INTERVAL '1' MINUTE;
/* 结果 */
FGA_LOG
--------------------------------------------------------------------------------
TEST:INSERT INTO SAMPLE_TABLE (ID, NAME) VALUES (3,'ADMIN')
TEST:UPDATE SAMPLE_TABLE SET NAME='GUEST' WHERE NAME='ADMIN'
TEST:UPDATE SAMPLE_TABLE SET NAME='ADMIN' WHERE NAME='SCOTT'
TESTELETE FROM SAMPLE_TABLE WHERE NAME='ADMIN'作者: TOADLover 时间: 2010-05-31 14:29
路过的朋友们,谁知道?
在日志中应该可以查到,怎么查?作者: TOADLover 时间: 2010-05-31 14:48
啊,怎么没有兄弟们做过?作者: TOADLover 时间: 2010-05-31 14:50
数据库正在NOARCHIVELOG方式下使用。作者: TOADLover 时间: 2010-05-31 15:04
查询该用户在过去一天内进行的DML操作,不包括Select。作者: TOADLover 时间: 2010-05-31 15:11 本帖最后由 TOADLover 于 2010-05-31 15:12 编辑