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 > grant procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-29-11, 04:51
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
grant procedure

DB2 ESE 9.5 fp8 on p-linux
we are having some procedures and executed grants on these
now we have procedures, with different parmlist
I can see that db2look can extract/recreate this grant similar to
GRANT EXECUTE ON PROCEDURE "CLSM "."SAVE_WAITING_FILE"(BIGINT,VARCHAR(),VARCHAR(),V ARCHAR(),BIGINT,BIGINT,VARCHAR(),BIGINT,INTEGER,IN TEGER,BLOB(),VARCHAR(),TIMESTAMP,SMALLINT,SMALLINT ,BIGINT) TO GROUP "DDB2CLSMAPP";
we want to re-create grant statements but need this parmlist
does anybody knows how we can find this back from the catalog without having to execute the db2look
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #2 (permalink)  
Old 07-29-11, 06:33
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Guy, I prefer to use specific name instead of using parameters. Easy to get from catalog . simple to read as well if SPECIFICNAME has been used in procedure creation.

IBM DB2 9.7 for Linux, UNIX and Windows Information Center

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 07-29-11, 06:57
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
yes, but in my case not possible as specific name is a generated name SQL110408133155500
thanks for the update......
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #4 (permalink)  
Old 07-29-11, 08:00
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Instead of getting the parmlist from the catalog , you can just get the specific name. Atleast it is easy.

If you want to use the 'expanded' version, examples to build what you want are here
Script Library
Result of ALTER TABLE on VIEW

join of syscat.routineparms and syscat.routines will be required.

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 07-30-11, 13:20
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
My suggestion would be to create all procedures with an explicit specific name instead or one created by DB2. That way you can avoid all those hassles.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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