I have a job that is owned by SYS that I would like to copy over from one oracle server to another (in a different data center location). What would be the best way to copy that job over? I tried running dbms_metadata.get_ddl but unable to because it is owned by SYS. Below is the output from the query.
SQL> select dbms_metadata.get_ddl('PROCOBJ','kill_hung_session') from dual;
ERROR:
ORA-31603: object "kill_hung_session" of type PROCOBJ not found in schema "SYS"
ORA-06512: at "SYS.DBMS_METADATA", line 5088
ORA-06512: at "SYS.DBMS_METADATA", line 7589
ORA-06512: at line 1
Thank you in advance.