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 > cataloging problems

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-04-08, 11:51
rangupt rangupt is offline
Registered User
 
Join Date: Jan 2008
Posts: 96
cataloging problems

Hi Folks,

DB2 client - DB2 v8.1 FP 14, OS: Windows 2003
Db2 server - DB2 v8.1 FP 7, OS : AIX 5.2

I need to catalog our production and Test databases on the server where our monitoring tool is installed. Now the problem is even though the instance names are different in prod and test database servers, the database names are same. And I am unable to catalog the same database name under two different instances. For expamle:

Test server hostname: TEST-SERVER
Production server hostname: PROD-SERVER

db2 catalog tcpip node TCHS remote TEST-SERVER server 50000
DB20000I The CATALOG TCPIP NODE command completed successfully.

db2 catalog CHSDB at node TCHS
DB20000I The CATALOG DATABASE command completed successfully.

db2 catalog tcpip node PCHS remote PROD-SERVER server 60000
DB20000I The CATALOG TCPIP NODE command completed successfully.

db2 catalog CHSDB at node PCHS
SQL1005N The database alias "chsdb" already exists in either the local
database directory or system database directory.

Is there a way I can catalog the same database name under two different instances?


Thanks
Reply With Quote
  #2 (permalink)  
Old 09-04-08, 12:55
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Use an alias for one of them.

Instead of this:

db2 catalog CHSDB at node PCHS

do this:

db2 catalog CHSDB as MyDB at node PCHS

Andy
Reply With Quote
  #3 (permalink)  
Old 09-04-08, 15:34
rangupt rangupt is offline
Registered User
 
Join Date: Jan 2008
Posts: 96
Thanks Andy. That worked!!
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