473,657 Members | 2,507 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Apply Program Not Moving Data

Having a bear of a time trying to implement replication under 8.2
environment. I've created all of the control structures on both source
and target database and can actually see data being staged in the CD
tables. I look at the subscription sets and see that everything seems
to be pointing to the right tables, etc., and see that apply is
running. The apply log states that the program is running, but nothing
is moving. The only diagnostics that it has are the values of the
startup parameters and messages that is sleeping for 5 minutes. It's
running 8.2 FP9 under AIX 5.3.

I gave up on trying to replicate my real data, and created two simple
databases, with one table having only 1 column. Status of the
subscription set is 0. Both DBs are running under the same instance. I
used the Replication center to get everything kicked off, but was
unable to get apply to start from there and instead launched it from
the command line as: nohup asnapply CONTROL_SERVER= TRGT APPLY_QUAL=AAA
APPLY_PATH="/home/db2inst4" &

Have looked through the supplied documentation and the Redbook for
replication, but didn't find any clues. Hoping someone else here has
seen this before.

Evan
Apply log:

2005-08-03-07.51.41.054929 <setEnvDprRIB > ASN8003D "Apply" : "" :
"Initial" : Program "apply 8.2.0" is starting.
2005-08-03-07.51.43.126290 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "CONTROL_SERVER " was set to "TRGT"
at startup by the following method: "COMMANDLIN E".
2005-08-03-07.51.43.126734 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "APPLY_QUAL " was set to "AAA" at s
tartup by the following method: "COMMANDLIN E".
2005-08-03-07.51.43.126762 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "LOGREUSE" was set to "N" at start
up by the following method: "DEFAULT".
2005-08-03-07.51.43.126790 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "LOGSTDOUT" was set to "N" at star
tup by the following method: "DEFAULT".
2005-08-03-07.51.43.126817 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "TERM" was set to "Y" at startup b
y the following method: "DEFAULT".
2005-08-03-07.51.43.126844 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "PWDFILE" was set to "" at startup
by the following method: "DEFAULT".
2005-08-03-07.51.43.126870 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "APPLY_PATH " was set to "/home/db2
inst4/" at startup by the following method: "COMMANDLIN E".
2005-08-03-07.51.43.126897 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "NOTIFY" was set to "N" at startup
by the following method: "DEFAULT".
2005-08-03-07.51.43.126923 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "SLEEP" was set to "Y" at startup
by the following method: "DEFAULT".
2005-08-03-07.51.43.126950 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "ERRWAIT" was set to "300" at star
tup by the following method: "DEFAULT".
2005-08-03-07.51.43.126976 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "COPYONCE" was set to "N" at start
up by the following method: "DEFAULT".
2005-08-03-07.51.43.127004 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "TRLREUSE" was set to "N" at start
up by the following method: "DEFAULT".
2005-08-03-07.51.43.127030 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "SPILLFILE" was set to "DISK" at s
tartup by the following method: "DEFAULT".
2005-08-03-07.51.43.127056 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "LOADXIT" was set to "N" at startu
p by the following method: "DEFAULT".
2005-08-03-07.51.43.127088 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "SQLERRCONTINUE " was set to "N" at
startup by the following method: "DEFAULT".
2005-08-03-07.51.43.127115 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "OPT4ONE" was set to "N" at startu
p by the following method: "DEFAULT".
2005-08-03-07.51.43.127141 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "DELAY" was set to "6" at startup
by the following method: "DEFAULT".
2005-08-03-07.51.43.127167 <asnParmClass:: printParms> ASN0529I "Apply"
: "AAA" : "Initial" : The value of "INAMSG" was set to "Y" at startup
by the following method: "DEFAULT".
2005-08-03-07.51.43.166193 <Asnenv:setEnvI pcQRcvHdl> ASN0594I "Apply"
: "AAA" : "Initial" The program created an IPC queue with keys "(0x300
0004d)".
2005-08-03-07.51.43.167428 <CPCIMPC(08/07)> ASN1045I APPLY "AAA" :
"Initial". The Apply program was started using database "TRGT".
2005-08-03-07.51.43.190577 <CPREST(01/00)> ASN1044I APPLY "AAA" :
"WorkerThre ad". The Apply program will become inactive for "5" minutes
and
"0" seconds.

Nov 12 '05 #1
4 2999
After running the asnanalyze command on the target database where apply
is running, it reported an "inconsiste ncy between IBMSNAP_SUBS_ME MBER
and IBMSNAP_REGISTE R tables." It found my subscription in the former,
but not the latter and had remarks of "Orphan Subscription."

There is no IBM_REGISTER in the target database, but there is one in
source database where capture is running. That table contains one row
for the table I want replicated, and another row that has blanks for
the SOURCE_OWNER and SOURCE_TABLE columns.

I couldn't find any reference in the docs or on the web for "orphan
subscriptions." Has anyone else seen this?

Thanks,
Evan

Nov 12 '05 #2
Hi,

esmith2112 schrieb:
subscription set is 0. Both DBs are running under the same instance. I
used the Replication center to get everything kicked off, but was
unable to get apply to start from there and instead launched it from
the command line as: nohup asnapply CONTROL_SERVER= TRGT APPLY_QUAL=AAA
APPLY_PATH="/home/db2inst4" &

Have looked through the supplied documentation and the Redbook for
replication, but didn't find any clues. Hoping someone else here has
seen this before.


I remember having a lot of problems using replication center and went
for the manual approach as well. Have you created the asnpwd.aut file
and are the connections working?

check with

