473,406 Members | 2,387 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,406 software developers and data experts.

Cannot create sample database

Hi, all

I'm new to DB2 world.

DB2 8.1 enterprise on Win XP. Installation (typical method) is fine. I
log in as 'abc' user (admin user) to do the installation. Now I have
'db2admin' user.

As 'abc' user I am able to open 'control center'. But when I try to
create sample database from 'First Steps', I get the error which is
'ABC is not valid authorization ID. SQLSTATE=42602'.

Questions:

1. Do I have to log in as 'db2admin' user to create database or
additional instance?

2. If so, what do I have to configure in order to do the FULL DBA job
as 'abc' user?

Thanks a lot!

Nov 12 '05 #1
10 3976
<ib****@yahoo.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Hi, all

I'm new to DB2 world.

DB2 8.1 enterprise on Win XP. Installation (typical method) is fine. I
log in as 'abc' user (admin user) to do the installation. Now I have
'db2admin' user.

As 'abc' user I am able to open 'control center'. But when I try to
create sample database from 'First Steps', I get the error which is
'ABC is not valid authorization ID. SQLSTATE=42602'.

Questions:

1. Do I have to log in as 'db2admin' user to create database or
additional instance?

2. If so, what do I have to configure in order to do the FULL DBA job
as 'abc' user?

Thanks a lot!

You can create a security group in Windows, and user ids to it (new or
existing), and then define that group in the
sysadm_group database manager configuration parm.

See "Security issues when installing DB2 Universal Database" in the
Administration: Implementation Guide
Nov 12 '05 #2
Thanks a lot.

I know this is not about DB2, but how can I create a security group
under windows XP?

Thnx again.

Mark A wrote:
<ib****@yahoo.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Hi, all

I'm new to DB2 world.

DB2 8.1 enterprise on Win XP. Installation (typical method) is fine. I
log in as 'abc' user (admin user) to do the installation. Now I have
'db2admin' user.

As 'abc' user I am able to open 'control center'. But when I try to
create sample database from 'First Steps', I get the error which is
'ABC is not valid authorization ID. SQLSTATE=42602'.

Questions:

1. Do I have to log in as 'db2admin' user to create database or
additional instance?

2. If so, what do I have to configure in order to do the FULL DBA job
as 'abc' user?

Thanks a lot!

You can create a security group in Windows, and user ids to it (new or
existing), and then define that group in the
sysadm_group database manager configuration parm.

See "Security issues when installing DB2 Universal Database" in the
Administration: Implementation Guide


Nov 12 '05 #3
In XP, got to Start=>Control Panel=>User Acounts=> Select the user you want
and modify it to make it an Administrator.
I don't think uou can create user groups in XP as this is not an OS that
has server capability so the usage of groups would not be very sensible.

HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
<ib****@yahoo.com> a écrit dans le message de news:
11*********************@g49g2000cwa.googlegroups.c om...
Thanks a lot.

I know this is not about DB2, but how can I create a security group
under windows XP?

Thnx again.

Mark A wrote:
<ib****@yahoo.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
> Hi, all
>
> I'm new to DB2 world.
>
> DB2 8.1 enterprise on Win XP. Installation (typical method) is fine. I
> log in as 'abc' user (admin user) to do the installation. Now I have
> 'db2admin' user.
>
> As 'abc' user I am able to open 'control center'. But when I try to
> create sample database from 'First Steps', I get the error which is
> 'ABC is not valid authorization ID. SQLSTATE=42602'.
>
> Questions:
>
> 1. Do I have to log in as 'db2admin' user to create database or
> additional instance?
>
> 2. If so, what do I have to configure in order to do the FULL DBA job
> as 'abc' user?
>
> Thanks a lot!
>

You can create a security group in Windows, and user ids to it (new or
existing), and then define that group in the
sysadm_group database manager configuration parm.

See "Security issues when installing DB2 Universal Database" in the
Administration: Implementation Guide


Nov 12 '05 #4
"Pierre Saint-Jacques" <se*****@invalid.net> wrote in message
news:ud*******************@weber.videotron.net...
In XP, got to Start=>Control Panel=>User Acounts=> Select the user you
want and modify it to make it an Administrator.
I don't think uou can create user groups in XP as this is not an OS that
has server capability so the usage of groups would not be very sensible.

HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515


I think that the existing Administrators group can be used.
Nov 12 '05 #5
I have a similar problem under linux.

Can anybody give any leads what I have to do so users can do a DBA's job?
thx,
H.
1. Do I have to log in as 'db2admin' user to create database or
additional instance?

2. If so, what do I have to configure in order to do the FULL DBA job
as 'abc' user?

Nov 12 '05 #6
Hans Horn wrote:
I have a similar problem under linux.

Can anybody give any leads what I have to do so users can do a DBA's job?
thx,
H.
1. Do I have to log in as 'db2admin' user to create database or
additional instance?

2. If so, what do I have to configure in order to do the FULL DBA job
as 'abc' user?


In order to create a database, the user must have SYSADM privileges for the
instance in question. SYSADM is managed via groups on the operating system
level, and the database manager configuration contains a parameter
SYSADM_GROUP which specifies the group you need. In my case I have this:

