automating backup in a replicate envrionment
I have a simple replication scheme setup to replicate a simple database. There are only two servers in the scheme. However, at any point in time, one or the other of the servers can be the master and the other the slave by executing the appropriate commands to each server (stop slave, reset master, change master, etc). This is all working quite well. I need to provide a shell script to backup both servers, but the script must recognize which server is the master and which is the slave at the time the script runs from crontab.
I haven't found any command that directly answers the question and trying to use show processlist, show master status or show slave status doesn't seem to give a clear answer once both servers have played both roles.
Thoughts, ideas?
Thanks!
Subject
Views
Written By
Posted
automating backup in a replicate envrionment
3903
January 10, 2005 04:49PM
2703
January 10, 2005 05:04PM
2509
January 11, 2005 05:26PM
2761
January 11, 2005 11:19PM
2847
January 12, 2005 10:08AM
2705
January 18, 2005 12:33PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.