If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Retrieving Stored Procedures

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-03-05, 15:25
rajym rajym is offline
Registered User
 
Join Date: Oct 2004
Posts: 29
Retrieving Stored Procedures

I ran into a situation where I need to retrive all the user defined stored procedures from the DB2 database. Here's the scenario => I have a DB2 database v7.2 on AIX where all the stored procedures are created and functioining properly. I have performed a redirected restore of this database on to a new one. Now I need to run the stored procedures on this newly created database. Unfortunately I lost the stored procedures source code. Is there a way that I can retrieve the stored procedures in a source code format by any chance. Please let me know if there are any options.

Thanks

- Raj
Reply With Quote
  #2 (permalink)  
Old 02-03-05, 16:44
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I use the attached Windows command file to extract SP source code. I'm sure you will be able to easily convert it into a shell script
Attached Files
File Type: txt exp_sp_code.bat.txt (2.0 KB, 70 views)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On