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

how to provide access to other users for the table?


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

New User


Joined: 11 Oct 2010
Posts: 45
Location: Delhi

PostPosted: Tue Dec 14, 2010 12:28 pm
Reply with quote

hi
can somebody tel me what is the command for providing access to my tables for other users.

i am using :
GRANT ALL ACCESS ON (userid.table name) TO PUBLIC

but this command is not working.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Dec 14, 2010 12:31 pm
Reply with quote

What do you mean by "not working"? icon_rolleyes.gif

O.
Back to top
View user's profile Send private message
ssmukul

New User


Joined: 22 Jan 2008
Posts: 19
Location: India

PostPosted: Tue Dec 14, 2010 12:35 pm
Reply with quote

Hi Nandeshwar,

Please try to run the Grant query without ACCESS keyword.

i.e.
GRANT ALL ON (Table name) TO PUBLIC.

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

New User


Joined: 11 Oct 2010
Posts: 45
Location: Delhi

PostPosted: Tue Dec 14, 2010 2:32 pm
Reply with quote

ofer71 wrote:
What do you mean by "not working"? icon_rolleyes.gif

O.

i meant this command is not working in QMF
Its showing display message as" GRANT CANNOT BE FOUND."
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Tue Dec 14, 2010 4:42 pm
Reply with quote

don't run it as a QMF command, put it in a query and run it.

and no need to grant all.
"grant select on table xxxxx " might be sufficient.
Back to top
View user's profile Send private message
nandeshwar

New User


Joined: 11 Oct 2010
Posts: 45
Location: Delhi

PostPosted: Tue Dec 21, 2010 10:56 am
Reply with quote

ssmukul wrote:
Hi Nandeshwar,

Please try to run the Grant query without ACCESS keyword.

i.e.
GRANT ALL ON (Table name) TO PUBLIC.

Thanks,


thanks mukul.. it worked.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts count contained values of several col... DB2 5
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts Access to macro definitions PL/I & Assembler 4
Search our Forums:


Back to Top