$ db2 get dbm cfg | grep SYSADM
SYSADM group name (SYSADM_GROUP) = TRUSTED

So any other user that shall have SYSADM privileges must be in the "trusted"
user group.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #7
Knut,

ain't workin!

$ whoami
HansHorn

$ groups
wheel audio users portage db2fadm1 db2iadm1

$ db2 get dbm cfg | grep SYSADM
SYSADM group name (SYSADM GROUP) = DB2IADM1

$ db2 connect to sample
SQL30082N Attempt to establish connection failed with security reason "24"
("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001

Could it be a case-sensitivity issue?
H.

Knut Stolze wrote:
Hans Horn wrote:
I have a similar problem under linux.

Can anybody give any leads what I have to do so users can do a DBA's
job? thx,
H.
1. Do I have to log in as 'db2admin' user to create database or
additional instance?

2. If so, what do I have to configure in order to do the FULL DBA
job as 'abc' user?


In order to create a database, the user must have SYSADM privileges
for the instance in question. SYSADM is managed via groups on the
operating system level, and the database manager configuration
contains a parameter SYSADM_GROUP which specifies the group you need.
In my case I have this:

$ db2 get dbm cfg | grep SYSADM
SYSADM group name (SYSADM_GROUP) = TRUSTED

So any other user that shall have SYSADM privileges must be in the
"trusted" user group.

Nov 12 '05 #8
Hans Horn wrote:
Knut,

ain't workin!

$ whoami
HansHorn

$ groups
wheel audio users portage db2fadm1 db2iadm1

$ db2 get dbm cfg | grep SYSADM
SYSADM group name (SYSADM GROUP) = DB2IADM1

$ db2 connect to sample
SQL30082N Attempt to establish connection failed with security reason
"24"
("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001


The error message says to me that the user-id/password was not correct.
Have you tried:

$ db2 connect to sample user HansHorn using <your-pwd>

??

In order to verify this, you might want to grant CONNECT privileges to
PUBLIC temporarily. You don't need SYSADM authorization for the
connection.

I don't think this would be necessary but did you restart DB2 after you
added your user to the group db2iadm1?

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #9
Knut Stolze wrote:
Hans Horn wrote:
Knut,

ain't workin!

$ whoami
HansHorn

$ groups
wheel audio users portage db2fadm1 db2iadm1

$ db2 get dbm cfg | grep SYSADM
SYSADM group name (SYSADM GROUP) = DB2IADM1

$ db2 connect to sample
SQL30082N Attempt to establish connection failed with security
reason "24"
("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001
The error message says to me that the user-id/password was not
correct. Have you tried:

$ db2 connect to sample user HansHorn using <your-pwd>

No I have not tried that one yet! Will do when I get back to that machine
later today!

But, I do get the same SQL30082N error when I try:
db2 create database test
I don't think this would be necessary but did you restart DB2 after
you added your user to the group db2iadm1?

Yup!

Nov 12 '05 #10
Knut Stolze wrote:
$ db2 connect to sample user HansHorn using <your-pwd> .... same error here!
In order to verify this, you might want to grant CONNECT privileges to
PUBLIC temporarily. You don't need SYSADM authorization for the
connection.

as db2inst1:
db2 connect to sample
db2 grant connect on database to user HansHorn

as me:
.... same error

as db2inst1:
db2 grant connect on database to PUBLIC

as me:
.... same error

Does that make sense?
Is db2 maintaining its own repo of usernames and passwords?
H.
Nov 12 '05 #11

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

Similar topics

8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
1
by: Alex | last post by:
Hi all, Just been dabbling with java stored procedures and I'm having problems replacing System: db2 8.1.4 on RH 7.1 linux system 1). Look at java jdbc samples as supplied with db2 and run...
1
by: Tom Cusick | last post by:
We have a Job Shop database. When I get an order in I put all the line item information into the database. Some orders have multiple lines and most of the information is the same. (eg. Customer...
2
by: dskillingstad | last post by:
I'm building a tracking system and I'm having some problems. I thought this was relatively easy, but.... I have the following tables and fields (abbreviated): tblPermitMain PermitID - pk...
9
by: Peter | last post by:
Hello£¬everyone, My program will collect a testing machine's data ,save the data and deal with the data everyday. I want to use vb.net to create database, add and delete tables or modify the...
0
by: hector | last post by:
Hi all, Need i simple example on how print/preview data from a database. I already have some code but I am lost because the preview does not create multiple pages and only shows the first page...
2
by: Bjørn Johansen | last post by:
Hi, I'm new at DB2, and have just installed a DB2 Version 9 Enterprise trial. Had no visible problems installing the database, but I cannot create the sample Database, or any other database. ...
4
by: Michael C | last post by:
Hi All, I'm trying to drop an sqlserver database from c# but can't because it is claiming it is in use. As I don't have a connection to it it must be connection pooling that is causing the...
2
by: kirthi.amudha | last post by:
Hi, I have app dev client installed on my machine. Can we create the sample database using db2sampl. I was able to create database using the 'Create Database' command. But I am not able...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.