Solved

ibm db2 column access restrictions

Posted on 2010-09-24
4
405 Views
Last Modified: 2012-05-10
Hi Experts,

I am asking a question on behalf of a friend.  I don't have any experience with IBM DB2, but the question is this:  Can we add a user that only has rights to view the data in specific columns on specific tables?  If yes, can you maybe provide a screenshot or two to show how it's done or at least a vivid enough explanation of how to do it, since I'm working blind to give my friend his answer?

Thanks!
Mike
0
Comment
Question by:thready
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 37

Accepted Solution

by:
momi_sabag earned 500 total points
ID: 33753945
you can create a view that selects only this column from the table and grants the user permissions to the view and not to the table
0
 
LVL 1

Author Comment

by:thready
ID: 33754011
cool - do you have more specific info on how to create a view in DB2?  Is a view like a table, so that I could do queries on the view's columns?
0
 
LVL 37

Assisted Solution

by:momi_sabag
momi_sabag earned 500 total points
ID: 33754064
sure,

create view view_name_comes_here
as
select column_you_want_him_to_see
from table_name_contAInING_That_column
;


grant select on view_name_comes_here to special_username_comes_here;
0
 
LVL 1

Author Closing Comment

by:thready
ID: 33754117
thanks!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question