Solved

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

Posted on 2006-06-27
3
866 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

776 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