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

issue with grant


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

New User


Joined: 23 Jul 2007
Posts: 26
Location: India

PostPosted: Wed Jul 13, 2011 2:56 pm
Reply with quote

Hi All,

I am facing issues while granting access on the views to other users in DB2 v10

I have created a table TAB1 using ID1 and granted select on those tables to others. for eg: ID2 using

GRANT SELECT ON TAB1 to ID2;

the above statment is successful

I have created a view VIEW1 on TAB1 and trying to grant select on that view to ID2. It is failing with insufficient authority to grant on view

when I query, SYSIBM.SYSTABAUTH for table, SELECTAUTH has G which means, it has an option to grant to other users

However, when I query SYSIBM.SYSTABAUTH for view, under SELECTAUTH only Y is there and no with grant option G.

The creator of the view is not getting with Grant option.

ID1 has SYSCTRL privilege.

but if I grant select on those views using authorization ID which has SYSADM privileges, it is working.

Let me know where is the issue

thanks in advance
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Jul 14, 2011 8:11 pm
Reply with quote

Srinivas,

SYSCTRL authority cannot SELECT user data.

Thanks,
Sushanth
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Jul 15, 2011 11:37 am
Reply with quote

Quote:

Users with SYSCTRL authority can perform all administrative and maintenance
commands within the instance. However, unlike SYSADM users, they cannot access
any data within the databases unless they are granted the privileges required to do so
Back to top
View user's profile Send private message
srinivas_naikk

New User


Joined: 23 Jul 2007
Posts: 26
Location: India

PostPosted: Fri Jul 15, 2011 3:18 pm
Reply with quote

Hi Sushanth,

Yes, I know SYSCTRL will not have access to USER DATA.

Hence I am trying grant SELECT access on the tables created

But I am unable to grant it and is failing while granting though the owner of the table is trying to grant on the view.

Granting on table is successful, but granting on the view created for the table is failing

Regards,
Srinivas
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 15, 2011 9:22 pm
Reply with quote

Hello,

Quote:
Yes, I know SYSCTRL will not have access to USER DATA.

Hence I am trying grant SELECT access on the tables created
What are you trying to "grant select" on - the tables created are the user data. . .

Possibly there is something i misunderstand?
Back to top
View user's profile Send private message
srinivas_naikk

New User


Joined: 23 Jul 2007
Posts: 26
Location: India

PostPosted: Fri Jul 15, 2011 10:33 pm
Reply with quote

Hi,

Sorry my previous post was confusing.

Let me explain again.

I have created a table and was able to grant SELECT access to others on the table. The users are able to query the table.

I have also created a VIEW on that table. I am trying to grant SELECT on the view created for other users. But the GRANT SELECT on that view is failing stating "the grantor does not have privileges to grant select on the VIEW".

Am i missing anywhere?

Thanks in advance

Regards,
Srinivas
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


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

PostPosted: Fri Jul 15, 2011 11:13 pm
Reply with quote

You are missing the fact that a view is data and not a table and that you are not authorised to grant privileges on data.
Back to top
View user's profile Send private message
srinivas_naikk

New User


Joined: 23 Jul 2007
Posts: 26
Location: India

PostPosted: Sat Jul 16, 2011 12:11 pm
Reply with quote

Yes, thats true.
I have a query again

Won't the creator of view or table have permission to grant select on the table/views created?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Jul 17, 2011 1:35 am
Reply with quote

Hello,

As you have seen - this depends on the permissions of the creator. . .
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 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
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
Search our Forums:

Back to Top