Using retained publications with a Sybase database

If you have created a broker that uses a Sybase database, and you expect extensive use of retained publications with multiple topics, you are recommended to apply row-level locking to the retained publications table in the database. If you do not plan to use retained publications, or expect their use to be infrequent, you do not have to make this change.

If you do not apply row-level locking, and your use of retained publications is too great, the broker will experience deadlock problems.

To apply row-level locking:

  1. At a command prompt enter the following command:
    isql -Umqsiuid -Pmqsipw

    If you have authorized another user ID and password for broker access to this database, substitute your values for mqsiuid and mqsipw in that command.

  2. Connect to the broker database with this command:
    use WBRKBKDB

    If you have created your broker database with a different name, substitute your name for WBRKBKDB in that command.

  3. Update the retained publications table to use row-level locking with this command:
    alter table mqsiuid.BRETAINEDPUBS lock datarows

    If the owner of this database instance is not mqsiuid, substitute the correct schema name in that command.

  4. Apply the change with this command:
    go
You can check that the change has been successfully applied by entering the commands:
sp_help BRETAINEDPUBS
go

The locking scheme is displayed: lock scheme datarows.

If the change has not completed, it is displayed as: lock scheme allpages.

Related tasks
Configuring component databases
Preparing databases on UNIX systems
Connecting to the databases
Authorizing access to the databases
Related reference
Supported databases