Solved

How to connect to IBM DB2 8.2 using user name and password

Posted on 2006-06-27
3
857 Views
Last Modified: 2007-12-19
I'm using Command Editor to create table with the following statement:
CREATE DATABASE test USING CODESET UTF-8 TERRITORY JP;
But it fails
In the result pane of Command Editor, it tell me that:

------------------------------ Commands Entered ------------------------------
CREATE DATABASE test USING CODESET UTF-8 TERRITORY JP;
------------------------------------------------------------------------------
CREATE DATABASE test USING CODESET UTF-8 TERRITORY JP
SQL1092N  "HUNGNV  " does not have the authority to perform the requested
command.

SQL1092N  "HUNGNV                                                                " does not have the authority to perform the requested command.
----------------------------------------------------------------------------------
I do not know how to log in to DB2 Database server with other user/id (except current logged in Windows account) by Command Editor or by Control Center.
DB2 is running in Windows 2003 server Enterprise
DB2 version 8.2
I log in to Windows with domain account "HUNGNV" that has  Administrators priority in my PC.
Thank you!
0
Comment
Question by:fuzzyvss
  • 2
3 Comments
 
LVL 45

Expert Comment

by:Kdo
ID: 16994365

Hi fuzzy,

Just to make sure, are you trying to create a database or a table?  (You state 'table' but the SQL shows 'database'.)

You'll need the administrator user/password if you want to create a database.  To create a table you simply need the proper authority, but that can only be granted by someone with the authority (and cascading GRANT authority) or the administrator.


Kent

0
 

Author Comment

by:fuzzyvss
ID: 16994514
Sorry, I mean creating database.
I logged in to Windows by Administrator user(user in a domain, not local account, but in Administrators group), But it told me that I have no authority to perform that request.

Thank Kent for your answer.
0
 
LVL 45

Accepted Solution

by:
Kdo earned 250 total points
ID: 16995187

When DB2 was installed, an administrator account was created (db2admin is a popular name).  You should use this account.

Kent
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now