Solved

Different USER ID and Schema in DB2

Posted on 2009-05-16
4
734 Views
Last Modified: 2012-05-07
Hi,
How to create different user ids in DB2. Also how to create different schema for each user.
0
Comment
Question by:cuttieveenz
  • 2
  • 2
4 Comments
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 24402847
Hi cuttie,

DB2 defers to the underlying operating system for user validation.  To create a DB2 user, create a user on the server where DB2 is running.

You can always create additional schemas.  The DBA (or anyone with sufficient privilege) would create one with the CREATE SCHEMA statement.

In most releases of DB2, I believe that a user's default schema is the user's name.


Good Luck,
Kent
0
 

Author Comment

by:cuttieveenz
ID: 24402863
How do I create user on the server?
0
 
LVL 45

Accepted Solution

by:
Kent Olsen earned 500 total points
ID: 24402882
Depends on the server.

If it's Windows, start with My Computer / Manage.

If it's linux or unix, the adduser (or useradd) command will create a new user.  You can specify the password when you create the user or use the passwd command to change/set it.

If it's an OS/2 or AS/400 server, we'll have to get someone else to chime in as I'm not a mainframe type.


Kent
0
 

Author Closing Comment

by:cuttieveenz
ID: 31582225
Thanks Kdo. Your comments were useful.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 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