Finds the materialization status of a subscription to a replication definition or a publication.
check subscription sub_name for {table_rep_def | function_rep_def | [ publication pub_name | database replication definition db_repdef ] with primary at data_server.database } with replicate at data_server.database
The name of the subscription to check.
Specifies the name of the table replication definition the subscription is for.
Specifies the name of the function replication definition the subscription is for.
Specifies the name of the publication the subscription is for.
Specifies the name of the database replication definition the subscription is for.
Specifies the location of the primary data. If the primary database is part of a warm standby application, data_server.database is the name of the logical data server and database. Include this clause only for a subscription for a publication.
Specifies the location of the replicate data. If the replicate database is part of a warm standby application, data_server.database is the name of the logical data server and database.
Checks the status of the subscription titles_sub for the replication definition titles_rep, where the replicate database is SYDNEY_DS.pubs2:
check subscription titles_sub for titles_rep with replicate at SYDNEY_DS.pubs2
Checks the status of the subscription pubs2_sub for the publication pubs2_pub, where the primary database is TOKYO_DS.pubs2 and the replicate database is SYDNEY_DS.pubs2:
check subscription pubs2_sub for publication pubs2_pub with primary at TOKYO_DS.pubs2 with replicate at SYDNEY_DS.pubs2
Use check subscription to find the status of a subscription during subscription materialization or dematerialization, or during the process of refreshing a publication subscription. The subscription can be to a table replication definition, function replication definition, or publication.
See the Replication Server Administration Guide Volume 1 for more information about subscriptions.
Execute check subscription at the Replication Server that manages the database where the replicate data is to be stored or the Replication Server that manages the primary database.
The results of check subscription differ depending on where the command is executed. If the Replication Server manages both the primary and replicate database, check subscription returns two status messages.
To check publication status, use check publication. See check publication for more information.
Refer to the Replication Server Troubleshooting Guide for detailed information about monitoring subscriptions using check subscription.
When you execute check subscription at a replicate Replication Server, it returns one of these messages.
In a warm standby application, there may be two lines of output showing the status at the active and at the standby replicate database.
INVALID |
|
REMOVING |
|
DEMATERIALIZING |
|
VALID |
|
VALIDATING |
|
MATERIALIZED |
|
ACTIVE |
|
ACTIVATING |
|
ACTIVATING |
|
QCOMPLETE and ACTIVE |
|
QCOMPLETE |
|
ACTIVE and not QCOMPLETE |
|
DEFINED |
|
In addition to the above messages, executing check subscription at a replicate Replication Server may return one of these messages:
ERROR |
|
PENDING |
|
RECOVERING |
|
When you execute check subscription at a primary Replication Server, it returns one of these messages:
INVALID |
|
DEMATERIALIZING |
|
VALID |
|
ACTIVE |
|
ACTIVATING |
|
DEFINED |
|
Any user may execute this command.
activate subscription, check publication, create subscription, define subscription, drop subscription, validate subscription