472,967 Members | 1,723 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,967 software developers and data experts.

Problems with setting up replication

Hello,

Replication setup:

Server 1: DB2 UDB Express 8.2 on SuSE Linux SLES 8
Instance: db2inst2
database: master
Server 2: DB2 UDB Express 8.2 on SuSE Linux SLES 8
Instance: db2inst1
database: slave

The target-tables exists and are populated with data. Replication type:
user-copy.

Server 1 captures and holds the capture control- and cd-tables.
Server 2 applies and holds apply-control tables.

Problem 1: As the target tables are populated, I would like to do
"manual refresh" and created the registrations with unchecking the
"allow full refresh" option.

If I use ReplicationCenter->subscription-set->full refresh->manual I get
an empty Form with no script generated at all. Furthermore I can't
choose any servers from the "run specifications"-Field.

How can I activate the subscription manually without using the control
center to avoid the need for automatic full refresh and make capture
start running?

Problem 2: Adding Members to subscription sets / creating subscription
sets. This works exept for one table called "external_ref". There I get
the following error:

ASN1560 The replication action ended in error. An SQL error was
encountered SQL Messag: "[IBM][CLI Driver][DB2/LINUX] SQL0802N
Arithmetic overflow or other arithmetic exception occured. SQLSTATE=22003".

Any hint would help. Thanks!

regards,

Norbert
Nov 12 '05 #1
5 4707
Norbert Munkel <nm@acoreus.de> wrote in message news:<zR**************@se2-cb104-9.zrh1.ch.colt.net>...
Hello,

Replication setup:

Server 1: DB2 UDB Express 8.2 on SuSE Linux SLES 8
Instance: db2inst2
database: master
Server 2: DB2 UDB Express 8.2 on SuSE Linux SLES 8
Instance: db2inst1
database: slave

The target-tables exists and are populated with data. Replication type:
user-copy.

Server 1 captures and holds the capture control- and cd-tables.
Server 2 applies and holds apply-control tables.

Problem 1: As the target tables are populated, I would like to do
"manual refresh" and created the registrations with unchecking the
"allow full refresh" option.

If I use ReplicationCenter->subscription-set->full refresh->manual I get
an empty Form with no script generated at all. Furthermore I can't
choose any servers from the "run specifications"-Field.

How can I activate the subscription manually without using the control
center to avoid the need for automatic full refresh and make capture
start running?

Problem 2: Adding Members to subscription sets / creating subscription
sets. This works exept for one table called "external_ref". There I get
the following error:

ASN1560 The replication action ended in error. An SQL error was
encountered SQL Messag: "[IBM][CLI Driver][DB2/LINUX] SQL0802N
Arithmetic overflow or other arithmetic exception occured. SQLSTATE=22003".

Any hint would help. Thanks!

regards,

Norbert


In my experience, "manual refresh" script builder does not work
properly. IBM support had the same problem when I called them, but I
found a workaround (see below)and did not pursue the problem any
further.

You can do an "automatic" refresh, which will do one refresh at the
next replication interval cycle. You can also create a script to lower
the refresh cycle to 1 minute and change it back as before after the
automatic refresh.

CONNECT TO XXXXXXXX ;

UPDATE ASN.IBMSNAP_SUBS_SET SET ACTIVATE=0 WHERE SET_NAME='SUB_SET1'
AND APPLY_QUAL='SUB_APPLY' AND WHOS_ON_FIRST='S';

UPDATE ASN.IBMSNAP_SUBS_SET SET LASTSUCCESS=NULL, SYNCHPOINT=NULL,
SYNCHTIME=NULL WHERE APPLY_QUAL='SUB_APPLY' AND SET_NAME='SUB_SET1'
AND WHOS_ON_FIRST='S';

UPDATE ASN.IBMSNAP_SUBS_SET SET ACTIVATE=1 WHERE SET_NAME='SUB_SET1'
AND APPLY_QUAL='SUB_APPLY' AND WHOS_ON_FIRST='S';

COMMIT ;
Nov 12 '05 #2
Why don't you use HADR in V8.2 instead? Much easier and no messy control
tables, etc to worry about.

Cheers,

"Norbert Munkel" <nm@acoreus.de> wrote in message
news:zR**************@se2-cb104-9.zrh1.ch.colt.net...
Hello,

Replication setup:

Server 1: DB2 UDB Express 8.2 on SuSE Linux SLES 8
Instance: db2inst2
database: master
Server 2: DB2 UDB Express 8.2 on SuSE Linux SLES 8
Instance: db2inst1
database: slave

The target-tables exists and are populated with data. Replication type:
user-copy.

Server 1 captures and holds the capture control- and cd-tables.
Server 2 applies and holds apply-control tables.

Problem 1: As the target tables are populated, I would like to do
"manual refresh" and created the registrations with unchecking the
"allow full refresh" option.

If I use ReplicationCenter->subscription-set->full refresh->manual I get
an empty Form with no script generated at all. Furthermore I can't
choose any servers from the "run specifications"-Field.

How can I activate the subscription manually without using the control
center to avoid the need for automatic full refresh and make capture
start running?

