Updating the schema of a replicated database
Changing the schema of an iBase database requires the SQL Server administrator to stop replication for all sites while you apply an updated database template to the database at each site. Before replication is stopped, you need to prepare the database by reviewing all existing conflicts and then take the database offline. After the schema changes are applied at each site, the SQL Server administrator must reconfigure replication.
Before you begin
- Log on as a database or system administrator and open the publication database.
- Using the File Manager, distribute the database template that contains the revised schema to the other sites. The template must remain loaded in the database.
- Ask any users that are using the database to log off.Note: If you use iBase Scheduler, disable the Scheduler service, after this point, you must not allow any imports to run.
- Check that all database connections are closed. For example, if you can log on to the remote servers, try to open the database in iBase Designer. If you can open iBase Designer, then you have exclusive access to the database at that site. If necessary, ask the SQL Server administrator to log out the remaining users.
- Review the current conflicts in the Conflict Viewer. If you change any of the records that are involved in the conflicts make a note of the last record that you change and the nature of the change.
- Check that any records modified as a result of using the Conflict Viewer are replicated to all the subscription databases.
- Ask the SQL Server administrator to disable replication.
- When the SQL Server administrator informs you that replication is disabled, open the publication database and run the Status report to confirm this. If replication is disabled, it reports Publication not found.
You are now ready to apply the schema change.
About this task
You must apply the same schema to all the databases. Update Database Schema displays the differences between the schema in the currently loaded template and the schema of the current database. The displayed additions, modifications, and deletions are applied to the current database.