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 know to which Database i am connected on AIX.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-22-08, 07:47
Neharao Neharao is offline
Registered User
 
Join Date: Dec 2007
Posts: 49
How to know to which Database i am connected on AIX.

I am working on AIX , I connected to a database called SAMPLE1 and later SAMPLE2. After running some commands when i was not sure on which DB i am running the commands, How would i know to which Database i am connected to through a command ?
Reply With Quote
  #2 (permalink)  
Old 12-22-08, 07:56
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
values current server
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #3 (permalink)  
Old 12-22-08, 08:19
ranjandba ranjandba is offline
Registered User
 
Join Date: Mar 2006
Posts: 20
u can try with

#1> db2 get connection state

#2> db2 connect

update if this is what you were looking for ....?
Reply With Quote
  #4 (permalink)  
Old 12-22-08, 12:07
Neharao Neharao is offline
Registered User
 
Join Date: Dec 2007
Posts: 49
Hi

Thanks much for the solutions, Yes i am looking for the same

All the three commands worked

#1> db2 values current server

#2> db2 get connection state

#3> db2 connect

Thanks
Neha

Last edited by Neharao; 12-22-08 at 12:10.
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