Automating Oracle database 19c startup during Redhat / Oracle Linux 8.10 server (filesystem) reboot

 # cd /usr/lib/systemd/system 

# vi oracle.service

 

[Unit] 
Description=Oracle Database Service 
After=network.target

[Service]
Type=simple 
RemainAfterExit=yes 
User=oracle 
Group=oinstall

Environment="ORACLE_HOME=/opt/app/oracle/product/19.3.0/dbhome_1"
ExecStart=/opt/app/oracle/product/19.3.0/dbhome_1/bin/dbstart $ORACLE_HOME >> 2>&1 &
ExecStop=/opt/app/oracle/product/19.3.0/dbhome_1/bin/dbshut $ORACLE_HOME 2>&1 &


TimeoutSec=120

[Install]
WantedBy=multi-user.target


# systemctl enable oracle.service
# systemctl start oracle.service
# systemctl status oracle.service

Comments

Popular posts from this blog

Enabling Autostart during server reboot of Oracle Database 19c filesystem on Oracle / Redhat Linux 7

Management of Users and privilleges in Oracle Database 12c / 19c in container & Pluggable database

Oracle Temporary Tablespace Resize