Skip to Main Content

SQLcl

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Export DDL for table without trigger definition?

Hi,

Currently we're using DBMS_METADATA.get_ddl to extract DDL for objects. While exploring the possibilty to move to SQLcl's DDL-command I've come across an annoying difference when exporting table-definitions.

When using DBMS_METADATA we get the DDL for creating the table, indexes and constraints. But when using the DDL command in SQLcl there are a couple of extra sections in the resulting file we dont' need/want at the moment. These are the column- and table-comments, triggers and an insert-statement (trying to insert rows from an identical table over a non-existing db-link).

So, my question is if it is possible to leave the extra stuff described out when exporting table-DDL using SQLcl's DDL-command? And if so, how can this be achieved?

(db version 19.20.x, SQLcl version 24.2)

Comments
Post Details
Added on Sep 24 2024
0 comments
34 views