---------------- getcode.sql ------------------------------- prompt Exporting User code.... set feedback off set heading off set termout off set linesize 3000 set trimspool on set verify off prompt set define off spool c:\policecode.sql select text from ( select a.name, a.type, a.line, decode(line,1,'create or replace ', '' ) || text as text from user_source a union select a.name, a.type, 9000000000 as line, '/' from user_source a order by name,type, line); spool off prompt set define on set feedback on set heading on set termout on set linesize 100 -----------------------------------------------------
various observations, solutions and frustrations on programming java and .net.
Thursday, April 14, 2011
Script to export all pl/code in an oracle database
Subscribe to:
Posts (Atom)