473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

One stop shop revoke tool


I'm not sure if DB2 has a tool specifically for this, but I was
wondering if there's a revoke tool that will completely wipe a
group/user off the database without having to revoke from the table
level, index level, etc

Thanks,
Chris

Dec 5 '05 #1
8 1699
Ian
cb******@gmail.com wrote:
I'm not sure if DB2 has a tool specifically for this, but I was
wondering if there's a revoke tool that will completely wipe a
group/user off the database without having to revoke from the table
level, index level, etc


In Control Center, if you find the User or Group you want and select
"Remove" this should revoke all privileges.

Dec 5 '05 #2
Ahh yes the lovely Control Center, is there any way to do it from the
CLP?

Dec 5 '05 #3
cb******@gmail.com wrote:
Ahh yes the lovely Control Center, is there any way to do it from the
CLP?

Sure it's called CREATE PROCEDURE and CALL :-)
Should be less than 20 lines of SQL PL.
And takes about 1min to post teh script for subsequent generations in
this group :-)

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Dec 6 '05 #4
In article <3v*************@individual.net>, sr*****@ca.ibm.com says...
cb******@gmail.com wrote:
Ahh yes the lovely Control Center, is there any way to do it from the
CLP?

Sure it's called CREATE PROCEDURE and CALL :-)
Should be less than 20 lines of SQL PL.
And takes about 1min to post teh script for subsequent generations in
this group :-)

Cheers
Serge


With the following SYSCAT tables more then 20 lines might be needed :)

COLAUTH
DBAUTH
INDEXAUTH
LIBRARYAUTH
PACKAGEAUTH
PASSTHRUAUTH
ROUTINEAUTH
SCHEMAAUTH
SEQUENCEAUTH
TABAUTH
TBSPACEAUTH
XMLOBJECTAUTH
Dec 6 '05 #5
Gert van der Kooij wrote:
In article <3v*************@individual.net>, sr*****@ca.ibm.com says...
cb******@gmail.com wrote:
> Ahh yes the lovely Control Center, is there any way to do it from the
> CLP?
>

Sure it's called CREATE PROCEDURE and CALL :-)
Should be less than 20 lines of SQL PL.
And takes about 1min to post teh script for subsequent generations in
this group :-)

Cheers
Serge


With the following SYSCAT tables more then 20 lines might be needed :)

COLAUTH
DBAUTH
INDEXAUTH
LIBRARYAUTH
PACKAGEAUTH
PASSTHRUAUTH
ROUTINEAUTH
SCHEMAAUTH
SEQUENCEAUTH
TABAUTH
TBSPACEAUTH
XMLOBJECTAUTH


I'd think that you're tempting us to actually verify this. ;-)

But given that you can write a single SELECT statement that covers all the
tables (using UNION), and given that a SELECT can be written in a single
line, I get about 5 to 10 lines that are needed in total.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Dec 6 '05 #6
In article <dn**********@lc03.rz.uni-jena.de>, st****@de.ibm.com says...
Gert van der Kooij wrote:
In article <3v*************@individual.net>, sr*****@ca.ibm.com says...
cb******@gmail.com wrote:
> Ahh yes the lovely Control Center, is there any way to do it from the
> CLP?
>
Sure it's called CREATE PROCEDURE and CALL :-)
Should be less than 20 lines of SQL PL.
And takes about 1min to post teh script for subsequent generations in
this group :-)

Cheers
Serge

With the following SYSCAT tables more then 20 lines might be needed :)

COLAUTH
DBAUTH
INDEXAUTH
LIBRARYAUTH
PACKAGEAUTH
PASSTHRUAUTH
ROUTINEAUTH
SCHEMAAUTH
SEQUENCEAUTH
TABAUTH
TBSPACEAUTH
XMLOBJECTAUTH


I'd think that you're tempting us to actually verify this. ;-)


That's right :)
But given that you can write a single SELECT statement that covers all the
tables (using UNION), and given that a SELECT can be written in a single
line, I get about 5 to 10 lines that are needed in total.


You also need different revoke statements, but maybe they can be created
in the select statement already. I will give it a try at home tonight
(after watching soccer).
Dec 6 '05 #7
Gert van der Kooij wrote:
In article <dn**********@lc03.rz.uni-jena.de>, st****@de.ibm.com says...
Gert van der Kooij wrote:

In article <3v*************@individual.net>, sr*****@ca.ibm.com says...

cb******@gmail.com wrote:

>Ahh yes the lovely Control Center, is there any way to do it from the
>CLP?
>

