Solved

Revoking drop table

Posted on 2004-04-20
3
640 Views
Last Modified: 2008-03-04
1) We have db2 7.2 on AIX 5.1 and windows NT 4/2000.

2) We have many tables created in a schema logged in as a particular user.

3) What is the process to enable revoke of drop table for these already created tables.

4) Do we have to do any OS level settings.
0
Comment
Question by:k_murli_krishna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Expert Comment

by:ghp7000
ID: 10879932
db2 revoke dropin on schema <schema name> from user xxxx; OR
db2 revoke dropin on schema <schema name> from group xxxx;
you do not need to change any OS settings
0
 
LVL 17

Author Comment

by:k_murli_krishna
ID: 10907320
When I grant create table and createin I am able to create a table. Then although dropin is revoked I am able to drop the table if I am connected with same user with which I created the table.

How can I prevent dropping of tables connected as a user with whom I created the tables originally. Is this a bug in DB2 or a RDBMS standard.
0
 
LVL 13

Accepted Solution

by:
ghp7000 earned 100 total points
ID: 10924649
this is the standard, the user who created the table has control over the table. If you try and revoke the control privlidge from the user who 'owns' the table, you will get SQL0555N, An authorization ID cannot revoke a privilege from itself.
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question