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 > DB2 instance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-14-04, 08:16
perl perl is offline
Registered User
 
Join Date: Jun 2003
Posts: 140
DB2 instance

Hi All

how many instances can be attached at a time in DB2
also whats the command to see which instace is currently being used
Reply With Quote
  #2 (permalink)  
Old 04-14-04, 08:21
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
How many - 1
How to tell which - "db2 ATTACH" with no other arguments.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 04-14-04, 11:12
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
bonus question

Hmm... if I run "db2 attach" i get:
'no instance attachment exits',

but if I run 'db2 get instance' I get
'the current dbm instance is db2inst2'

Does anyone know the underlying
differenec between the to quieries??

BOW
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
Reply With Quote
  #4 (permalink)  
Old 04-14-04, 12:13
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Re: bonus question

Quote:
Originally posted by Tank
Hmm... if I run "db2 attach" i get:
'no instance attachment exits',

but if I run 'db2 get instance' I get
'the current dbm instance is db2inst2'

Does anyone know the underlying
differenec between the to quieries??

BOW
GET INSTANCE just spits out the DB2INSTANCE value. Basically, what you will be attached to if you start doing things without an explicit ATTACH.

ATTACH tells you what instance you are actively attached to.
__________________
--
Jonathan Petruk
DB2 Database Consultant
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