SYSTEM$DISABLE_DATABASE_REPLICATION
functionsupportedReplication, failover & backupDisable replication for a primary database and any secondary databases linked to it. If a database was previously enabled for replication using ALTER DATABASE … ENABLE REPLICATION TO ACCOUNTS, database replication must be disabled before the database can be added to a replication or failover group.
Syntax
SYSTEM$DISABLE_DATABASE_REPLICATION('<db_name>');
Parameters
| Name | Required | Description |
|---|---|---|
db_name | required | Specifies the identifier for the database. |
Usage notes
- Only account administrators (users with the ACCOUNTADMIN role) can execute this SQL function.
- This function must be executed from the source account with the primary database.