"asnanalyze -pw $pathtopassword file/asnpwd.aut -db $sourcedb $targetdb
-la DETAILED"

This produces a html-file you can view with any browser. The script
should run on both servers without any errors. If you have decided to
switch automatic full refreshes to off, search

http://www.ibm.com/support for "manual full refresh". There is a nice
article dated 2004-05-17, called

"How do I perform a manual full refresh for update-anywhere replication
instead of using the Apply program to do the full refresh?"

Works for user-copy scenarios as well.

Possibly you have decided to do manual full refreshs and did not set the
member-state to "L" or the appropriate synchtime, synchpoint in
ibmsnap_subs_se t..just a guess

regards,

Norbert
Nov 12 '05 #3
Hi,

esmith2112 schrieb:
After running the asnanalyze command on the target database where apply
is running, it reported an "inconsiste ncy between IBMSNAP_SUBS_ME MBER
and IBMSNAP_REGISTE R tables." It found my subscription in the former,
but not the latter and had remarks of "Orphan Subscription."

There is no IBM_REGISTER in the target database, but there is one in
source database where capture is running. That table contains one row
for the table I want replicated, and another row that has blanks for
the SOURCE_OWNER and SOURCE_TABLE columns.
There should be a corresponding row in ibmsnap_subs_me mbr in the target
database (or the database where the apply control tables resides). If it
is not, your replication setup is just incomplete.
I couldn't find any reference in the docs or on the web for "orphan
subscriptions." Has anyone else seen this?


Yes. Whenever corresponding entries in both capture control and apply
control tables do not match. The detailed asnanalyze output gives some
hints what needs to be where.

Hard to guess just by this few information.

regards,

Norbert

--
off for a Pint

Nov 12 '05 #4
I misspoke in an earlier post. I hadn't run the asnanalyze program with
both the source and target database options simultaneously. Once I did
that, the "orphan subscription" message went away.

I found the document on manually refreshing the data. I did that, but
it still leaves me with a bunch of rows in the CD tables that aren't
getting propagated.

Is there a definitive guide to DB2 replication published anywhere? I
found a book on Amazon, but since it was published in 1999, I have a
feeling that it's a little out of date. Even the Redbook for
replication in version 8 is approaching 3 years. Is it possible that
it's out of date as well?

Does this warrant a call to support? It doesn't seem like a technical
problem, but more of a logical problem where there's a step missing.

Nov 12 '05 #5

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

Similar topics

8
2584
by: Peter Nolan | last post by:
Hi All, I have written some software that performs ETL processing to load data warehouses. Each program accepts a set of parameters and returns 0 or 1 to the win/unix shell to indicate success or failure. Currently it is run as a set of commands that calls each program and then returns the return code and stops if the program has failed. I'm interested in enhancing the product by being able to call these programs from within another C++...
3
3144
by: Blaise Garant | last post by:
Hi I've made a stylesheet to transform my data into XSL-FO. This stylesheet used to work with MSXSL 4.0 but I've got some issues in ..NET. First, I changed removed all the "node-set()" function since they're not used anymore. But now, I used an <xsl:apply-templates/> and for some reason, it works in some situation but not in others. I didn't put the whole XSL file since it's quite big. Here's the part that bugs
1
2983
by: Trent | last post by:
Hello,everyone. I'm setting a db2 replication environment using UDB version 8.1.5 running on Windows 2000 servers. The source server is on a Windows server with the capture program running while the target server is on another Windows server running the apply program. This replication set up has a mix of bidirectional and unidirection data exchange. User copy is used for the unidirectional data. I'm having the following issue. 1. It...
3
3147
by: almousawi | last post by:
I am working on a DB2 replication program that used to work. I ran the "warm" capture program to get a cold start and I am running the apply program, but, the apply does not replicate the data. I update a test table and I see that the CD table gets new rows. But the apply program does not seem to be doing anything .. I see the asnapply is running,but not doing anything: 2005-07-31-02:18:03 ASN1045I: The Apply program was started using...
0
1833
by: BC3Tech | last post by:
I'm creating a system that uses XML to store an audit trail of the steps that it has been through in the system. The way the schema is defined, there is a "Tag" for every application that performs modifications to any data, and "Fields" inside the tag that outline the changes that were made. Applications in the flow of the system read in these XML files and will "overlay" these tags in order to obtain data for all fields that were...
0
1647
by: mdb_1974 | last post by:
Hello I tried to do an initial full refresh but I failed - nothing happens (no error at all). Apply works without errors. Details of my environment: I have the following replication scenario: DB2 UDB apply is running on a Solaris machine (DB2 Version 8, fixpack 9a), capture on a z/OS machine (host).
9
3091
by: axs221 | last post by:
I am trying to move some of our large VBA Access front-end file into ActiveX DLL files. I created two DLL files so far, one was a module that contains code to integrate into the QuickBooks accounting software. Another has general utilities. I tried referencing the utilities dll, and it shows up in the object explorer. I instantiated an instance of the class and now it shows up all okay in the Intellisense. Whenever I try to run a simple...
34
29867
by: Tom | last post by:
I'd greatly appreciate advice and code snippets on how to create a ram disk within a C/C++ program. I also need to be able to determine the free space. Thanks in advance for any help.
0
2499
by: metaperl | last post by:
A Comparison of Python Class Objects and Init Files for Program Configuration ============================================================================= Terrence Brannon bauhaus@metaperl.com http://www.livingcosmos.org/Members/sundevil/python/articles/a-comparison-of-python-class-objects-and-init-files-for-program-configuration/view
0
8326
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8845
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8743
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1973
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1736
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.