Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / January 2005

Tip: Looking for answers? Try searching our database.

revoking select from all tables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Sands - 19 Jan 2005 10:09 GMT
Hi,
Is it possible to revoke from public select from 'all' tables, in one command.

thanks
pete
db2 v 8.2
Mark A - 19 Jan 2005 14:20 GMT
> Hi,
> Is it possible to revoke from public select from 'all' tables, in one command.
>
> thanks
> pete
> db2 v 8.2

No, but you can revoke the ability to connect (granted by default to public)
to the database.
Another DB2 UDB DBA - 21 Jan 2005 07:05 GMT
You could generate a list of revoke statements by selecting against the
system catalog:

select 'revoke select on table',
rtrim(tabschema)||'.'||tabname,
'from public'
from syscat.tables
where type='T'
and tabschema not like 'SYS%'
;

If you ran that query from the DB2 CLP with options -txz
<outputfilename>, you could run the resulting file with db2 -f
Is that kind of what you're looking for?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.