Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 895
  • Last Modified:

Oracle Audit

How can I know which audit option is currently enabled in Oracle database?

e.g.
If I type
AUDIT DATABASE LINK BY SESSION WHENEVER SUCCESSFUL;

the Oracle database will start auditing this right?

But how can I know all the audit rules and setting that are enabled in Oracle?

Is it just query the DBA_AUDIT_TRAIL table?

I don't think so....
Which table can I find out Oracle is curerntly auditing the above statement?
0
mawingho
Asked:
mawingho
  • 2
3 Solutions
 
Naveen KumarProduction Manager / Application Support ManagerCommented:
check these views :

DBA_PRIV_AUDIT_OPTS
DBA_STMT_AUDIT_OPTS
DBA_OBJ_AUDIT_OPTS

Related to FGA ( fine grained auditing )
DBA_AUDIT_POLICIES
DBA_AUDIT_POLICY_COLUMNS
0
 
Naveen KumarProduction Manager / Application Support ManagerCommented:
i think these 3 should have what you are looking for. ( add where clauses accordingly ) :

select * from DBA_PRIV_AUDIT_OPTS

select * from DBA_STMT_AUDIT_OPTS

select * from DBA_OBJ_AUDIT_OPTS
0
 
slightwv (䄆 Netminder) Commented:
nav_kum_v is correct.  

Just wanted to add:  Always start in the docs.

Using Data Dictionary Views to Find Information About the Audit Trail

http://download.oracle.com/docs/cd/E11882_01/network.112/e16543/auditing.htm#DBSEG485
0
 
mawinghoAuthor Commented:
thanks
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now