?
Solved

Revoking drop table

Posted on 2004-04-20
3
Medium Priority
?
649 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 400 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 August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free 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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

764 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