Creating a Subscription (createsub) v6.2

For SMR only: The createsub command creates a new subscription.

Synopsis

-createsub subname
  -subsvrfile subsvrfile
  -subdbid dbid
  -pubsvrfile pubsvrfile
  -pubname pubname
[ -filterrule filterid_1[,filterid_2 ] ...]

The createsub command adds a new subscription subordinate to the subscription database definition with the subscription database ID given by parameter subdbid.

See Adding a Subscription for additional information on creating a subscription.

Parameters

subname

The subscription name to be given to the new subscription.

subsvrfile

The file containing the subscription server login information of the subscription server under which the new subscription is subordinate.

dbid

The subscription database ID of the subscription database definition subordinate to which the new subscription is to be added.

pubsvrfile

The file containing the publication server login information of the publication server under which the publication is subordinate to which the new subscription is to be associated.

pubname

The publication to which the new subscription is to be associated.

filterid_n

Comma-separated list of filter IDs identifying the filter rules from the set of available table filters to enable on the corresponding tables in the new subscription. Use the printpubfilterslist command to obtain the filter IDs for the available filter rules in the publication (see Printing a List of Filters in a Publication). Note: There must be no white space between the comma and filter IDs.

Examples

In the following example, a subscription named dept_emp_sub is created in the Advanced Server subscription database identified by subscription database ID 2. The subscription is associated with a publication named dept_emp.

$ java -jar edb-repcli.jar -createsub dept_emp_sub \
>   -subsvrfile ~/subsvrfile.prop \
>   -subdbid 2 \
>   -pubsvrfile ~/pubsvrfile.prop \
>   -pubname dept_emp
Creating subscription...
Subscription created successfully