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 > Is "Module" similar with Oracle's package ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-09-11, 03:55
amcc38 amcc38 is offline
Registered User
 
Join Date: Oct 2011
Posts: 12
Question Is "Module" similar with Oracle's package ?

Dear sir,

I'm a newbie in DB2 SQL/PL. I would like to know "module" is similar with Oracle's package ?

I want to group all store procedure, function into the module. Then, call it from program. If so, should I need to put the module name together with the procedure/ function name when call it ?

e.g. module name is "Test"; function name is "Isnumber". Then, call it "Test.Isnumber()".

Besides, anything I also need to create or build ? Should I need to generate DDL for such module ? Should I grant access right to each module for end user ?

Thanks !
Reply With Quote
  #2 (permalink)  
Old 11-09-11, 07:57
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Modules are somewhat similar to Oracle packages. In fact, packages are implemented as modules by DB2 when Oracle compatibility feature is enabled.

You'll find more details here: Modules - IBM DB2 9.7 for Linux, UNIX, and Windows
Reply With Quote
  #3 (permalink)  
Old 11-10-11, 02:09
amcc38 amcc38 is offline
Registered User
 
Join Date: Oct 2011
Posts: 12
Quote:
Originally Posted by n_i View Post
Modules are somewhat similar to Oracle packages. In fact, packages are implemented as modules by DB2 when Oracle compatibility feature is enabled.

You'll find more details here: Modules - IBM DB2 9.7 for Linux, UNIX, and Windows
Thanks a lot.
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