• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 335
  • Last Modified:

Oracle db object backup through sqlplus

How to take specific db object backup using sqlplus login.
  • 2
1 Solution
slightwv (䄆 Netminder) Commented:
What type of object?  
What do you consider a 'backup'?
vsorakeAuthor Commented:
I need to take back up of specific procedure, function,package and trigger objects.

Is there any way I can achieve the task through script?
slightwv (䄆 Netminder) Commented:
Check out dbms_metadata.get_ddl:


Just pass in the different object_types and names.

For example a procedure called 'MYPROC' would go something like:

select dbms_metadata.get_ddl('PROCEDURE','MYPROC') from dual;
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now