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 > create new user

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-19-06, 05:49
brindha brindha is offline
Registered User
 
Join Date: Jun 2006
Posts: 13
create new user

to create a new user when i give the following statement
CREATE USER mudata WITH PASSWORD abcd
its showing error,error as follows
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token "USER" was found following "CREATE ". Expected
tokens may include: "TYPE". SQLSTATE=42601
provide me solution for creating a new user
Reply With Quote
  #2 (permalink)  
Old 06-19-06, 06:14
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
Hi,

You cannot create a USER within DB2. You can create a USER at the Operating System level only (Windows or Aix etc). After the user is created you can associate that with the db2.

Thanks,
Reply With Quote
  #3 (permalink)  
Old 06-19-06, 06:27
brindha brindha is offline
Registered User
 
Join Date: Jun 2006
Posts: 13
Create new user

Thanks for ur reply.could you say me how to create user in operating system level.my operating system is windows2000/NT
Reply With Quote
  #4 (permalink)  
Old 06-19-06, 07:57
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
on Windows XP/2003 (sorry I don't have any older version of Windows):
1. Start
2. Settings
3. Control Panel
4. Administrative tools
5. Computer Management

Computer Management window opens:
6. System tools
7. Local Users and Groups
8. right click on Users folder and New user.

Follow the wizard.

It should be similar in win2000, but I am sure in NT is different, but I can't remember how. I haven't been using NT for ages...

Hope this helps,
Grofaty
Reply With Quote
  #5 (permalink)  
Old 06-19-06, 08:22
brindha brindha is offline
Registered User
 
Join Date: Jun 2006
Posts: 13
create new user

Thank u grofaty.
I created a user in the way u said.It was sucessful.
actually i want to create user in script file.how is it possible?
Iam using Windows 2000/NT platform.
guide me and provide me solution as soon as possible.
hoping the help...
Reply With Quote
  #6 (permalink)  
Old 06-20-06, 08:44
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
brindha,
this is DB2 forum. Sorry I don't know have to create user from script. Try using www.tek-tips.com forum and then select subforum "windows"
Grofaty
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