SELECT DBMS_METADATA.get_ddl('TRIGGER', TRIGGER_NAME, OWNER) FROM ALL_TRIGGERS -- or DBA_TRIGGERS, USER_TRIGGERS WHERE OWNER = 'swhema_name' AND TRIGGER_NAME = 'trigger_name';