Skip to content

Instantly share code, notes, and snippets.

@64lines
Created November 7, 2017 15:47
Show Gist options
  • Select an option

  • Save 64lines/3e05d7914b64682f69c9e54acb4573d1 to your computer and use it in GitHub Desktop.

Select an option

Save 64lines/3e05d7914b64682f69c9e54acb4573d1 to your computer and use it in GitHub Desktop.
oracle-rdbms.service
# /etc/systemd/system/oracle-rdbms.service
# Ivan Kartik http://ivan.kartik.sk
# Invoking Oracle scripts to start/shutdown Instances defined in /etc/oratab
# and starts Listener
[Unit]
Description=Oracle Database(s) and Listener
Requires=network.target
[Service]
Type=forking
Restart=no
ExecStart=/u01/app/oracle/product/12/db_1/bin/dbstart /u01/app/oracle/product/12/db_1
ExecStop=/u01/app/oracle/product/12/db_1/bin/dbshut /u01/app/oracle/product/12/db_1
User=oracle
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment