disable oracle-xe-21c service on Linux (Ubuntu)

Viewed 93

I need to be able to start the oracle-xe-21c at will, and do not want it to start automatically at system boot. The command:

sudo systemctl disable oracle-xe-21c

returns the following:

oracle-xe-21c.service is not a native service, redirecting to systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable oracle-xe-21c update-rc.d: error: oracle-xe-21c Default-Start contains no runlevels, aborting.

How can I disable automatic startup?. I am on Lubuntu 20.04.

1 Answers

Suggesting to remove oracle-xe-21c.service file from the service folder will disable the service.

sudo mv /etc/systemd/system/oracle-xe-21c.service /home/oracle
Related