Oracle server generally preferably manually start, so that the problem can be solved on the spot, but also worry about sometimes machine failure, automatic restart, in order to quickly restore the application, need to start Oracle automatically boot, and found that under different OS, startup settings are not the same
1,centos operating system, you can set this
Add it directly inside the rc.local
[[email protected] ~]# vim /etc/rc.local touch /var/lockasas sysdbastartupquitEOF
Effective after reboot, PS: But fails under Redhat system
2,redhat operating system under, with Dbstart Way 2.1, test
have error message, prompt oracle_home do not recognize, the following solution, modify Dbstart and Dbstut, some version dbstut cannot find does not exist, can be ignored.
Vim/oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbstart
Vim/oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbstut
Will
Oracle_home_listner =$1
Change into
oracle_home_listner= $ORACLE _home
2.2,[[email protected] ~]# Vim/etc/oratab
Powerdes:/oracle/app/oracle/product/11.2.0/dbhome_1:y
2.3 Set the boot from rc.local inside
[[email protected] bin]# vim /etc/rc.local #!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own initialization stuff in here if you don‘t# want to do the full Sys V style init stuff."/oracle/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start""/oracle/app/oracle/product/11.2.0/dbhome_1/bin/dbstart"
The DB server restart takes effect.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
oracle11g boot settings on Linux system