Home | Previous Page | Next Page   Setting Up and Managing Enterprise Replication > Managing Replication Servers and Replicates > Performing Alter Operations on Replicated Tables >

Dropping a Replicated Column

You can alter a replicated table to drop an existing column that is replicated.

To drop a replicated column
  1. Remaster the replicate and modify the replicate's SELECT statement to remove the column being dropped, as described in Remastering a Replicate.
  2. If the master replicate has shadow replicates defined, remove the column being dropped from their definitions as well.
  3. Wait for the shadow replicate created by the remastering process to be cleaned up automatically.

    To check when the shadow replicate has been deleted, look in the server log file for a message similar to this:

    CDR CDRRTBCleaner: Deleted obsolete replicate
    Shadow_4_Repl1_GMT1090373046_GID10_PID28836

    The second line shows the name of the shadow replicate. See cdr remaster for information about the format of shadow replicate names.

    Alternatively, you can use either the cdr list replicate or onstat -g cat repls command to view the status of the shadow replicate. After the shadow replicate has been deleted, these commands will no longer show information about it.

  4. Use the ALTER TABLE statement to drop the columns from the replicated table at all participating nodes.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]