首页 > Linux操作系统 > Linux操作系统 > linux下如何自动启动db!
1、编写启动db的脚本文件dbstart.sh
lsnrctl start
sqlplus /nolog <connect sys/system@test as sysdba
startup
!
2、把该脚本文件加入/etc/rc.local中,加入以后rc.local内容如下:
[oracle@xys oracle]$ more /etc/rc.local
touch /var/lock/subsys/local
su - oracle -c /home/oracle/dbstart.sh
办法应该比较多吧
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/19602/viewspace-1008482/ ,如需转载,请注明出处,否则将追究法律责任。