How to trace the exact create table statement that was used to create a table?

advertisements

Is it possible to trace back the exact create table statement that was used to create a table ?

Thanks, Trinity.


Have a look at DBMS_METADATA.GET_DDL. Note this will only retrieve the DDL required to create the table in it's current state, not necessarily the DDL used to create the table initially.

This statement illustrates:

SELECT DBMS_METADATA.GET_DDL('TABLE','<my_tab>') FROM dual;