Unlike Oracle, DB2 does no user or group management; rather it relies upon
the operating system for these services, as it should. Nor does it it have
any "magic" userids with special privileges as such a concept would prevent
auditing.
Follow your normal Linux procedures for creating users (and groups). Within
DB2 you can then use GRANT to assign the rights and privileges you deem to
be necessary. As part of the DB2 installation you specified a bootstrap user
(instance owner).
To connect you can specify the userid (and password) on the CONNECT. A far
better approach is to connect as the logged on user - again, allowing the OS
to do all the work - preferably by configuring Kerberos for the single
signon. This approach also enables non-password based authentication - such
as smart cards, and improves auditability.
To connect as a SYSADM or whatever, either log on as a user with SYSADM and
use single signon into DB2, or (if secure authentication procedures are
unimportant to you) issue a CONNECT using a suitable user's name and
password.
"rAinDeEr" <ta**********@g mail.com> wrote in message
news:11******** **************@ y43g2000cwc.goo glegroups.com.. .
Hi,
Y'day one of my friend showed me how to connect to a Oracle
database as
SYSDBA, DBA etc
I have DB2 UDB installed in Linux machine.Right now, I have a user WADI
which has got some previliges on the tables. But I dont know how to
connect as SYSDBA etc
Now, in Linux what are the steps to
1.) Create users with
a) SYSADM
b) DBADM
c) SYSCTRL
d) SYSMAINT
priveleges and then
2.)Connect to the database using the different Users
E.g. In Oracle at login we can give as
Connect as /sysdba
what is the equivalent in DB2 UDB ?
I usually give
connect to dbname user XXX using XXX to connect to a database.
what command should I give to connect to a databse as SYSADM,DBADM etc
???
Thanks in advance,
~rAinDeEr