Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Sunil.

Asked: April 28, 2022 - 4:05 pm UTC

Last updated: May 03, 2022 - 3:26 am UTC

Version: 11gR2

Viewed 1000+ times

You Asked

Hi,

Is it possible to track previously executed DCL (Data Control Language ) statements in Oracle 11g?

A user might have accidentally revoked privileges on a particular sequence. I need to know who ran the DCL statement and when.

Thanks in Advance!
Sunil

and Connor said...

Any statement *can* be tracked by auditing, but if you are not *already* auditing, then you won't be able to see when they occurred in the past.

https://docs.oracle.com/database/121/SQLRF/statements_4007.htm#SQLRF01107

Its a good idea to audit all DDL on a database in my opinion, or even log it in greater detail, eg

https://connor-mcdonald.com/2019/04/24/grab-all-the-ddl/

Is this answer out of date? If it is, please let us know via a Comment

More to Explore

Security

All of the vital components for a secure database are covered in the Security guide.