Getting Scheduler job ddl - Procobj
We can use dba_source and dbms_metadata.get_ddl when extracting code from db objects. Something that wasn't clear was code for scheduler jobs.
Below is the syntax for extracting scheduler job code using dbms_metadata.get_ddl.
Below is the syntax for extracting scheduler job code using dbms_metadata.get_ddl.
select dbms_metadata.get_ddl('PROCOBJ','-SCH_JOB_NAME-','-OWNER-') from dual;
Not sure where they came up with PROCOBJ. :D
Comments
Post a Comment