STOP OBSERVER
The STOP OBSERVER command stops the fast-start failover observer.
Format
STOP OBSERVER [<observer_name> | ALL];
Command Parameters
- observer_name
- The name of the observer you want to stop. If a name is not specified and there is only one registered observer for the configuration, then it will be stopped; if there is more than one registered observer in the configuration, then an error message is returned.
The ALL keyword stops all observers registered in this broker configuration.
Usage Notes
-
You can issue this command while connected to any database in the broker configuration.
-
This command does not disable fast-start failover, but a fast-start failover cannot be initiated in the absence of an observer.
-
Fast-start failover does not need to be enabled when you issue this command.
-
If fast-start failover is enabled when you issue the
STOP OBSERVERcommand, then the primary and standby databases must be connected and communicating with each other. Otherwise the following error is returned:ORA-16636 fast-start failover target standby in error state, cannot stop observer
If connectivity does not exist between the primary and standby databases, you can issue the
DISABLE FAST_START FAILOVER FORCEcommand on the primary database and then issue theSTOP OBSERVERcommand. Note that disabling fast-start failover with theFORCEoption on a primary database that is disconnected from the observer and the target standby database does not prevent the observer from initiating a fast-start failover to the target standby database. -
If fast-start failover is not enabled when you issue the
STOP OBSERVERcommand, then only the primary database must be running when you stop the observer. -
The observer does not stop immediately when the
STOP OBSERVERcommand is issued. The observer does not discover it has been stopped until the next time the observer contacts the broker.As soon as you have issued the
STOP OBSERVERcommand, you may enter theSTART OBSERVERcommand again on any computer. You can start a new observer right away, even if the old observer has not yet discovered it was stopped. Any attempt to restart the old observer will fail, because a new observer has been started for the broker configuration. -
The
STOP OBSERVERcommand fails if a switch to a new fast-start failover target or new master observer is underway. -
The
STOP OBSERVERcommand fails if there are two or more registered observers and you attempt to stop only the master.
Command Example
The following example stops all observers running in the broker configuration .
DGMGRL> STOP OBSERVER ALL;