Mauro Papandrea, January 15, 2025 - 4:03 pm UTC
First of all, thank you for your time
I used this:
AUDIT CONNECT WHENEVER NOT SUCCESSFUL;
Here there are 2 sample records:
Scott.Tiger scott_RW scott1 tiget 13/01/2025 09:13:57 SYS HISTGRM$ 3 SELECT 15255520 11 39 0 13/01/2025 09:13:57,468123 +01:00 0 12881 15001800DD29CA00 10568259494109 #1(6):571092 #2(1):2 SELECT BUCKET, ENDPTHASH, ENDPTVAL, UTL_RAW.CAST_TO_RAW(ENDPTVAL) ENDPTVAL_RAW FROM SYS.EXU8HSTU WHERE POBJID = :1 AND INTCOL = :2 ORDER BY BUCKET 3271397905 scott_RW
Scott.Tiger scott_RW scott1 tiget 13/01/2025 09:13:57 SYS HIST_HEAD$ 3 SELECT 15255520 15 39 0 13/01/2025 09:13:57,538437 +01:00 0 12881 1800120010F72400 10568259494550 #1(6):571092 #2(1):3 SELECT BUCKET, ENDPTHASH, ENDPTVAL, UTL_RAW.CAST_TO_RAW(ENDPTVAL) ENDPTVAL_RAW FROM SYS.EXU8HSTU WHERE POBJID = :1 AND INTCOL = :2 ORDER BY BUCKET 3271397905 scott_RW
I just changed e few values ( username, terminal, os_username )
I used:
SELECT * FROM DBA_AUDIT_TRAIL
where owner = 'SYS'
and a few filter conditions, just to get a couple of records
I am pretty sure that non even a tool can have queried sys table because that user ( and all the others as well ) have just a minimum set of privileges that allows only to query ( and write ) tables from a single schema, no system wide privileges such as select any table
I am not using unified auditing, is your command for reset audit trail still valid?
Regards
Mauro
January 15, 2025 - 6:01 pm UTC
Those queries return histogram details. While it's unlikely anything runs those queries directly, they may be run recursively for anything that's getting column information - for example the info command in SQLcl/SQL Developer. I can see that this generates similar audit records for me.
e.g. try running:
info <some_table>
and you'll likely see new entries in the audit.
Good spot on the command - the idea is still valid; set the first parameter to whatever it is you want to clean. Find the values at:
https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_AUDIT_MGMT.html#GUID-1EB3BBB1-4FC3-4BC3-8490-8300C950AC27__BABIDGEA That said, traditional auditing is desupported in 23ai. You really should be moving to unified auditing.
Mauro Papandrea, January 16, 2025 - 2:22 pm UTC
However this behavior does not show in previous versions ( at least not in versions < 12, I have no 12 at hand to try right now ).
I wonder what might be the usage of those records, namely the origin behind this change.
Of course it is not a great problem, just curious about it
As to version 23, was it already released on premises as well?
I was unable to find it, the last version I can see is 19
Regards
Mauro Papandrea
Mauro Papandrea, January 20, 2025 - 10:08 am UTC
Thank you very much
Have a nice day
Mauro