If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > NTUSERNAME does not have authority (was "Help!!!!!!!!!!!!!!!!!")

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-21-07, 11:22
dirtydavey dirtydavey is offline
Registered User
 
Join Date: Sep 2003
Location: London
Posts: 16
NTUSERNAME does not have authority (was "Help!!!!!!!!!!!!!!!!!")

Just installed db2 for the first time. Never used it before ever. (I am a MSSQL server DBA, leavring db2) Installed it fine, but cant do nay thing with out tyhe following error.

SQL1092N "NTUSERNAME" does not have the authority to perform the
requested command.

What am I doing, this is a bad start for me.
__________________
__________________

HEY HEY MY MY
Reply With Quote
  #2 (permalink)  
Old 11-21-07, 11:47
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I assume you are using DB2 on Windows. If not, which OS? And which DB2 version.?

My guess is that you have not given NTUSERNAME any rights to use the DB2 system.

Andy
Reply With Quote
  #3 (permalink)  
Old 11-21-07, 11:50
dirtydavey dirtydavey is offline
Registered User
 
Join Date: Sep 2003
Location: London
Posts: 16
Yes sorry its on windows server 2003. Its DB2 express-c with no fixpack.

Its very possible I have not given it the right user rights. How do I do this?
__________________
__________________

HEY HEY MY MY
Reply With Quote
  #4 (permalink)  
Old 11-21-07, 11:55
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
As the instance owner (you should have created one when you installed the system):

1) connect to the DB
2) issue "grant" commands to allow whatever rights are necessary.

Andy
Reply With Quote
  #5 (permalink)  
Old 11-21-07, 11:59
dirtydavey dirtydavey is offline
Registered User
 
Join Date: Sep 2003
Location: London
Posts: 16
I did not get given the options. But I cant even see any databases right now
__________________
__________________

HEY HEY MY MY
Reply With Quote
  #6 (permalink)  
Old 11-21-07, 12:38
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Check the Users on your server and see if there is anything with DB2 in the name. If so, this will be your instance owner. If not, you will need to create an instance with the db2icrt command (it is in the manual).

Then as the instance owner, you can create a database using either the command line (see CREATE DATABASE command) or the GUI Control Center.

Andy
Reply With Quote
  #7 (permalink)  
Old 11-22-07, 09:15
dirtydavey dirtydavey is offline
Registered User
 
Join Date: Sep 2003
Location: London
Posts: 16
I have a group called db2admin and db2users. I have added my self to both groups. Still no luck. Hmm I know its somthing silly!
__________________
__________________

HEY HEY MY MY
Reply With Quote
  #8 (permalink)  
Old 11-22-07, 10:09
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Check the install guide for information about authorization required on the id used to install DB2. Under Windows, it is much trickier than under Linux, UNIX becasue DB2 wants the user to have administrator authority. I am not sure which version you are using, but at one time if your userid was part of a domain, it had to be the domain administrator.

However, you may be able to go into Window Services and specify which userid you want DB2 to logon with to resolve the problem.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #9 (permalink)  
Old 11-22-07, 10:24
dirtydavey dirtydavey is offline
Registered User
 
Join Date: Sep 2003
Location: London
Posts: 16
Hi, thats great thanks, its a fix of sorts. I have got the service to log in as the same account I log into windows with. This now works, and will at least let me get a feel for db2.
__________________
__________________

HEY HEY MY MY
Reply With Quote
  #10 (permalink)  
Old 11-22-07, 10:53
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You will want to go to First Steps and create the sample database (if not already created).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #11 (permalink)  
Old 11-22-07, 11:01
dirtydavey dirtydavey is offline
Registered User
 
Join Date: Sep 2003
Location: London
Posts: 16
yeah just done that now, its totaly diffrent to mssql. I am gonna have some fun with this.
__________________
__________________

HEY HEY MY MY
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On