473,387 Members | 3,033 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,387 software developers and data experts.

Roles?

Hello,

Does DB2 have the concept of roles as in Oracle? I did not see any
relevant information on this topic in the documentation that came with
the database.

As used in Oracle, a role is simply a collection of privileges that
one can grant to individual users or groups of users to manage user
access. Roles can also require their own passwords for added
security.
Nov 12 '05 #1
3 5083
"DB_2" <de*******@yahoo.com> wrote in message
news:9b**************************@posting.google.c om...
Hello,

Does DB2 have the concept of roles as in Oracle? I did not see any
relevant information on this topic in the documentation that came with
the database.

As used in Oracle, a role is simply a collection of privileges that
one can grant to individual users or groups of users to manage user
access. Roles can also require their own passwords for added
security.


Did you download the PDF manuals from the IBM website? Look especially
Administration: Implementation.

Here are a few roles:

SYSADM
SYSCTRL
SYSMAINT
DBADM
Nov 12 '05 #2
"Mark A" <no****@switchboard.net> wrote in message news:<WZ****************@news.uswest.net>...
Does DB2 have the concept of roles as in Oracle? I did not see any
relevant information on this topic in the documentation that came with
the database.

Did you download the PDF manuals from the IBM website? Look especially
Administration: Implementation.

Here are a few roles:

SYSADM
SYSCTRL
SYSMAINT
DBADM


Hello Mark,

Thanks for your response. I had already downloaded the manuals and
after your post, I went back to read them again. While I saw a
discussion on the roles that you mentioned, it seemed that these were
perhaps fixed roles, as the manuals did not show a way to create new,
custom roles. More confusingly, the 2nd SQL reference manual alluded
to operating system groups in a short blurb on granting privileges.

Essentially, what I was looking for was SQL statements or stored
procedures that would allow me to create custom roles. For example,
in Oracle, I could do this with "CREATE ROLE rolename IDENTIFIED BY
password".

Is there something similar in DB2?
Nov 12 '05 #3
> Hello Mark,

Thanks for your response. I had already downloaded the manuals and
after your post, I went back to read them again. While I saw a
discussion on the roles that you mentioned, it seemed that these were
perhaps fixed roles, as the manuals did not show a way to create new,
custom roles. More confusingly, the 2nd SQL reference manual alluded
to operating system groups in a short blurb on granting privileges.

Essentially, what I was looking for was SQL statements or stored
procedures that would allow me to create custom roles. For example,
in Oracle, I could do this with "CREATE ROLE rolename IDENTIFIED BY
password".

Is there something similar in DB2?


You can create a group id in the OS, add individual user ids to the group,
and then GRANT DB2 authorization to that group (with the SQL GRANT
statement). The authentication is done by the OS.

I don't know if this provides the exact same functionality as Oracle has
with its roles, but I believe that the DB2 GRANT syntax is ANSI SQL
compliant..
Nov 12 '05 #4

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

Similar topics

1
by: Mad Scientist Jr | last post by:
I would like to write a vb.asp.net function Private Function fn_sGetRoles(byval sDelimiter as string) As String that simply returns a delimited list of all the roles a user belongs to. I...
5
by: hansiman | last post by:
Following http://aspnet.4guysfromrolla.com/articles/082703-1.aspx I've set up roles authentication for my web application. User's roles are registered by: HttpContext.Current.User = _ New...
7
by: Matthias S. | last post by:
Hi, here is what I'm trying to do: I have a virtual directory called "WebApp". Under this one I've got 2 physical directories called "Customers" and "Admins". I implemented Forms-based...
1
by: chris.rust | last post by:
Has anyone else had any trouble setting up a sitemap view to be filtered by roles? We've put a cust role provider in place, and we can verify that it's only being called once for each...
9
by: Mike Hofer | last post by:
BACKGROUND: We've designed a Website for a client that will be deployed across multiple physical locations. The site will be hosted from a corporate NOC, and administered by the IT group there. ...
1
by: jesibl | last post by:
Hi All, I have an ASP .NET 2.0 web based app which should change content based on a variable passed in the query string. Let's say the variable is called ID and the variations are A, B and C. ...
0
by: Douglas J. Badin | last post by:
Hi, The problem with Authorization is it stops at the first match and doesn't permit Grouping. On the Web Site, I am trying to Secure Page Access and SiteNaviagation by implementing the...
4
by: AC | last post by:
Hi there. My asp.net 2.0 development website uses roles to control access to sections of my site, configured using the asp.net configuration tool, which is great. Except that isn't available once...
0
by: sidhuasp | last post by:
Hi everyone I am using a mainmenu witeh sitemap provider with folowing sitemap <siteMapNode> <siteMapNode url="" title="Master Data" description="Enter Master data" roles ="Admin,PM"> ...
2
by: Nathan Sokalski | last post by:
When I call System.Web.Security.Roles.GetRolesForUser() it returns no results (an array of length 0) even though I have roles associated with the currently logged in user. I am able to get the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.