Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

21 Experts available now in Live!

Get 1:1 Help Now