If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > UDB/UNIX doubts

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-05-06, 10:32
nagbuchi nagbuchi is offline
Registered User
 
Join Date: Feb 2005
Location: Bangalore,India
Posts: 39
Question UDB/UNIX doubts

Can any body please clarify the below doubts that I have.

#1.Is it possible to create a faceless account(not an operating system account) in UDBV8 Database?.If yes,how to create the account?

#2.I want to set up the db2 environment for an operating system user.I believe,we need to update .profile file in Unix for that user.My doubts are
a).How to set db2 path and other variables in .profile file?
b).What are all the options that we need to consider in setting up the DB2 environment for an operating system user.

Thanks in Advance,

Nagaraj
Reply With Quote
  #2 (permalink)  
Old 07-05-06, 10:51
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
1. No; db2 uses OS userids only.
2a. You are right; include the .profile
# The following three lines have been added by UDB DB2.
if [ -f /home/db2inst1/sqllib/db2profile ]; then
. /home/db2inst1/sqllib/db2profile
fi
(assuming /home/db2inst1/ is the home directory of instance db2inst1)
That's all a db2 user needs.
2b. depends on what the OS user needs to do;e.g if OS user needs dba privileges, user needs to be a member of the appropriate OS user group.
__________________
mota
Reply With Quote
  #3 (permalink)  
Old 07-06-06, 01:41
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
db2profile

this is the quick and durty way todo it. If some specific setting are done in the userprofile (called by db2profile) you can have strange errors.
The clean way todo this is to create a client instance for this user.
It will get a link to db2 code and a private db2profile that can keep all specific setting for this user. db2icrt from root can create this instance (see command reference)
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On