My Oracle Support Banner

How to See the New Source Code When Using AFTER DDL Trigger? (Doc ID 966537.1)

Last updated on FEBRUARY 03, 2019

Applies to:

PL/SQL - Version: - Release: 10.2
Information in this document applies to any platform.


When using an AFTER DDL trigger then it's not possible to see the source of the renewed code from DBMS_METADATA.GET_DDL after creation. The AFTER DDL trigger fires before the commit of the current DDL statement. The trigger is executed in the transaction of the triggering event. At the time triggers are executed, the dictionary changes have not been commited yet.

Therefore the commit is to execute within a procedure called by a job.
The trigger needs to execute autonomously.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.