Benutzer-Werkzeuge

Webseiten-Werkzeuge


dba:start_db_linux

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
dba:start_db_linux [2016/10/02 14:17] – [Service anlegen] gpipperrdba:start_db_linux [2019/12/02 22:49] (aktuell) gpipperr
Zeile 1: Zeile 1:
 ====== Datenbank unter Linux 6 und Linux 7 automatisch starten ====== ====== Datenbank unter Linux 6 und Linux 7 automatisch starten ======
 +** 10.2016 **
  
 Zuvor darauf achten das auch eine "/etc/oratab" Datei angelegt wurde! Zuvor darauf achten das auch eine "/etc/oratab" Datei angelegt wurde!
Zeile 66: Zeile 66:
 </code> </code>
  
-Start/stop Scripts anlegen als user orcle+Start/stop Scripts anlegen als user oracle
 <code bash> <code bash>
 vi /opt/oracle/scripts/startdb.sh vi /opt/oracle/scripts/startdb.sh
Zeile 101: Zeile 101:
 User=oracle User=oracle
 Group=oinstall Group=oinstall
-ExecStart=/home/oracle/scripts/startdb.sh  +ExecStart=/opt/oracle/scripts/startdb.sh  
-ExecStop=/home/oracle/scripts/stopdb.sh+ExecStop=/opt/oracle/scripts/stopdb.sh
  
 [Install] [Install]
Zeile 112: Zeile 112:
  
 <code bash> <code bash>
-ln -s /lib/systemd/system/dbora.service /etc/systemd/system/dbora.service+ln -s /lib/systemd/system/dbora.service /etc/systemd/system/dbora.service
 </code> </code>
  
Zeile 134: Zeile 134:
  
  
-</code>+#Stoppen
  
 +systemctl stop dbora.service
  
 +#prüfen ob die Start Reichenfolge auch passt:
  
 +systemd-analyze critical-chain dbora.service
  
 +</code>
  
 +<fc #800000>Problem: Failed at step EXEC spawning ... Exec format error</fc>
  
 <code bash> <code bash>
Zeile 146: Zeile 151:
 </code> </code>
  
-=> "#!/bin/sh" am Anfang vom Script nicht vergessen!+=> **"#!/bin/sh"** am Anfang vom Script nicht vergessen!
  
-Probleme: +===Quellen=== 
- +
-  * https://fedoraproject.org/wiki/How_to_debug_Systemd_problems+
  
 Siehe auch  Siehe auch 
   * https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html   * https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html
   * https://oracle-base.com/articles/linux/linux-services-systemd   * https://oracle-base.com/articles/linux/linux-services-systemd
 +  * https://fedoraproject.org/wiki/How_to_debug_Systemd_problems
 +  * https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files
  
  
dba/start_db_linux.txt · Zuletzt geändert: 2019/12/02 22:49 von gpipperr