Solved

Copy of a workflow package.pkb and .pkh from production database

Posted on 2013-06-14
4
351 Views
Last Modified: 2013-06-17
I need to make a copy of a particular workflow_pkg.pkb and workflow_pkg.pkh from my production database. How do I do this? Please help.
0
Comment
Question by:k3vsmith
  • 2
4 Comments
 

Author Comment

by:k3vsmith
ID: 39248756
Im using Toad and have privileges...
0
 
LVL 20

Assisted Solution

by:flow01
flow01 earned 200 total points
ID: 39249782
search for the  dbms_metadata package  to get  package definitions

and probably you can also view the source in toad , copy / paste into a text file ,
may be add a "create or replace"  statement and use the text file to create the package in another database
0
 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 300 total points
ID: 39251599
In TOAD:

1) Select the owner schema from top-left drop down.
2) Select the package from the list (or drop down).
3) Click on "Script"
4) Right-click on the code or click on the "copy to clipboard (or editor window)
6) Paste (or copy + paste) into your text editor.
:p
Or...as was posted: From SQL*Plus session use the DBMS_METADATA package to get the DDL for that package.
0
 

Author Comment

by:k3vsmith
ID: 39253186
Perfect thanks!
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Oracle 12c database link between pdb not working 20 127
Oracle sql query 7 76
oracle date format checking 7 27
DECLARATION OF CURSOR IS INCOMPLETE OR MALFORMED 5 25
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question