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 > Issue with "db2 list db directory"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-04-10, 16:09
pinecone pinecone is offline
Registered User
 
Join Date: Apr 2004
Posts: 58
Lightbulb Issue with "db2 list db directory"

Hi,

I have two instances on a Linux server with DB2 v9.5 :
one db2 default instance named db2inst1 and
another named db2ttet.

I have two databases (GMT1 and GMT2) created under db2ttet instance.

When I issued "db2 list db directory" when logging in as db2ttet, it returned two db entries: GMT1 and GMT2 which look correct.

However, when I issued "db2 list db directory" when logging in as default db2inst1 instance, it returned exactly the same two db entries as above which do not belong to this default instance, db2inst1.

The output of "db2 list db directory" under these two instances is exactly the same, including the directory, etc. I did not catalog the database at all.

Anyone has any ideas on how that happened and how it can be resolved?

Any comments and recommendations would be greatly appreciated.

Thank you!
Reply With Quote
  #2 (permalink)  
Old 06-04-10, 16:50
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Check to see which db2profile is being executed when you log into the instance owner id. It should be in the following (hidden) file under the home directory of the user (if you use bash shell):

.bashrc
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 06-04-10, 18:16
pinecone pinecone is offline
Registered User
 
Join Date: Apr 2004
Posts: 58
Yes, you are right. The output is correct after the profile is updated with the correct instance.

Thank you so much for your help! It is greatly appreciated.
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