473,395 Members | 1,972 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,395 software developers and data experts.

Post installation tasks in db2

Hai
I have installed db2 8.1 on linux machine. The current db2
users are instance user(db2inst1), fenced user(db2fenc1) and
db2as(administration server). To start using the database do I have
to create additional users or use the database as the instance owner
itself.

1) How do I create db2 users and test a connection from a db2 user.

2) If I have to create a new user , to which group do I have to make
him belong. I have three groups (db2iadm1 which has db2inst1, db2fadm1
which has db2fenc1 and db2asgrp which contains db2as)

Please clarify. thanks.
Nov 12 '05 #1
1 4045
On 2004-04-12, srihari scribbled:
Hai
I have installed db2 8.1 on linux machine. The current db2
users are instance user(db2inst1), fenced user(db2fenc1) and
db2as(administration server). To start using the database do I have
to create additional users or use the database as the instance owner
itself.
I'm not 100% sure about this (most of my DB2 experience is on Windows),
but here goes anyway...

You don't have to create additional users, you should be able to use
DB2 databases as the instance owner. But be aware that the instance
owner will have SYSADM authority (the highest privilege in the DB2
hierarchy of privileges). Hence, like root, it is a user that should be
used sparingly, when necessary.

However, in order to create a database (using the CREATE DATABASE
command), you must be connected to an instance as a user which has
SYSADM (or SYSCTRL) authority - for example, the instance user
(db2inst1).

Note that the creator of a database automatically /and irrevocably/
holds the DBADM authority on that database (which basically permits any
operation against that database).

Also, by default, the CONNECT authority on a database is held by the
PUBLIC group (representing all users). You will probably wish to REVOKE
this and GRANT CONNECT authority to individual users.

1) How do I create db2 users and test a connection from a db2 user.
Assuming that authorization is set to "SERVER" (which it is by
default), then DB2 for Linux/UNIX is (I think) similar to DB2 for
Windows in that DB2 users are authenticated by the Operating System -
that is to say, they are ordinary OS users.

Hence, to create a new user ID you simply add a new user to the OS
(using the useradd command line or whatever you'd normally use).

However, users intended for use with DB2 must follow certain naming
rules. To quote the relevant parts from the DB2 Quick Beginnings for
Linux manual (for DB2 UDB v7), Appendix E - Naming Rules:

* Usernames on UNIX can contain 1 to 8 characters
* Group and instance names can contain 1 to 8 characters
* Names cannot be any of the following:
- USERS
- ADMINS
- GUESTS
- PUBLIC
- LOCAL
* Names cannot begin with:
- IBM
- SQL
- SYS
* Names cannot include accented characters
* In general, when naming users, groups or instances on UNIX, use
lowercase characters

2) If I have to create a new user , to which group do I have to make
him belong. I have three groups (db2iadm1 which has db2inst1, db2fadm1
which has db2fenc1 and db2asgrp which contains db2as)

Please clarify. thanks.


As stated above, you don't /have/ to create a new user, but it is
advisable to do so. I don't think that you have to assign the new user
to any group in particular. However, you should bear in mind the
following quote from the DB2 Administration Guide: Implementation
manual (for DB2 UDB v7), Chapter 5. - Controlling Database Access,
Selecting User IDs and Groups For Your Installation:

"During the installation process, System Administration (SYSADM)
privileges are granted by default to ... [any] valid DB2 username which
belongs to the primary group of the instance owner's user ID.

SYSADM privileges are the most powerful set of privileges available
within DB2... As a result, you may not want all of these users to have
SYSADM privileges by default. DB2 provides the administrator with the
ability to grant and revoke privileges to groups and individual user
IDs."

Hence, I would /strongly/ recommend that when creating new users you do
not make their primary group db2iadm1! I'd recommend creating a
completely new group to hold "ordinary" DB2 users.

Good luck!

HTH, Dave.

--
Dave
Remove "_nospam" for valid e-mail address

"Never underestimate the bandwidth of a station wagon full of CDs doing
a ton down the highway" -- Anon.
Nov 12 '05 #2

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

Similar topics

1
by: Eugene Morozov | last post by:
Hello! I wrote a crossplatform Glade/GTK+ application for learning foreign languages (it is called Snakememory but doesn't have site in English yet). Currently it works from the directory where...
0
by: Nick Keeling | last post by:
--=_48167406.4627091C Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I am a MySQL newbie with a post installation problem. I have Linux Red Hat 9 with MySQL 4.0....
2
by: Nate | last post by:
Hello, I am trying to recover a SQL Server 7 database from another hard disk drive that has a corrupted Windows 2000 Advanced Server installation. I am not able to repair the corrupted Windows...
2
by: jaggi | last post by:
Hi, I want to thank you for response to my previous query and i am still stuck with DB2 installation. is there any book or online resource which guide through installation of DB2 on AIX ...
2
by: Taishi | last post by:
New user of SQL Everything is on the same machine My error is close to the bottom After reading it today, I can see there is a problem with 2 dbases 'PUBS' and 'Master' There are also some...
8
by: Brandon | last post by:
I've yet to find a decently worded and exampled article outlining how one can perform more complex operations during MSI installation. Specifically, I'm looking to copy the source MSI to the...
1
by: frederico.fonseca | last post by:
Hi all, I would like some opinions on my proposed solution to solve the problem our production main job is having with lock suspends/ deadlocks. Machine is a z/OS 01.06 DB2 is V7.1
1
by: sureshbup | last post by:
Hi to all, I am trying to install CPAN modules using the command perl -MCPAN -e 'install qw (Text::CSV_XS)' but i get the problem like this even i changed the working proxies but none is...
9
by: hgrecco | last post by:
Hello, I am working on a program that must perform a certain task on numeric data stored in a file. The task is given by user input from a list of possible tasks. The file has some particular...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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...
0
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...

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.