This topic describes how to switch to the standby database and retain complete data in the primary database when the primary database fails.
Procedure
Run the following command to enter the Docker container.
docker exec -it ${CONTAINER_NAME} bashNote
CONTAINER_NAMEspecifies the name of the container.Execute the following script in the
rootdirectory:sh docker_update_meta_db.shIn the step of modifying the configurations of the MetaDB, enter the IP address, port, username, and password of the MetaDB as prompted.
You can modify the configurations of the MetaDB for a MySQL database or a MySQL tenant of OceanBase Database to store the metadata generated during the running of OMS Community Edition.
Wait for the automatic completion of the step to modify the configuration file of links to component libraries of OMS.
Make a choice in the step of determining whether to initialize tables in the MetaDB.
You can enter
yand press Enter to automatically create tables required for metadata of OMS Community Edition in the standby database.You can enter
nand press Enter to choose not to create tables, if the tables required by OMS Community Edition already exist in the standby database.
Wait for the components to restart.