我一直在测试Oracle 11g中的审计区域。不幸的是,在我完成下面描述的步骤之后,我在审计表中没有得到任何结果。我作为商店连接到数据库。那是为什么?
GRANT AUDIT SYSTEM TO store;
GRANT AUDIT ANY TO store;
AUDIT CREATE ANY TABLE BY store;
CREATE TABLE test_mj_aud(
id INTEGER);
INSERT INTO test_mj_aud
VALUES (1);
COMMIT;
SELECT * FROM test_mj_aud;
SELECT * FROM user_audit_trail; --no results
SELECT * FROM db_audit_trail; --no results