RAC-Datenbank oder einzelne Instanz mit srvctl stoppen/starten (rolling)
OracleRAC & GridBefehl
# Whole database (all instances):
srvctl stop database -db <db_unique_name> -stopoption immediate
srvctl start database -db <db_unique_name>
# Rolling maintenance: stop one instance, moving its services to the other instances
srvctl stop instance -db <db_unique_name> -instance <instance> \
-stopoption immediate -drain_timeout 300 -failover
srvctl start instance -db <db_unique_name> -instance <instance>
# By node:
srvctl stop instance -db <db_unique_name> -node <node> -stopoption immediate
# Start in a specific open mode (e.g. a physical standby in mount):
srvctl start database -db <db_unique_name> -startoption mountWas es tut
Stoppt/startet die Datenbank oder die gewählte Instanz kontrolliert über Clusterware; mit -failover wechseln die Services der gestoppten Instanz auf verfügbare Instanzen, und -drain_timeout wartet, bis Sessions abgebaut sind.
Wann einsetzen
Für Rolling-Neustarts (Knoten für Knoten) bei Patching, OS-Wartung oder Parameteränderungen; für ein geplantes vollständiges Herunterfahren.
Vorsicht
Verwende in RAC srvctl statt SQL*Plus SHUTDOWN; sonst kennt Clusterware das TARGET der Ressource nicht und startet die Instanz eventuell neu. stop database fährt alle Instanzen herunter = vollständiger Ausfall. Haben Services keine verfügbaren Instanzen definiert, kann -failover die Verbindungen nicht verschieben.
Verwandte Einträge
- Status von RAC-Datenbank, Instanzen und Services mit srvctl prüfen
- RAC-Service mit Preferred-/Available-Instanzen hinzufügen (inkl. Application Continuity)
- RAC-Service auf eine andere Instanz verlagern
- Status der Cluster-Ressourcen prüfen (crsctl stat res -t)
- Zustand des Cluster-Stacks, Knotenliste und Clusterware-Version prüfen
- OCR-Integrität prüfen und OCR-Backup erstellen (ocrcheck / ocrconfig)