SELECT UPPER(VALUE)
FROM V$SYSTEM_PARAMETER
WHERE UPPER(NAME) = 'AUDIT_SYS_OPERATIONS';
From Oracle 12.1 this defaults to TRUE (in 11.2 and earlier the default was FALSE)ALTER SYSTEM SET AUDIT_SYS_OPERATIONS = TRUE SCOPE=SPFILE;
Changes to this parameter will take effect at next instance startupSELECT UPPER(VALUE)
FROM V$SYSTEM_PARAMETER
WHERE UPPER(NAME)='AUDIT_TRAIL';
ALTER SYSTEM SET AUDIT_TRAIL = none SCOPE = SPFILE;
This setting does NOT meet the CIS Benchmark requirement.Changes to this parameter will take effect at next instance startupThis is the default if the parameter is not setThis setting disables standard auditing.
ALTER SYSTEM SET AUDIT_TRAIL = db SCOPE = SPFILE;
This setting meets the CIS Benchmark requirementChanges to this parameter will take effect at next instance startupThis is the default if the database is built using DBCAALTER SYSTEM SET AUDIT_TRAIL = db, extended SCOPE = SPFILE;
This setting meets the CIS Benchmark requirementChanges to this parameter will take effect at next instance startupWrites audit records to the SYS.AUD$ Table (which is visible through the DBA_AUDIT_TRAIL view).
"extended" means that the first 2000 character of the SQL command get written to DBA_AUDIT_TRAIL.SQL_TEXT.
ALTER SYSTEM SET AUDIT_TRAIL = os SCOPE = SPFILE;
This setting meets the CIS Benchmark requirementChanges to this parameter will take effect at next instance startupThis is the Oracle recommended settingIt also allows the log to be monitored using tools like SplunkWrites audit records to an operating system file.
ALTER SYSTEM SET AUDIT_TRAIL = xml SCOPE = SPFILE;
This setting meets the CIS Benchmark requirementChanges to this parameter will take effect at next instance startupALTER SYSTEM SET AUDIT_TRAIL = xml, extended SCOPE = SPFILE;
This setting meets the CIS Benchmark requirementChanges to this parameter will take effect at next instance startupWrites audit records to an operating system file in XML format.