DBAtlas · Atlas für Datenbankbetrieb

RAC-Datenbank oder einzelne Instanz mit srvctl stoppen/starten (rolling)

OracleRAC & Grid

Befehl

# 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 mount

Was 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.

In DBAtlas öffnen →

Verwandte Einträge