Problem 2: Adding Members to subscription sets / creating subscription
sets. This works exept for one table called "external_ref". There I get
the following error:

ASN1560 The replication action ended in error. An SQL error was
encountered SQL Messag: "[IBM][CLI Driver][DB2/LINUX] SQL0802N
Arithmetic overflow or other arithmetic exception occured. SQLSTATE=22003".
Any hint would help. Thanks!

regards,

Norbert

Nov 12 '05 #3
In article <zR**************@se2-cb104-9.zrh1.ch.colt.net>, Norbert
Munkel (nm@acoreus.de) says...
Hello,

Replication setup:

Server 1: DB2 UDB Express 8.2 on SuSE Linux SLES 8
Instance: db2inst2
database: master
Server 2: DB2 UDB Express 8.2 on SuSE Linux SLES 8
Instance: db2inst1
database: slave

The target-tables exists and are populated with data. Replication type:
user-copy.

Server 1 captures and holds the capture control- and cd-tables.
Server 2 applies and holds apply-control tables.

Problem 1: As the target tables are populated, I would like to do
"manual refresh" and created the registrations with unchecking the
"allow full refresh" option.

If I use ReplicationCenter->subscription-set->full refresh->manual I get
an empty Form with no script generated at all. Furthermore I can't
choose any servers from the "run specifications"-Field.

How can I activate the subscription manually without using the control
center to avoid the need for automatic full refresh and make capture
start running?

Maybe the ASNCLP command can help. I never used it so it's just a
guess. It's described in the pdf
http://publib.boulder.ibm.com/epubs/pdf/c1894100.pdf

Nov 12 '05 #4
Hi,

Fred Nurk wrote:
Why don't you use HADR in V8.2 instead? Much easier and no messy control
tables, etc to worry about.


As I understand, HADR is fine for HA (name says it). Nice for
desaster-recovery but not the right tool to have replicas that can be
accessed (read and write). So SQL-replication seems to be what I need.
I currently use log-shipping for desaster-recovery. HADR is next if my
SLAs are going to get tighter.

Thanks anyway,

Norbert

Nov 12 '05 #5
Hi,

Mark wrote:

UPDATE ASN.IBMSNAP_SUBS_SET SET ACTIVATE=0 WHERE SET_NAME='SUB_SET1'
AND APPLY_QUAL='SUB_APPLY' AND WHOS_ON_FIRST='S';

UPDATE ASN.IBMSNAP_SUBS_SET SET LASTSUCCESS=NULL, SYNCHPOINT=NULL,
SYNCHTIME=NULL WHERE APPLY_QUAL='SUB_APPLY' AND SET_NAME='SUB_SET1'
AND WHOS_ON_FIRST='S';

UPDATE ASN.IBMSNAP_SUBS_SET SET ACTIVATE=1 WHERE SET_NAME='SUB_SET1'
AND APPLY_QUAL='SUB_APPLY' AND WHOS_ON_FIRST='S';

COMMIT ;


this would bring asnapply to do a full refresh automatically, wouldn´t it?
As my Tables are very big I would like to do the inital sync myself
(export/load) and then tell the apply process that it is done and it can
start the normal (insert/update/delete) behaviour.

regards,

Norbert
Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: lewi | last post by:
I am using the win32 versions of Apache 1.3.24 and PHP 4.2.1 on Win2k Pro... Now I have Apache all setup and install PHP to use the php4apache.dll to use PHP as a sapi module and I am...
1
by: raysaun | last post by:
I am trying to set a TableCellEditor for a JTable, however, the editor never seems to get called. I can not even get a simplified version (below) to work. When I put a breakpoint on the return...
8
by: Eclectic | last post by:
I have a couple of layers that are hidden. When an image is moused over, I want to show the appropriate layer, then hide it on mouseOut. The problem is, I get an error telling me...
4
by: Tamer Higazi | last post by:
Hi! I wrote a small script setting a cookie.... but nothing is being set. What could be the problem?! Did I make something wrong?! One script is used to ask for the cookie and the other one shows...
4
by: David Kyle | last post by:
Hello there, I'm having some problems setting the TextBox.Text Property in my code and having it returned to the client in the source when the TextBox.TextMode="Password". I know this is...
2
by: Alan Silver | last post by:
Hello, I have discovered that if I try and add a cookie when one by that already exists, nothing happens. No error, but the cookie is not set to the new value. For example (this is running in...
2
by: Barry L. Geipel | last post by:
Hi all, I am running postgres 7.4.2 on a Dual processor Opteron with 16GB of ram. I want to set shared_buffers to a large value, but I am running into startup problems.
1
by: jahull | last post by:
This works fine in IE & opera, but not in firefox. I basically have this ... <div id="main"> <div id="preview" style="height: 600px; width: 200px"> some stuff in here... </div> </div>
1
by: Cindy Lee | last post by:
My browser always shows the en-US local resource file, even though I try to set it to my french resource file: (this is the first part of onPageload--) Thread.CurrentThread.CurrentCulture = new...
0
by: Brad Pears | last post by:
I have a vb.net 2005 application where the user can select to preview an image. The users are CAD designers and typically have their default printer set to a plotter with a large paper size etc......
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.