Oracle Database 18c Express Edition can be enabled for automatic startup and shutdown with the Linux operating system. This will not only allow you not to worry about starting and stopping the database but it will also ensure that the database is properly shutdown before the machine is powered off. Enabling auto startup/shutdown is done via two simple commands:
systemctl daemon-reload
systemctl enable oracle-xe-18c
These commands will have to be executed either via the root
user or with root
privileges:
[root@localhost ~]# systemctl daemon-reload [root@localhost ~]# systemctl enable oracle-xe-18c oracle-xe-18c.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig oracle-xe-18c on
For more information about starting and stopping Oracle Database XE, have a look at the documentation.