简体   繁体   中英

How I can take backup of selected Procedures or Functions from Oracle database

I want to save selected procedures and functions for backup purposes in .prc file format. As of now I am doing this manually by the help of PLSQL Developer.

I have found some solutions, but none worked for me. Here is an example.

  1. expdp schemas=Test, include= procedure like 'abc%';

and here is the error while executing the above script.

SP2-0734: unknown command beginning "expdp sche..." - rest of line ignored.

Please help me if there is any way to automate this manual effort.

you can try this

 SELECT TEXT FROM
 ALL_SOURCE 
 WHERE NAME LIKE '%abc%'
 TYPE='PACKAGE BODY'
 ORDER BY LINE

distinct type

PROCEDURE , PACKAGE ,PACKAGE BODY, TYPE BODY, TRIGGER ,FUNCTION ,TYPE

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM