Granting maintenance access to system tables and procedures

The Database Owner or the System Administrator must grant to the maintenance user the permissions required to insert, delete, and update rows in replicated tables and to execute replicated stored procedures.


Procedure permissions

Grant execute permissions for each of the following procedures:

All procedures are performed in Sybase Central. Follow these instructions for Windows or UNIX.

  1. To start Sybase Central, do this:

  2. In Sybase Central, right-click on Sybase IQ and choose Connect.

  3. Add the appropriate connection information and click OK.

  4. Expand Sybase IQ | Sybase IQ <target database> | Procedures & Functions.

  5. Right-click on a procedure, choose Properties and click Permissions | Grant.

    NoteIf these procedures and functions are not listed, do the following in Sybase Central:

    • Right-click on the database name.

    • Select Filter Objects by Owner.

    • Check rs_systabgroup and click OK.

    • Click View | Refresh Folder.

    • Expand Procedures & Functions and continue with this step.

  6. On the Grant Permissions dialog, choose rs_systabgroup and click OK.

    The rs_systabgroup group on the properties dialog appears with a check mark in the Execute column. Click OK.

  7. Repeat steps 5 – 6 for each procedure in the list.


Table permissions

This procedure grants Insert, Update, and Delete Permissions for the rs_lastcommit and rs_threads tables in the Sybase IQ database. rs_lastcommit commits a transaction; rs_threads detects deadlocks and performs transaction serialization between parallel DSI threads.

  1. Expand Sybase IQ | <target database> | Tables.

  2. Right-click on the appropriate table, choose Properties, and click Permissions | Grant.

  3. On the Grant Permissions dialog, choose rs_systabgroup and click OK.

  4. On the Permissions tab, choose Select, Insert, Update, and Delete permissions. Click OK.

  5. Repeat steps 2 – 4 for each table in the list.


Replication table permissions

This procedure grants all permissions on the Sybase IQ target replication tables to either the maintenance user or rs_systabgroup group.

  1. Expand Sybase IQ | <target database> | Tables.

  2. Right-click the replicate table, choose Properties and click Permissions | Grant.

  3. On the Grant Permissions dialog, choose rsuser (maintenance user) or rs_systabgroup and click OK.

  4. Close Sybase Central.