Hi,
can anyone explain/comment on following sequence of commands issued in
CLP. My questions are at the bottom.
my environment:
- fresh installation of DB2 v7.1 on W2000
- following commands I iussed as domain user DADAM, which belongs to
the local (not domain) group of Administrators
D:\PROGRA~1\SQLLIB\BIN>db2stop (1)
SQL1064N DB2STOP processing was successful.
D:\PROGRA~1\SQLLIB\BIN>db2start (2)
SQL1063N DB2START processing was successful.
D:\PROGRA~1\SQLLIB\BIN>db2set DB2_GRP_LOOKUP= (3)
D:\PROGRA~1\SQLLIB\BIN>db2stop (4)
SQL1092N "DADAM" does not have the authority to perform the requested
command.
D:\PROGRA~1\SQLLIB\BIN>db2 update dbm cfg using sysadm_group ' ' (5)
DB20000I The UPDATE DATABASE MANAGER CONFIGURATION command completed
successfully.
DB21025I Client changes will not be effective until the next time the
application is started or the TERMINATE command has been issued. Server
changes will not be effective until the next DB2START command.
D:\PROGRA~1\SQLLIB\BIN>db2set DB2_GRP_LOOKUP=local (6)
D:\PROGRA~1\SQLLIB\BIN>db2stop (7)
SQL1064N DB2STOP processing was successful.
D:\PROGRA~1\SQLLIB\BIN>db2start (8)
SQL1063N DB2START processing was successful.
D:\PROGRA~1\SQLLIB\BIN>db2 create db d1 (9)
SQL1092N "DADAM" does not have the authority to perform the requested
command.
Q1: Why is it possible, that a user can issue db2 update dbm cfg (5),
but cannot db2start/db2stop (4) ? According db2 manuals, START DBM
command requires one of sysadm,sysctrl,sysmaint, while update dbm cfg
requires sysadm.
Q2: How come a user can issue db2start/db2stop (7,8), but cannot issue
create db (9) ? Manual says user need to be one of sysadm,sysctrl to
create a database.
Q3: What is a default value for variable DB2_GRP_LOOKUP ? Manual says:
Default=null Values: LOCAL, DOMAIN
, but that does not say whether "null" means "local" or "domain".
Thanks for any hints
--
Daniel Adam
Sent via Deja.com http://www.***.com/
Before you buy.