Shadow tables for primary tables with large objects  Distribution Database replicate objects

Appendix A: Distribution Database Schema

Shadow tables for primary procedures

When you create a primary article for a stored procedure, ASE Replicator creates a shadow table with the columns described in Table A-20.

Table A-20: Shadow table for procedure

Column name

Datatype

Description

conn_id

numeric(18,0)

ID of the primary connection

txid_page

int

The transaction ID page in the transaction log table

txid_row

smallint

The transaction ID row in the transaction log table

log_ts_high

smallint

Log timestamp high value in the transaction log table

log_ts_low

int

Log timestamp low value in the transaction log table

opid_page

int

The operation ID page in the transaction log table

opid_row

smallint

The operation ID row in the transaction log table

op_code

tinyint

Type of operation

op_xstat

int

Identifies operation as either update or delete

image_type_

char(1)

Identifies operation type or procedure execution

p1

Specified in primary object

Column for a published field in the primary object

...

pn

...

...

Additional column for each published field in the primary object

The shadow table column for each published field has the datatype of the published procedure parameter, and each row contains the data from that parameter for the procedure invocation identified by that row.

NoteThe replicate article for a procedure may subscribe to none of the published fields in the primary article, so the shadow table for such a replicate article may contain no columns for published fields.





Copyright © 2005. Sybase Inc. All rights reserved. Distribution Database replicate objects

View this book as PDF