修改READ WRITE和READ ONLY状态。
READ WRITE和READ ONLY状态可以在线相互切换,HA主备部署时,只能在主机执行。
从READ ONLY切换为READ WRITE:
ALTER DATABASE CONVERT TO READWRITE;
从READ WRITE切换为READ ONLY:
ALTER DATABASE CONVERT TO READONLY;