- 论坛徽章:
- 0
|
想让服务器在启动的时候,数据库也自动启动
/sbin/rc3.d/S910oracle:
#!/sbin/sh
...
.
.
.
.
if [ -f /etc/rc.config.d/oracleconf ] ; then
. /etc/rc.config.d/oracleconf
else
echo \"ERROR: /etc/rc.config.d/oracleconf defaults file MISSING\"
fi
if [ \"$ORACLE_START\" -ne 1 ];then
echo ORACLE_START not set to one in /etc/rc.config.d/oracleconf, exiting.
exit 0
fi
echo \" starting ORACLE SERVER\" >;&2
echo \" \" >;&2
写上你的启动脚本,参考S210syslogd
文件/etc/rc.config.d/oracleconf:
#!/sbin/sh
# Oracle configuration
ORACLE_START=1 |
|