Sure it's called CREATE PROCEDURE and CALL :-)
Should be less than 20 lines of SQL PL.
And takes about 1min to post teh script for subsequent generations in
this group :-)

Cheers
Serge
With the following SYSCAT tables more then 20 lines might be needed :)

COLAUTH
DBAUTH
INDEXAUTH
LIBRARYAUTH
PACKAGEAUTH
PASSTHRUAUTH
ROUTINEAUTH
SCHEMAAUTH
SEQUENCEAUTH
TABAUTH
TBSPACEAUTH
XMLOBJECTAUTH


I'd think that you're tempting us to actually verify this. ;-)

That's right :)
But given that you can write a single SELECT statement that covers all the
tables (using UNION), and given that a SELECT can be written in a single
line, I get about 5 to 10 lines that are needed in total.

You also need different revoke statements, but maybe they can be created
in the select statement already. I will give it a try at home tonight
(after watching soccer).

That would be Schalke vs Milan?
Knut is right with the UNION (ALL). But I do grant you one line per arm.
An a CASE expression should be able to nicely figure out the rest.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Dec 6 '05 #8
In article <3v*************@individual.net>, sr*****@ca.ibm.com says...
Gert van der Kooij wrote:
In article <dn**********@lc03.rz.uni-jena.de>, st****@de.ibm.com says...
Gert van der Kooij wrote:
In article <3v*************@individual.net>, sr*****@ca.ibm.com says...

>cb******@gmail.com wrote:
>
>>Ahh yes the lovely Control Center, is there any way to do it from the
>>CLP?
>>
>
>Sure it's called CREATE PROCEDURE and CALL :-)
>Should be less than 20 lines of SQL PL.
>And takes about 1min to post teh script for subsequent generations in
>this group :-)
>
>Cheers
>Serge
>

With the following SYSCAT tables more then 20 lines might be needed :)

COLAUTH
DBAUTH
INDEXAUTH
LIBRARYAUTH
PACKAGEAUTH
PASSTHRUAUTH
ROUTINEAUTH
SCHEMAAUTH
SEQUENCEAUTH
TABAUTH
TBSPACEAUTH
XMLOBJECTAUTH

I'd think that you're tempting us to actually verify this. ;-)

That's right :)
But given that you can write a single SELECT statement that covers all the
tables (using UNION), and given that a SELECT can be written in a single
line, I get about 5 to 10 lines that are needed in total.

You also need different revoke statements, but maybe they can be created
in the select statement already. I will give it a try at home tonight
(after watching soccer).

That would be Schalke vs Milan?


PSV vs Fenerbahce
Knut is right with the UNION (ALL). But I do grant you one line per arm.


Thank you very much :)

Dec 6 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Denis Martineau | last post by:
Some user accounts have been created some time ago and we have just found out that they were given privileges they should not have. However, I have no idea which account was used to create them and...
0
by: Ray | last post by:
I'm adding a table that needs to be more secured than the others, so I want to do a REVOKE ALL ON tablename.* from root but I get an error back There is no such grant defined for user 'root'...
0
by: luther | last post by:
Did this: revoke all on D_name_01.* from trial_user_01; and got this response: ERROR 1141 at line 4: There is no such grant defined for user 'trial_user_01' on host '%'
2
by: teogra | last post by:
I have written an stored proc that reads from a text file and executes the script as dynamic sql. If the text file contains malicious code,I want to be able to detect it and prevent the stored...
1
by: John Wheeler | last post by:
Hi, I want to create the following stored procedure on a DB2 8.1 ESE no fixpack running on redhat linux 8.0 (Intel) CREATE PROCEDURE ADMIN.MYREVOKE ( ) MODIFIES SQL DATA BEGIN REVOKE...
1
by: jason | last post by:
In a small shop with 3 .net developers. What would typically be considered a good deployment practice if there is a chance of developers might be working on the same websites at the same time? ...
2
by: killbill | last post by:
Hi All, I am struggling with a problem but no fate till now. I have written a c# program which retrieve X509Certificates associated with Active Directory user. Now i want to revoke a selected...
7
by: Daniele | last post by:
Hi I want to build a shop from scratch, i'm laying down all the possible problem i can find during the way. how can i structure the database to be able to add unlimited properties or attribute to...
2
by: Yves Gagnon | last post by:
Hi, I need to develop a WCF on a ms certificat autority that will revoke an existing certificate. My question: how to do that ? witch tool (c#) ? Do you have sample code that do that ? Thanks...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.