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 > functions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-08, 11:53
dareman123 dareman123 is offline
Registered User
 
Join Date: Dec 2007
Posts: 30
functions

Hi All
there is a function(user defined) by name mno.abc_def in syscat.functions in a production server. i want that function to be deployed in development server.
i am using db2V8.2 fp5-solaris.
can any plz tell me how to do that and what all things do i need to check during the deployment. any help would be appreciated.

Thanks..
Reply With Quote
  #2 (permalink)  
Old 01-08-08, 12:31
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What is the language of the function?

Andy
Reply With Quote
  #3 (permalink)  
Old 01-08-08, 12:55
dareman123 dareman123 is offline
Registered User
 
Join Date: Dec 2007
Posts: 30
functions

the language is SQL
Reply With Quote
  #4 (permalink)  
Old 01-08-08, 13:07
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Simple...

1) connect to production DB
2) SELECT text from syscat.routines where routineschema = 'MNO' and routinename = 'ABC_DEF'
3) connect to development in command editor
4) cut output from 2 into command editor and run

Andy
Reply With Quote
  #5 (permalink)  
Old 01-08-08, 13:16
dareman123 dareman123 is offline
Registered User
 
Join Date: Dec 2007
Posts: 30
Thanks andy..
Reply With Quote
  #6 (permalink)  
Old 01-09-08, 07:43
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Alternative: db2look -e -z mno
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #7 (permalink)  
Old 01-09-08, 07:58
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The Developer Workbench can also be used.

Andy
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