Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Discovered way to grant/revoke any right from any user!
No this is not some kind of crazy email. I've been an Oracle dba for five
years now and it always bothered me
that Oracle did not provide DBA's with a method of revoking/granting
privileges to users or between users
without loggin in as them and issuing the grant/revoke.
It bothered me enough to find a way to do it and I want to share it with the
rest
of the Oracle dba's who may be having this problem. At a very high level
what I do is use a
c program to modify the contents of an export file replacing create table
statements
and create index statements with a sql statement like "REVOKE SELECT ON
TABLE1
from USERA".
Here's how it works.
1) I found a table in the database that had grants on it. 2) I performed an export of a table without data 3) I had a friend of mine hack the export file with a C program. This mustbe done in C or a language that can edit/modify a binary file. We stripped out
Here's how the file looked after the hack.
EXPORT:V07.03.03
DTSMBTM
RTABLES
1024
0
Sun Apr 1111:32:17 1999
EXPORT:V07.03.03
DTSMBTM
RTABLES
1024
0
Sun Apr 1111:32:17 1999
![]() |
![]() |