DDL Event Security in Oracle Database | Database Journal

DDL Event Security in Oracle Database

Feb 11, 2004
2 minute read

We have various levels of security (inside and outside
of Oracle database) that can be implemented according to one’s requirements.
Mentioned here is a way of implementing security against structural changes or
Data Definition Language (DDL) changes. This security is put within the
database for logical objects.

What it means for the DBA

DDL commands are critical and cannot be rolled back. As a
norm, new developments/changes should be done on test boxes before promoting
them to Production. Such promotions to production can be done as scheduled
upgrades during off-peak hours or when a maintenance window is available as
system downtime. At all other times the system should be up and running as
desired.

DDL event security is aimed at preventing structural changes
when the site application is up and running. An application user may never fire
such commands explicitly or may not have access to do so, but then, this
security can be implemented in general and not aimed at a specific set of
users. For example, a script may be fired on the production database by the IT
teamin error.

Commands such as CREATE, ALTER, DROP and TRUNCATE can be
tracked and audited or prevented from executing. The requirement here is to
maintain the stability and availability of the system and prevent mishaps when
the users are working.

The idea is to track down DDL commands when they are fired.
This can be done using system event triggers introduced in Oracle 8i. Mentioned
below is a simple process that I use at my site. If you plan to set up
something similar, you can use the code below or modify it as per your needs.

Database Journal Logo

DatabaseJournal.com publishes relevant, up-to-date and pragmatic articles on the use of database hardware and management tools and serves as a forum for professional knowledge about proprietary, open source and cloud-based databases--foundational technology for all IT systems. We publish insightful articles about new products, best practices and trends; readers help each other out on various database questions and problems. Database management systems (DBMS) and database security processes are also key areas of focus at DatabaseJournal.com.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.