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

Check User Authorization to a Plan?


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

New User


Joined: 04 Nov 2008
Posts: 11
Location: Chennai

PostPosted: Fri Nov 07, 2008 4:54 pm
Reply with quote

Please let me know how to check the User authorization for a Particular Plan in Mainframe DB2 ? Is there any system tables to refer to ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Nov 07, 2008 5:02 pm
Reply with quote

You will probably have to speak with your DBA's and/or security people.

AFAIK this can be done either internally via DB2 or via RACF (ACF2, TOP SECRET, A N Other). So would say initially that this question is site specific.
Back to top
View user's profile Send private message
r2k1984

New User


Joined: 21 Jun 2005
Posts: 69
Location: chennai

PostPosted: Tue Nov 11, 2008 11:25 am
Reply with quote

If the autorization is not there for the plan . the job will abend during compilation with the abend code as -913 .
Back to top
View user's profile Send private message
VVRAVINDRA

New User


Joined: 04 Aug 2008
Posts: 46
Location: Chennai

PostPosted: Tue Nov 11, 2008 11:53 am
Reply with quote

r2k1984 wrote:
If the autorization is not there for the plan . the job will abend during compilation with the abend code as -913 .


Well if it is not a PROD bind, in other words if it is for testing. Any user in your group who has access to the PLAN can give a grant command to PUBLIC...

SET CURRENT SQLID = '<DB2AUTHID>';
GRANT EXECUTE ON PLAN <PLANNAME>
TO PUBLIC;
Back to top
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Tue Nov 11, 2008 12:00 pm
Reply with quote

SYSIBM.SYSPLANAUTH table will give you the privileges that are held by users over application plans

You should have DBA access to view this table.
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Tue Nov 11, 2008 12:09 pm
Reply with quote

You can check the table SYSIBM.SYSPLANAUTH
Back to top
View user's profile Send private message
VVRAVINDRA

New User


Joined: 04 Aug 2008
Posts: 46
Location: Chennai

PostPosted: Tue Nov 11, 2008 12:19 pm
Reply with quote

Srihari Gonugunta wrote:
You can check the table SYSIBM.SYSPLANAUTH


All users will not have privilege to check the SYSPLANAUTH table.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Nov 11, 2008 12:21 pm
Reply with quote

but......
if the TS has the need to know, His support will be glad to grant the proper authorizations icon_biggrin.gif
Back to top
View user's profile Send private message
VVRAVINDRA

New User


Joined: 04 Aug 2008
Posts: 46
Location: Chennai

PostPosted: Tue Nov 11, 2008 12:23 pm
Reply with quote

Agreed, the humbleness of support lies in the necessity of the TS icon_biggrin.gif
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Tue Nov 11, 2008 8:25 pm
Reply with quote

Pardon my ignorance, but what is a "TS"?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Nov 11, 2008 8:35 pm
Reply with quote

TS Topic/Thread Starter
OP Original Post/Poster
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Tue Nov 11, 2008 8:42 pm
Reply with quote

Thanks.
Back to top
View user's profile Send private message
shrinivasabharathi_b

New User


Joined: 04 Nov 2008
Posts: 11
Location: Chennai

PostPosted: Thu Nov 13, 2008 12:34 pm
Reply with quote

Thanks all for your replies
In one of our system a webservice invoked our CICS transactions and abend with authorization issue -922. Spoke with our DBA and things resolved ..
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 SCOPE PENDING option -check data DB2 2
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts Check data with Exception Table DB2 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts user exit in IBM Infosphere Optim DB2 8
Search our Forums:

Back to Top