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
Related Q&A from Brian Peasland
Oracle expert Brian Peasland answers one reader's question about common pitfalls when connecting Oracle to outside programs.continue reading
One reader asks expert Brian Peasland a question about datafile sizes with the Oracle RMAN duplicate 10g command.continue reading
Managing parent table-child table relations in Oracle SQL environments is key to efficient programming.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.