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 can I differentiate two db2 instance in same server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-08, 10:48
want_tobe_dba want_tobe_dba is offline
Registered User
 
Join Date: Dec 2007
Posts: 23
How can I differentiate two db2 instance in same server

I had two port numbers (two separt numbers) for two separete instances.

When I do db2stop both instance are shutting down. (doesn't matter whish instance I am logging)
Reply With Quote
  #2 (permalink)  
Old 01-08-08, 11:40
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Two different operating system users must exist; each user runs a different DB2 instances. You execute the db2stop command as one of the two DB2 instance owners. Since one owner does not have any rights (even at the OS level) to temper with the data and processes of the other instance, it would be interesting to know how exactly you could bring down both instances by just stopping one of them.

So could you tell us the usual stuff (platform, DB2 version) along with the exact steps you performed and how you verified that both instances are down?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 01-08-08, 11:41
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What DB2 version and OS?

Andy
Reply With Quote
  #4 (permalink)  
Old 01-08-08, 15:05
want_tobe_dba want_tobe_dba is offline
Registered User
 
Join Date: Dec 2007
Posts: 23
AIX /Db2 9.1


Proabblem with profile. In another(second) instance theay running first instace profile. So what ever I do in second instance effecting first instance.

i just found out
Reply With Quote
  #5 (permalink)  
Old 01-08-08, 15:07
want_tobe_dba want_tobe_dba is offline
Registered User
 
Join Date: Dec 2007
Posts: 23
Thank you very much for try to help me oout. I tried droping instance (test instance created log time back). I still have all info point into instance1.
Reply With Quote
  #6 (permalink)  
Old 01-09-08, 07:38
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Check you ~/.profile of the 2nd instance. It should source the correct sqllib/db2profile.

Also, you should verify that both instances use different groups for SYSADM etc.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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