| |
|
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.
|
 |
|

11-26-10, 09:47
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
|
DB2 HADR Client Connect Problem - Who can help?? PLEASE!
|
|
Hello,
I am running a HADR DB2 V9.5
Quote:
DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL09055"
with level identifier "".
Informational tokens are "DB2 v9.5.0.5", "s091123", "U829462", and Fix Pack
"5".
|
I am getting this error: SQL1776N Reason Code 1
and I already looked up the Information Center but it didnt help much. Does anyone have an idea what I can try to fix this annoying problem? Thanks in advance.
|
|

11-26-10, 18:14
|
|
Registered User
|
|
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
|
|
|
|

11-27-10, 06:07
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 57
|
|
|
|
Would you be able to expand on the details . 1)Are your primary and standby still working as expected? 2)Is your cleint pointing to the primary o rthe standby?
|
|

11-28-10, 11:16
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
Quote:
Originally Posted by dav1mo
|
Hey Dave,
I am using V9.5 Fixpack 5 - The bug is fixed here already. So i guess it should be something else.
|
|

11-28-10, 11:19
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
Quote:
Originally Posted by Jack Vamvas
Would you be able to expand on the details . 1)Are your primary and standby still working as expected? 2)Is your cleint pointing to the primary o rthe standby?
|
1) Yes ... I can takeover both machines and it doesnt interrupt the HADR service within the HADR Servers.
2) I guess the client is trying to connect to the new primary Database. But I guess something is wrong on my db2 client, because when i try to make a connect on the new primary (from the same machine with a " db2 connect to database) - it works.
But not from my regular db2 client. Maybe something is wrong with my DB2 Catalog?
|
|

12-01-10, 04:15
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
Hello there,
Now i tried to make a select command after the takeover and i get a new Error message. Maybe this help me ( Or you ) to find the solution for my problem.
Error is as seen on screenshot:
SQL30081N SQLSTATE=08001
|
|

12-01-10, 07:24
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 294
|
|
Hmmm,
a german error-message makes it difficult. (Aber wir können ja alle deutsch ...)
I've some question:
-What Version is your Client?
-What do you mean by "not from my regular db2 client"? Are you using JDBC?
JDBC Type 4 is not persistent. It'll always try to connect to specified DB2-Server. The Server tells him the alternate Server. If the Primary is down, then JDBC-Application won't get the Information for the Alternate.
Do you have alternate Servers configured for both primary and standby?
Cheers
nvk
|
|

12-01-10, 07:29
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
Hey.
My Client is Version 9.7.
The Servers are:
DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL09055"
with level identifier "06060107".
Informational tokens are "DB2 v9.5.0.5", "s091123", "U829462", and Fix Pack
"5".
Product is installed at "/opt/IBM/db2/V9.5".
I use the Client from the IBM CommandLine.
And there also some applications connected with the Primary Databases, but if i wont fix this error, all applications will get kicked off if I am making a Takeover :-(
|
Last edited by DB_N00b; 12-01-10 at 07:32.
|

12-01-10, 07:31
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
Quote:
Originally Posted by nvk@vhv
Do you have alternate Servers configured for both primary and standby?
Cheers
nvk
|
Yeah its configured ... but still not working 
|
|

12-01-10, 07:43
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 294
|
|
Hmmm,
the message in the screenshot looks like there's something wrong in the configuration.
Also, in a takeover al applications were kicked. The Application has to reconnect to the database.
What Ports are you using for the Instance and the HADR-Connection. I think there was something that you can't use Instance-Port +1 for HADR-Port (e.g. Instance is 50000 and HADR-Port is 50001).
|
|

12-01-10, 08:48
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
Hello,
My /etc/services on the First server!
Quote:
DB2_db2inst1 60001/tcp
DB2_db2inst1_1 60002/tcp
DB2_db2inst1_2 60003/tcp
DB2_db2inst1_END 60004/tcp
db2c_db2inst1 50000/tcp
db2j_db2inst1 55000/tcp
#HADR Configuration
hadr_fdbkdb 51012/tcp
hadr_fdbkdb_int 51013/tcp
hadr_jcrdb 51014/tcp
hadr_jcrdb_int 51015/tcp
hadr_lmdb 51016/tcp
hadr_lmdb_int 51017/tcp
|
|
|

12-01-10, 08:49
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
My /etc/services on the 2nd server
Quote:
DB2_db2inst1 60001/tcp
DB2_db2inst1_1 60002/tcp
DB2_db2inst1_2 60003/tcp
DB2_db2inst1_END 60004/tcp
db2c_db2inst1 50000/tcp
db2j_db2inst1 55000/tcp
#hadr
hadr_fdbkdb 51012/tcp
hadr_fdbkdb_int 51013/tcp
hadr_jcrdb 51014/tcp
hadr_jcrdb_int 51015/tcp
hadr_lmdb 51016/tcp
hadr_lmdb_int 51017/tcp
hadr_wpsdb 51018/tcp
hadr_wpsdb_int 51019/tcp
|
|
|

12-01-10, 08:52
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
But I dont think its wrong configuration of /etc/services here.
I think its something with the db catalog which is like:
db2 list db directory
System Database Directory
Number of entries in the directory = 5
Database 1 entry:
Database alias = FDBKDB
Database name = FDBKDB
Local database directory = /daten
Database release level = c.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
Database 2 entry:
Database alias = WPSDB
Database name = WPSDB
Local database directory = /daten
Database release level = c.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname = 6.213.48.221
Alternate server port number = 50000
Database 3 entry:
Database alias = TOOLSDB
Database name = TOOLSDB
Local database directory = /daten
Database release level = c.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
Database 4 entry:
Database alias = JCRDB
Database name = JCRDB
Local database directory = /daten
Database release level = c.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname = 6.213.48.221
Alternate server port number = 50000
Database 5 entry:
Database alias = LMDB
Database name = LMDB
Local database directory = /daten
Database release level = c.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname = 6.213.48.221
Alternate server port number = 50000
|
|

12-01-10, 08:56
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 152
|
|
I think the Instance port of the first machine is 50.000
|
Last edited by DB_N00b; 12-01-10 at 08:59.
|

12-01-10, 10:12
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 294
|
|
Quote:
Originally Posted by DB_N00b
..., but if i wont fix this error, all applications will get kicked off if I am making a Takeover :-(
|
Sorry, didn't see that. During a takeover all the Applications get kicked. In some Situations the Clients can reconnect, but a warning is thrown at the client. For sure the current transaction is lost (Yes, DB2 9.7 can recover the first statement in a transaction).
What is on the client side? On the CLient the catalog entries should list the alternate server. If the client does not show (and know) the alternate server, it can't connect to the Standby.
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|