473,395 Members | 1,999 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

DB2 grant permission steps

I have a db2 table on which I require select permissions.
Who can do it?(I think the DBA or table owner can do it).
Whether the database restart is required? What is the exact command
for granting slect on table 'X'?
Please mention exact steps (stop/start database, add permissions, etc)
Thanks
Nov 12 '05 #1
2 38384
Abhiram <ab******@indiatimes.com> wrote:
I have a db2 table on which I require select permissions.
Who can do it?(I think the DBA or table owner can do it).
Have a look at the SYSCAT.TABAUTH catalog view. Every user or group that
has the privilege "grantable" can pass it on.

SELECT grantee
FROM syscat.tabauth
WHERE selectauth = 'G' AND
( tabschema, tabname ) = ( <your fully qualified table name> )
Whether the database restart is required?
No, it is not.
What is the exact command
for granting slect on table 'X'?


Have a look at the SQL Reference:

GRANT SELECT ON <tablename> TO <user-or-group>

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #2
Steps: Assume you are the DBA or the Table Owner
db2 connect to <dbname>
db2 grant select on table to [userid,group,public]
db2 connect reset

No stop/start instance or deactivate/activate db commands necessary.

Go to the Web and search for the DB2 UDB docs.
http://www.software.ibm.com/data/db2/library/
Both the COmmand Line Ref. and the SQL ref. will show you those commands.
HTH, Pierre.

Abhiram wrote:
I have a db2 table on which I require select permissions.
Who can do it?(I think the DBA or table owner can do it).
Whether the database restart is required? What is the exact command
for granting slect on table 'X'?
Please mention exact steps (stop/start database, add permissions, etc)
Thanks


--
Pierre Saint-Jacques - Reply to: sesconsjunk at attglobaljunk dot com
Reconstruct address: Remove the two junk and replace at and dot by
their symbols.
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James Radke | last post by:
Hello, I have an asp.net application (using vb.net codebehind), that is calling some older c++ dlls. These dlls require the use of the c++ Runtime which is in the windows/System32 directories. ...
6
by: Steve Richter | last post by:
I am getting error in a vbscript: ActiveX component cant create object: Excel.Application. The vbscript code is: Dim objExcel Set objExcel = CreateObject("Excel.Application") I am pretty...
0
by: Brian Takita | last post by:
Hello, I'm getting the following error at the end of this message when trying to run the ReportManager and the ReportServer: Assembly system.data.dll security permission grant set is...
7
by: Barbara Lindsey | last post by:
What kind of grant do you need to give a user so that they can have permission to do a "SELECT nextval(ID)" on a sequence? I granted the user SELECT,UPDATE,INSERT,DELETE on all the tables,...
5
by: Michael Fuhr | last post by:
I'd like to propose that certain GRANTs on a table cascade to the table's implicit sequences. In the current implementation (as of 7.4.5 and 8.0.0beta3), a table owner must typically issue GRANT...
2
by: Vijay Shanmugam | last post by:
I'm moving all projects that coded in Visual Studio 2003 framework 1.1 to Visual Studio 2005. I'm getting following error while build the asp.net and webservices project. All other projects build...
1
by: wackyphill | last post by:
I'd like to grant a WIndows account permission to connect to a db and exec stored procedures. But am having trouble. I want this type of effect but can't get the syntax correct: USE MyDB GO...
1
by: Shashidarcs | last post by:
Hi All, I have a problem here.. Say i have a stored procedure in the new query sheet and i would like to add grant permissions in textual content just below the procedure.. I jus want to...
0
by: Elliot | last post by:
Any idea to grant my program permission to access Internet(XML file on the Internet) except using .NET Framework Configuration? I have tried...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.