SELECT dbms_metadata.get_ddl('PROCEDURE','SCOTT','PROC1') FROM dual;The above will generate the CREATE PROCEDURE command for SCOTT's PROC1 procedure.
Dig deeper on Oracle and SQL
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.