Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 E-mail Us
 Oracle Articles

 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Oracle Support

 SQL Tuning

 Oracle UNIX
 Oracle Linux
 Remote s
 Remote plans
 Application Server

 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S


 Consulting Staff
 Consulting Prices
 Help Wanted!


 Oracle Posters
 Oracle Books

 Oracle Scripts

Don Burleson Blog 








Oracle: export procedures & triggers

Oracle Tips by Burleson Consulting


Question:  How can I export and import stored procedures, functions and trigger definitions?


Answer:  The Oracle export utility (exp or expdp) exports the data dictionary entities associated with an object, and a full export grabs the entire data dictionary.


You can also join dba_objects into the dba_source views to get the source for all stored procedures functions and triggers.  If you don't want to write your own dictionary scripts, get my Oracle script collection.


When using export, you can extract the trigger definitions by specifying the table name and using the rows=n option in the export parfile:


expdp fred/flintstone tables=(fred), rows=n


Displaying stored procedure, function and trigger syntax is trickier because the import utility (imp or impdp) does not display dictionary objects in a display format.  To display dictionary entries with import, include the rows=n and  show=y parameters.


impdp fred/flintstone tables=(fred), show=y, rows=n


You can also use the dbms_metadata procedure to extract DDL and stored procedure, function and trigger definitions.  The dbms_metadata utility is also used for punching source code, PL/SQL, and Java that is stored inside Oracle packages. Stored procedures or functions can also easily be extracted using dbms_metadata:


connect fred/flintstone;

spool procedures_punch.lst

   user_objects u
   object_type = 'PROCEDURE';

spool off;

Get the Complete
Oracle Utility Information 

The landmark book "Advanced Oracle Utilities The Definitive Reference"  contains over 600 pages of filled with valuable information on Oracle's secret utilities. This book includes scripts and tools to hypercharge Oracle 11g performance and you can buy it for 30% off directly from the publisher.




oracle dba poster

Oracle performance tuning software 
Oracle Linux poster


Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.


Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


Copyright ? 1996 -  2014

All rights reserved by Burleson

Oracle ? is the registered trademark of Oracle Corporation.