Posts

Showing posts from October, 2024

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