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-09-06, 02:04
brindha brindha is offline
Registered User
 
Join Date: Jun 2006
Posts: 13
create new user

Iam new to this forum.I want to know how to create a new user in db2 by query language.If i Use the query create user username,it shows the following error, An unexpected token "user" was found following "create ".so provide me solution.
Reply With Quote
  #2 (permalink)  
Old 06-09-06, 03:39
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
probably best to ask this question in the DB2 forum.....
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 06-09-06, 06:45
umayer umayer is offline
Registered User
 
Join Date: Dec 2005
Posts: 273
you can't create an user in DB2. You must already have an user-ID assigned to use DB2. ( assigned by UNIX , TSO-login , RACF .... depending on the platform you use ).
To control access to DB2-resources for that ID, you may use the GRANT and REVOKE - statements of DB2
Reply With Quote
  #4 (permalink)  
Old 06-12-06, 02:18
brindha brindha is offline
Registered User
 
Join Date: Jun 2006
Posts: 13
create new user

Tell me what are the other ways or methods to create a new user
Reply With Quote
  #5 (permalink)  
Old 06-12-06, 02:28
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
The user (or group) must be created in the operating system. How that is done depends on the operating system you are using.

Once the user is created by the operating system, then you may grant DB2 privledges to that user or group.
__________________
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
  #6 (permalink)  
Old 06-12-06, 02:29
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
On what platform are you?
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #7 (permalink)  
Old 06-12-06, 02:33
brindha brindha is offline
Registered User
 
Join Date: Jun 2006
Posts: 13
Iam in Windows2000 platform.
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