ibm db2 column access restrictions

Posted on 2010-09-24
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?

Question by:thready
  • 2
  • 2
LVL 37

Accepted Solution

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

Author Comment

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?
LVL 37

Assisted Solution

momi_sabag earned 500 total points
ID: 33754064

create view view_name_comes_here
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;

Author Closing Comment

ID: 33754117

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now