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 > Creating a new users for a db2 instance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-04-08, 02:17
drogomoss drogomoss is offline
Registered User
 
Join Date: Mar 2007
Posts: 30
Lightbulb Creating a new users for a db2 instance



Hello all,

I am again cursed with doing the work of our db2 admin... while he gets the...

Here's the problem.

We have this databases

database TESTA
database PRODB

instance INSTANCEA can access TESTA
instance INSTANCEB can access TESTB

Now we need to create a new instance (e.g. INSTANCEC) that can be used to access database TESTA?

How do I go about doing this? I would appreciate any steps or guides to successfully complete this task.

Thank you very much all and MERRY CHRISTMAS!!!
Reply With Quote
  #2 (permalink)  
Old 12-04-08, 03:45
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
If you just want to access the Database TESTA, then create an User "INSTANCEC". (either in Unix/Windows ).

1> Grant that user the required CONNECT Privilege and other privileges. If you don't want to do that, then you can Control-Center as well for that.
__________________

Jayanta Datta
DB2 UDB DBA
IBM India, Global Delivery
New Delhi
Reply With Quote
  #3 (permalink)  
Old 12-04-08, 03:48
drogomoss drogomoss is offline
Registered User
 
Join Date: Mar 2007
Posts: 30
Yep. How do I go about creating INSTANCEC? Would this via the command line or is there a special menu for this. Thanks.
Reply With Quote
  #4 (permalink)  
Old 12-04-08, 04:08
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
If your system is Windows, then create the New-user from Control-Panel--> User-Management.

If it's on Linux/Unix, you can ask your system admin to create the new user and then you can grant that user all required privileges. You can also refer to the following: http://www.unixreview.com/documents/s=1780/urm0111f/

If you have privileges you can also use SMITTY utility to create new users on AIX.
__________________

Jayanta Datta
DB2 UDB DBA
IBM India, Global Delivery
New Delhi
Reply With Quote
  #5 (permalink)  
Old 12-04-08, 08:08
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
First of all, you do not need a new _instance_. Instance is just a set of executables and configuration files which defines a separate DB2 database manager process.

Another thing to point out is that the user and group management in DB2 is delegated to the operating system, so you should create a new user the way you normally do on your platform (which you failed to mention). Once this is done, you should connect to the database TESTA _as an existing administrator_ and issue appropriate GRANT statements to give the new user necessary permissions. Check the manuals for the correct syntax, depending on what you want to allow the new user to be able to do.
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