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 > how to access two instances with same user id

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-13-12, 03:41
ravichandrapratap ravichandrapratap is offline
Registered User
 
Join Date: Dec 2010
Posts: 75
how to access two instances with same user id

Hi all,
i am using db2 server in aix environment,
i have 2 instances db2inst1 and db2inst2 and one user ICMADMIN

i already taken .profile of db2inst1 and added to user namely ICMADMIN
now iam accessing db2inst1 databases with ICMADMIN wothout any problem.

now i want to use the same user (ICMADMIN) to access the databases in db2inst2 also

is it possible at a time two access databases of both the instances at a time ??
if possible how?

if i update .profile in ICMADMIN, it will be effective??
Reply With Quote
  #2 (permalink)  
Old 02-13-12, 06:05
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
You could catalog the databases from db2inst2 in db2inst1.

Better would be to create a client for the user icmadmin.
(as root) db2icrt -s client icmadmin

Afterwards catalog the nodes and databases:

CATALOG LOCAL NODE - IBM DB2 9.7 for Linux, UNIX, and Windows

CATALOG DATABASE command - IBM DB2 9.7 for Linux, UNIX, and Windows
Reply With Quote
  #3 (permalink)  
Old 02-13-12, 07:41
ravichandrapratap ravichandrapratap is offline
Registered User
 
Join Date: Dec 2010
Posts: 75
Quote:
Originally Posted by nvk@vhv View Post
You could catalog the databases from db2inst2 in db2inst1.

Better would be to create a client for the user icmadmin.
(as root) db2icrt -s client icmadmin

Afterwards catalog the nodes and databases:

CATALOG LOCAL NODE - IBM DB2 9.7 for Linux, UNIX, and Windows

CATALOG DATABASE command - IBM DB2 9.7 for Linux, UNIX, and Windows

thanku so much nvk for ur useful info...
i wil try practically , if any issue i will let you know.
Reply With Quote
  #4 (permalink)  
Old 02-15-12, 07:26
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
NEVER copy profiles from users
prepare the env for the user (create user instance as indicated) and catalog db as indicated
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
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