Hallo,
hat das schon mal einer gemacht?
Mit 12.2 und sysvinit war das kein Problem, die Installation etwas anpassen an openSUSE, alles klar.
Mit 13.1 und systemd geht es auch noch, aber 13.2 wird zum Albtraum.
Mit systemd klappt das starten auch, entweder über /etc/init.d/oracle-xe oder einen
selbst geschriebenen /usr/lib/systemd/system/oracledb.service Service-File.
Das herunterahren (reboot/poweroff) stellt allerdings ein Problem dar:
Das geht so schnell das die oracle-xe gar keine Zeit bekommt(?) sich runterzufahren,
da wird sie schon abgeschossen.
Beim nächsten start macht sie zwar ein Crash recovery, fühlt sich aber nicht gut an.
Das sieht dann so aus:
shutdown:
Performing implicit shutdown abort due to dead PMON
Shutting down instance (abort)
License high water mark = 3
USER (ospid: 1648): terminating the instance
Instance terminated by USER, pid = 1648
Thu Feb 26 22:42:50 2015
Instance shutdown complete
ORA-1092 : opitsk aborting process
Fri Feb 27 20:20:47 2015
startup:
Beginning crash recovery of 1 threads
Started redo scan
Completed redo scan
read 57 KB redo, 50 data blocks need recovery
Started redo application at
Thread 1: logseq 19, block 3
Recovery of Online Redo Log: Thread 1 Group 1 Seq 19 Reading mem 0
Mem# 0: /u01/app/oracle/fast_recovery_area/XE/onlinelog/o1_mf_1_bgsxvxd8_.log
Completed redo application of 0.04MB
Completed crash recovery at
Thread 1: logseq 19, block 117, scn 648314
50 data blocks read, 50 data blocks written, 57 redo k-bytes read
Kann man reboot/poweroff irgendwie verlangsamen / bremsen?
Hier der /usr/lib/systemd/system/oracledb.service:
[Unit]
Description=<<< Oracle Express Edition 11 >>>
After=syslog.target network.target
[Service]
Type=simple
Environment=ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
Environment=ORACLE_OWNER=oracle
Environment=ORACLE_SID=XE
Environment=LSNR=$ORACLE_HOME/bin/lsnrctl
Environment=SQLPLUS=$ORACLE_HOME/bin/sqlplus
Environment=ORACLE_BASE=/u01/app/oracle
Environment=NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
Environment=ORACLE_ADMIN=/u01/app/oracle/admin/$ORACLE_SID
Environment=ORACLE_FLASH=/u01/app/oracle/fast_recovery_area/$ORACLE_SID
Environment=ORACLE_ALERT=/u01/app/oracle/diag/rdbms/xe/XE/trace
Environment=ORACLE_DATA_PUMP_DIR=/u01/app/oracle/admin/XE/dpdump
Environment=DIAGNOSTIC_DEST=$ORACLE_HOME/log
Environment=TNS_ADMIN=$ORACLE_HOME/network/admin
ExecStartPre=/usr/bin/echo "<<< Starting Oracle Express Edition 11 >>>"
ExecStart=/usr/bin/su oracle -c "/u01/app/oracle/product/11.2.0/xe/bin/startup.sh"
ExecStartPost=/usr/bin/touch /var/lock/subsys/listener
ExecStartPost=/usr/bin/touch /var/lock/subsys/oracle-xe
ExecStopPost=/usr/bin/echo "<<< Stopping Oracle Express Edition 11 >>>"
ExecStop=/usr/bin/su oracle -c "/u01/app/oracle/product/11.2.0/xe/bin/shutdown.sh"
ExecStopPost=/usr/bin/rm -f /var/lock/subsys/oracle-xe
ExecStopPost=/usr/bin/rm -f /var/lock/subsys/listener
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Das original /etc/init.d/oracle-xe von oracle kann ich auch noch liefern,
wenn gewünscht, ist aber ziemlich lang.
Das ganze läuft übrigens auf ext4 mit den Partitionen
swap
/
/u01
/srv/samba
ohne snapper, minimal ohne GUI
MfG