Solved

Revoking drop table

Posted on 2004-04-20
3
626 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

861 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now