Oracle on Linux to set boot from the start

1, modifying the oratab
#cat / etc / the oratab
sdzy: /u01/oracle/product/11.2.0/dbhome_1: Y
N Y into

2, modifying the dbstart
$ CD $ ORACLE_HOME / bin
$ Vim the dbstart
the ORACLE_HOME_LISTNER = $ 1
modified ORACLE_HOME_LISTNER = $ ORACLE_HOME

3、修改/etc/rc.local
#vi /etc/rc.local
su - oracle -c '/u01/oracle/11.2.0/db_1/bin/lsnrctl start'
su - oracle -c /u01/oracle/11.2.0/db_1/bin/dbstart

4, modify the Execute permissions
linux7 default weaken the rc.local file execute permission to add
chmod + x /etc/rc.d/rc.local

Guess you like

Origin blog.51cto.com/12865902/2403724