1. 修改$ORACLE_HOME/bin/dbstart
[oracle@orcl ~]$ vim $ORACLE_HOME/bin/dbstart
// 将ORACLE_HOME_LISTNER=$1 修改为 ORACLE_HOME_LISTNER=$ORACLE_HOME
2. 修改$ORACLE_HOME/bin/dbshut
[oracle@orcl ~]$ vim $ORACLE_HOME/bin/dbshut
// 将ORACLE_HOME_LISTNER=$1 修改为 ORACLE_HOME_LISTNER=$ORACLE_HOME
3. 修改/etc/oratab文件
[oracle@orcl ~]$ vim /etc/oratab
// 将orcl:/u01/app/oracle/product/12.1.0/dbhome_1:N 修改为 orcl:/u01/app/oracle/product/12.1.0/dbhome_1:Y
4. 修改/etc/rc.d/rc.local
[root@orcl rc.d]# vi 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.
touch /var/lock/subsys/local
su - oracle -c '/u01/app/oracle/product/12.1.0/dbhome_1/bin/lsnrctl start'
su - oracle -c '/u01/app/oracle/product/12.1.0/dbhome_1/bin/dbstart start'