473,508 Members | 2,130 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB2 Authentication

I come from a MS SQL background and I am trying to learn DB2.

I am reading the new book "Understanding DB2".

As i understand now unlike SQL Server where you can configure to use SQL
Authentication or Windows Authentication, DB2 only has OS Authentication?

I am running the DB2 on a Windows 2003 server in a domain.When i create a
new database, the objects are inheriting my username.

What is the best practice? Is it ok that all objects that are being created
in the
database are under my name? Will it be easy to move this database to another
domain and reset the objects to another windows or Unix operating system
account?

Also, if i want others to have "db_owner" rights to the database so that
they don't
connect to the database using my windows user/pass, i am adding the user by
right-clicking
on the database and clicking on Authorities. My concern is I am used to the
"dbo" user in a
SQL server database. Will i have problems if objects get created using
different windows
users? In other words, there is no "dbo" type of user i can use? Will i have
to use a windows
user account to be shared by the database owners in order for all objects to
be owned
by a single user?

Thank you


Nov 12 '05 #1
1 1637
serge wrote:
I come from a MS SQL background and I am trying to learn DB2.

I am reading the new book "Understanding DB2".

As i understand now unlike SQL Server where you can configure to use SQL
Authentication or Windows Authentication, DB2 only has OS Authentication?

I am running the DB2 on a Windows 2003 server in a domain.When i create a
new database, the objects are inheriting my username.

What is the best practice? Is it ok that all objects that are being created
in the
database are under my name? Will it be easy to move this database to another
domain and reset the objects to another windows or Unix operating system
account?

Also, if i want others to have "db_owner" rights to the database so that
they don't
connect to the database using my windows user/pass, i am adding the user by
right-clicking
on the database and clicking on Authorities. My concern is I am used to the
"dbo" user in a
SQL server database. Will i have problems if objects get created using
different windows
users? In other words, there is no "dbo" type of user i can use? Will i have
to use a windows
user account to be shared by the database owners in order for all objects to
be owned
by a single user?

In DB2 a "schema" (that would be qualifier of an object) is only very
loosely coupeld to your authorization id.
That is the two registers CURRENT SCHEMA and OWNER just happen to be the
same after you connect.
If you want you can create obejcts like:
CREATE TABLE DBO.T(c1 INT);
or
CREATE FUNCTION MYLIB.FOO() RETURNS INT RETURN 5;

It is entirely up to you how to organize your objects in schemata.
When you do that also look up the concept of PATH which is very much
what you knwo from your favorite OS.

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2

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

Similar topics

7
9262
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
8
3678
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no...
6
4797
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
9
2494
by: Tom B | last post by:
In my web.config file I've specified Windows for the authentication, in IIS I've set it to Integrated Authentication. But my SQL connection is still showing Anonymous. Is there somewhere else I...
0
4199
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
4
6791
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok....
0
1507
by: Albertas | last post by:
What I'm doing wrong that I can't make my authentication to work. Here is the situation: I'm hosting a Web Service from a Windows forms application, using .NET Framework 3.0 WCF. And I want to...
18
3385
by: troywalker | last post by:
I am new to LDAP and Directory Services, and I have a project that requires me to authenticate users against a Sun Java System Directory Server in order to access the application. I have found...
2
7500
by: Frank Swarbrick | last post by:
I am trying to understand "client authentication" works. My environment is DB2/UDB LUW 8.2 on zSeries SLES9 as the database server and DB2 for VSE 7.4 as the client. We currently have DB2/LUW set...
5
3531
by: Rory Becker | last post by:
Having now created a Custom MembershipProvider that seems to work correctly with my Logon and ChangePassword controls, I am, as they say, a happy bunny. The next stange is to move on to the...
0
7123
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
7326
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
7383
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...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
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
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.