IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Getting issue in revoking PUBLIC AT ALL LOCATION in V10


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Thu Nov 29, 2012 4:37 pm
Reply with quote

Hi All,

We have recently migrated our DB2 from V9 to V10. We have tables which have authorization as below
For example Y2002.CLM table has below authorization of table

Code:
Grantor  Grantee  T Schema   Name
*        *        * *        *   
-------- -------- - -------- -----
Y2002    Y2002      Y2002    CLM 
DBAADMT4 PUBLIC*    Y2002    CLM 

We want to revoke access from PUBLIC at all location

Tried couple of options but nothing is working like
Code:

   REVOKE ALL ON TABLE Y2002.CLM FROM PUBLIC AT ALL LOCATIONS;                 
SQLERROR ON   REVOKE    COMMAND, PREPARE   FUNCTION                             
 RESULT OF SQL STATEMENT:                                                       
 DSNT408I SQLCODE = -199, ERROR:  ILLEGAL USE OF KEYWORD AT.  TOKEN <END-OF-STAT
 DSNT418I SQLSTATE   = 42601 SQLSTATE RETURN CODE                               
 DSNT415I SQLERRP    = DSNHPARS SQL PROCEDURE DETECTING ERROR                   
 DSNT416I SQLERRD    = 2  0  0  -1  43  506 SQL DIAGNOSTIC INFORMATION         
 DSNT416I SQLERRD    = X'00000002'  X'00000000'  X'00000000'  X'FFFFFFFF'  X'000
          INFORMATION                                                           


Please advise how we can rvoke this access except dropping and recreating table.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri Nov 30, 2012 4:57 pm
Reply with quote

REVOKE ALL ON Y2002.CLM FROM PUBLIC AT ALL LOCATIONS;
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Dec 18, 2012 10:15 pm
Reply with quote

Its not working guyc
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Dec 19, 2012 2:08 am
Reply with quote

Quote:
Its not working

How about the rest of your post explaining in which way it is not working?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed Dec 19, 2012 2:10 am
Reply with quote

Nic Clouston wrote:
Quote:
Its not working

How about the rest of your post explaining in which way it is not working?

The board's not working, either icon_lol.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Facing ABM3 issue! CICS 3
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
Search our Forums:

Back to Top