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 > Connect to remote database returns SQL30061N

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-03-09, 05:45
Spirillen Spirillen is offline
Registered User
 
Join Date: Apr 2009
Posts: 3
Connect to remote database returns SQL30061N

Hi

Setup is as follows :
Client Win/XP with CONPE v.9.5.100
Database server W2K3 MSCS with WSE v.9.1.200.

My problem is that i have created a database in an instance named DA2300 and when i try to make a connection, I get the following error message :

SQL30061N The database alias or database name HJDBW999 was not found at the remote node.

At the client i have made the following :
Catalog tcpip node HJDBW999 remote <name> server 50000 remote_instance DA2300 ostype WIN (have tried with and without param remote_instance)
Catalog db HJDBW999 at node HJDBW999 authentication SERVER
Catalog system odbc data source HJDBW999

At the server i have made the following :
Update dbm cfg using SVCENAME db2c_DB2
Db2set -g DB2INSTDEF=DA2300
Db2stop
Db2start

If i create a database in the default instance (DB2) on the server, i can make a connection to that database.

Can anyone tell me what i'm missing/doing wrong.

Regards,

Henrik
Reply With Quote
  #2 (permalink)  
Old 04-03-09, 06:52
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
in server : list db directory to see the name
db2c_DB2 should be in etc/services being 50000
db2set -all should also display db2comm=tcpip
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 04-03-09, 07:13
Spirillen Spirillen is offline
Registered User
 
Join Date: Apr 2009
Posts: 3
Hi Guy

Thanks for your reply.

I have checked the things you mention, and all were set as you described.

Regards

Henrik
Reply With Quote
  #4 (permalink)  
Old 04-03-09, 08:03
Spirillen Spirillen is offline
Registered User
 
Join Date: Apr 2009
Posts: 3
Hi

Problem solved, don't understand it, have tried this before without success, did a failover on the cluster, then i did a db2stop and db2start on the instance, and suddenly it all worked.

/Henrik
Reply With Quote
  #5 (permalink)  
Old 04-03-09, 09:43
smith43017 smith43017 is offline
Registered User
 
Join Date: Sep 2006
Posts: 92
when you have HACMP or HADR environment or both , You can't just hard code one server name at client catalogging.
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