This console configures a transactional replication schema from scratch on a Linux SQL Server Installation. Bidirectional option is also available (data flows from subscriber to publisher and viceversa).
Pre requisites:
- SQL Server 2017 installation over Linux (Docker is recommended)
- Database engines must be on the same network, so they can see each other by hostname (if using Docker, just run
docker network create network_name
and thendocker network connect network_name container_name
) - SQL Agent must be enabled (it's disabled by default). (if using Docker, just run
docker exec -it container_name /opt/mssql/bin/mssql-conf set sqlagent.enabled true
) - Replication Data folder (ReplData for this solution) must be made manually for the distributor (if using Docker, just run
docker exec -it container_name mkdir /var/opt/mssql/ReplData
. Container must be restarted after this.)
Steps to configure new schema:
- Run the console
- Choose action 1 on the menu displayed (Setup initial replication schema)
- Provide distributor and publisher data
- Provide articles, if any
- Provide subscribers, if any
- Confirm bidirectional replication, if needed
- Provide articles, if any
Setps to add new subscriber to existing publication (replication):
- Run the console
- Choose action 2 on the menu displayed (Add subscription to publication)
- Provide distributor and publisher data
- Confirm bidirectional replication, if needed
- Provide articles, if any
Important Notes:
- Distribution database name is set to
distribution
by default - New publications will have a default name of "Database Name" + "DB" by default
Pull requests are welcome!