Recent versions of Ubuntu use Upstart instead of System-V style initialization, so if you want Oracle to start at boot time then you’ll need an Upstart script for Oracle. Create a file named /etc/init/oracle.conf
:
|
|
and add the following contents to the file:
expect fork pre-start script su - $ORACLE -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME" end script post-stop script su - $ORACLE -c "$ORACLE_HOME/bin/dbshut $ORACLE_HOME" end script
You may need to modify the value of the ORACLE_HOME
and ORACLE
environment variables to match your local settings.