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.
 select dbms_metadata.get_ddl('PROCOBJ','-SCH_JOB_NAME-','-OWNER-') from dual;  
Not sure where they came up with PROCOBJ. :D


Comments

Popular posts from this blog

ORA-16433: The database or pluggable database must be opened in read/write

Oracle Multitenant - Create new service for PDB using DBMS_SERVICE

Wait for unread message on broadcast channel - Blocking Sessions