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 > Minimum permission needed for db2cmd

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-19-06, 07:33
tmoeller tmoeller is offline
Registered User
 
Join Date: Apr 2003
Posts: 30
Minimum permission needed for db2cmd

can anybody tell me, what are the minimum permissions needed for using the db2cmd. we have the problem, that calling commands in the db2cmd with a limited user does nothing at all. it just returns the prompt. doing the same with an admin logged on works fine, so it is a permission thing.

Where does the user need special rights for writing??

Any ideas??
Reply With Quote
  #2 (permalink)  
Old 01-19-06, 09:13
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
check the DB2TEMP variable and set it in a way so the user can write to it.
Might be, you will have to set it user specific (e.g. USERTEMP).
The user might not be allowed to write to where the default setting is.

Hope that helps, if I remember correctly that was the issue I saw before.

If that does not help: what does the user get (e.g. output or error message)
__________________
Juliane
Reply With Quote
  #3 (permalink)  
Old 01-19-06, 10:00
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
The directory is stored as DB2TEMPDIR variable and the file in question is DB2CLP.dat.

The variable is valid only on Windows clients

Cheers
Sathyaram


Quote:
Originally Posted by juliane26
check the DB2TEMP variable and set it in a way so the user can write to it.
Might be, you will have to set it user specific (e.g. USERTEMP).
The user might not be allowed to write to where the default setting is.

Hope that helps, if I remember correctly that was the issue I saw before.

If that does not help: what does the user get (e.g. output or error message)
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 01-20-06, 05:09
tmoeller tmoeller is offline
Registered User
 
Join Date: Apr 2003
Posts: 30
Thanks for your tips, even if they didn't help this time.

i investigated a little further. So, db2cmd can be opened without any errors. Issuing any command like "db2 connect to ......" results in just returning the prompt without any output. what we found out is, that the errorlevel jumps from 0 to 8 after issuing any command.

DB2tempdir is set to "c:\program files\sqllib" where the user has fullcontrol.and where db2clp.dat resides.

Any other ideas, where to get more infos???

Client - db2diag.log reports this:

2006-01-19-16.34.08.583000 InstanceB2 Node:000
PID:3424(java.exe) TID:3532 Appid:AC11820E.890F.060119153134
base_sys_utilities sqle_db2ra_ar_rstdet Probe:18
DIA9999E An internal error occurred. Report the following error code : "0x
36".
Reply With Quote
  #5 (permalink)  
Old 01-20-06, 05:21
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Why is the diag log compaling about java.exe ? I thought you are using db2cmd
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #6 (permalink)  
Old 01-20-06, 07:28
tmoeller tmoeller is offline
Registered User
 
Join Date: Apr 2003
Posts: 30
We are only using db2cmd for our tests. Sorry, tested it again and not diaglog entry is found!!!
Reply With Quote
  #7 (permalink)  
Old 01-20-06, 07:31
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Any security event log , I mean Windows ?

Anything in notify log ?

Set diaglevel and notifylevel to 4 and try

Cheers
Sathyaram

Quote:
Originally Posted by tmoeller
We are only using db2cmd for our tests. Sorry, tested it again and not diaglog entry is found!!!
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #8 (permalink)  
Old 01-20-06, 08:02
tmoeller tmoeller is offline
Registered User
 
Join Date: Apr 2003
Posts: 30
No failed entries in security eventlog!

Same for application or system log!

Isn't diaglevel for server side only???? I think the db2cmd i not able to get so far that there is any communication with the server.

Thorsten
Reply With Quote
  #9 (permalink)  
Old 01-20-06, 11:25
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
IIRC, db2diag.log is available on the clients also .. The default location on Windows is

Program files\ibm\sqllib\db2

where the 'db2' is the name of the default instance.


HTH

Sathyaram

Quote:
Originally Posted by tmoeller
No failed entries in security eventlog!

Same for application or system log!

Isn't diaglevel for server side only???? I think the db2cmd i not able to get so far that there is any communication with the server.

Thorsten
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #10 (permalink)  
Old 01-21-06, 21:20
GertK GertK is offline
Registered User
 
Join Date: Nov 2003
Location: Netherlands
Posts: 96
Quote:
Originally Posted by tmoeller
can anybody tell me, what are the minimum permissions needed for using the db2cmd. we have the problem, that calling commands in the db2cmd with a limited user does nothing at all. it just returns the prompt. doing the same with an admin logged on works fine, so it is a permission thing.

Where does the user need special rights for writing??

Any ideas??
Most likely you have installed DB2 with the option 'Enable operating system security'. Check the DB2 docs at http://tinyurl.com/7uuog to find out how to solve this problem.
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