Database Administration (MOSC)

MOSC Banner

Audit all sql statements - sysdba users and non sysdba users

edited Jun 26, 2017 5:16PM in Database Administration (MOSC) 12 commentsAnswered

Hello All,

I have a centralized monitoring tool and i want to configure auditing on oracle database to write all events to syslog and then forward those logs to my monitoring tool.

I have set my parameter audit_trail=os and audit_syslog_level=local0.warning.

As sys user, I am able to get all my output as expected..this is shown below:

May 29 09:49:26 LiveDB Oracle Audit[14692]: [ID 748625 local0.info] LENGTH : '183' ACTION :[30] 'select username from dba_users' DATABASE USER:[1] '/' PRIVILEGE :[6] 'SYSDBA' CLIENT USER:[6] 'oracle' CLIENT TERMINAL:[5] 'pts/3' STATUS:[1] '0' DBID:[10] '2881474030'

The problem is when am connected as another user, I don't get the action field. It appears as below whenever am running a sql statement:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center