Microsoft
Software
Hardware
Network
Question : Revoke access on all tables
I have some 2000 tables with different previlages granted on them can use one statment like below to revoke all of them
revoke all on
from
;
I will have to execute above statement for each table, instaed can i use something like ALL or anyother keywords.
Thanks,
rajeev
Answer : Revoke access on all tables
you cannot do it with ALL
but you can do it with one script:
here is the short one:
set termout off
set feedback off
set heading off
set trimspool on
set linesize 200
set pagesize 0
spool revoke_all.sql
select 'revoke all on ' || table_name|| ' from
;' from all_tables where owner not in ('SYS', 'SYSTEM');
spool off
@revoke_all.sql
save this in a file , say test.sql
and call this file in sqlplus
SQL> @test.sql
that will be it
Random Solutions
Mixing query hints - parallel and index
bad magic number?
Open File Security Warning issue in XP
Cannot connect to Exchange SMTP from outside intranet
Stop: 0x0000007B Inaccessible_Boot_Device after rebooting server
MS Excel Date formulas/functions, need help setting something up.
Datediff parameter
Need a PowerShell script to list shares and share permissions residing on a remote server
Domain Admin can't login to a vista computer if locked by a user, why?
Can't print from firefox