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 > creatin\dropin

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-13-07, 08:31
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
creatin\dropin

db2 8.2.7
win 2000

I have to give creatin,dropin priv. on a schema to a user so that they can
debug SP .
Now by Giving these priv. they can also drop Tables in that schema which i want to avoid.
What is the way out, so that they can drop/create the procedures but wont be able to Drop tables in the schema
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #2 (permalink)  
Old 03-13-07, 08:56
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The only thing I can think of is to make them put their routines in a separate schema and grant the rights there.

Andy
Reply With Quote
  #3 (permalink)  
Old 03-13-07, 11:54
vini_srcna vini_srcna is offline
Registered User
 
Join Date: May 2006
Posts: 82
First of all why you have to give privilege on Schema..?
Cant you grant it only for that particular SP..?
__________________
Vinay,
Reply With Quote
  #4 (permalink)  
Old 03-13-07, 11:59
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Quote:
Originally Posted by vini_srcna
First of all why you have to give privilege on Schema..?
Cant you grant it only for that particular SP..?
How do you grant create rights to a SP that does not exist?

That is why you need creatin right for the schema.

Andy
Reply With Quote
  #5 (permalink)  
Old 03-13-07, 12:30
vini_srcna vini_srcna is offline
Registered User
 
Join Date: May 2006
Posts: 82
ohh OK..i was thinking if you have to alter the existing one.
__________________
Vinay,
Reply With Quote
  #6 (permalink)  
Old 03-14-07, 00:41
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
No , i have to keep SP and tables in the Same Schema.
Recently a important Table was dropped by some user because of the schema priv.
It seems to me a big security concern.
I believe there must be a way out ,which we are missing
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #7 (permalink)  
Old 03-14-07, 07:25
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Revoke the DROPIN privilege on the schemas and manage things via CONTROL privileges on the single objects or the DEFINER.

http://publib.boulder.ibm.com/infoce...c/r0000945.htm
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #8 (permalink)  
Old 03-15-07, 01:03
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
Hi Knut
Thanks for your reply.
1 more solution that i have got
Revoking alterin from schema
and then altering all tables in the schema to restrict drop.

alter table eone.pTest124 add restrict on drop ;
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
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