This rc script is for Red Hat/CentOS/Oracle Linux systems, to start Oracle Database automatically on system startup.
$Id: rc_dbora.html,v 1.1 2010-05-28 14:43:53+09 kabe Exp $
/etc/rc.d/init.d/dbora
/etc/sysconfig/dbora
(new file you will create)
, the following values:
ORACLE_USER=oracle
ORATAB=/etc/oratab
oratab
file.
/etc/oratab
on Red Hat et al,
/var/opt/oracle/oratab
on Solaris
The official manual includes a sample rc script. Using that is recommended if it suffices.
This script does
rsh
(1)/remsh
(1), which are not
even installed on modern UNIX variants.
Uses sudo
(1) to switch user.
ORACLE_HOME
.
Will pick one from oratab
.