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 > SQL Replication

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-23-10, 08:59
madhurecw madhurecw is offline
Registered User
 
Join Date: May 2010
Posts: 2
SQL Replication

Hi

I am new to DB2 SQL Replication on Windows.

I am trying to CREATE SUBSCRIPTION SET but failing due to following error :
ASN1550E The replication action "Create Subscription Set" ended in error. The value for the input parameter "target server information" is missing.

ASN1954E ASNCLP : Command failed.

SET SERVER CAPTURE TO DB SAMPLE ID DB2ADMIN PASSWORD "db2admin";


SET SERVER CONTROL TO DB TARGET ID DB2ADMIN PASSWORD "db2admin";

SET OUTPUT CAPTURE SCRIPT "capsubset.sql" CONTROL SCRIPT "appsubset.sql";

SET LOG "subset.err";

# 2 Creating a subscription set # The CREATE SUBSCRIPTION SET command creates a set named SET00 with an Apply # qualifier of AQ00. It specifies that the set be activated indefinitely on a # specified start date and time, and that the set be processed every minute.


CREATE SUBSCRIPTION SET SETNAME SET00 APPLYQUAL AQ00 ACTIVATE YES TIMING INTERVAL 1 START DATE "2010-05-23" TIME "18:15:00.000000";


QUIT;

I am getting the following error :

ASN1550E The replication action "Create Subscription Set" ended in error. The value for the input parameter "target server information" is missing.

ASN1954E ASNCLP : Command failed.


Please let me know how to define the target server.

Thank you.

Please reply.
Reply With Quote
  #2 (permalink)  
Old 05-23-10, 16:20
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I would suggest you use the Replication GUI to create your scripts (you can save them without executing them via the GUI and then execute via command line).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390

Last edited by Marcus_A; 05-23-10 at 16:25.
Reply With Quote
  #3 (permalink)  
Old 05-23-10, 20:53
lazydev lazydev is offline
Registered User
 
Join Date: Mar 2010
Posts: 15
Add one more line to your script along with control server and capture server .

SET SERVER TARGET TO DB TARGET ID DB2ADMIN PASSWORD "db2admin";
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