Auditing Enhancements in Oracle Database 21c
This article gives an overview of the auditing enhancements in Oracle database 21c.
oracle 21cconfigurationintermediate
by OracleDba
18 views
This article gives an overview of the auditing enhancements in Oracle database 21c.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
create audit policy http_pol
actions component=protocol http;
create audit policy ftp_pol
actions component=protocol ftp;
create audit policy auth_pol
actions component=protocol authentication;
audit policy http_pol;
audit policy ftp_pol;
audit policy auth_pol whenever not successful;
column policy_name format a15
select policy_name,
audit_option,
audit_option_type
from audit_unified_policies
where policy_name in ('HTTP_POL', 'FTP_POL', 'AUTH_POL');
POLICY_NAME AUDIT_OPTION AUDIT_OPTION_TYPE
--------------- --------------- ------------------
HTTP_POL HTTP PROTOCOL ACTION
FTP_POL FTP PROTOCOL ACTION
AUTH_POL AUTHENTICATION PROTOCOL ACTION
SQL>
column entity_name format a11
column entity_type format a11
column success format a7
column failure format a7
select policy_name,
enabled_option,
entity_name,
entity_type,
success,
failure
from audit_unified_enabled_policies
where policy_name in ('HTTP_POL', 'FTP_POL', 'AUTH_POL');
POLICY_NAME ENABLED_OPTION ENTITY_NAME ENTITY_TYPE SUCCESS FAILURE
--------------- --------------- ----------- ----------- ------- -------
HTTP_POL BY USER ALL USERS USER YES YES
AUTH_POL BY USER ALL USERS USER NO YES
FTP_POL BY USER ALL USERS USER YES YES
SQL>
PROTOCOL_SESSION_ID NUMBER
PROTOCOL_RETURN_CODE NUMBER
PROTOCOL_ACTION_NAME VARCHAR2(32)
PROTOCOL_USERHOST VARCHAR2(128)
PROTOCOL_MESSAGE VARCHAR2(4000)
noaudit policy http_pol;
noaudit policy ftp_pol;
noaudit policy auth_pol;
drop audit policy http_pol;
drop audit policy ftp_pol;
drop audit policy auth_pol;Please to add comments
No comments yet. Be the first to comment!