Colocando o ORACLE para iniciar automaticamente.
Depois de você ter configurado o banco direitinho tudo parece estar funcionando como devia, ate que....
Vamos dar um reboot e o banco não inicia sozinho.
Isso não pode é feio né.....
Seus problema acabaram vamos criar um arquivo que inicializara o oracle automaticamente.
[root@]# vi /etc/oratab
#<<NOME DO BANCO >>:$ORACLE_HOME :(Y)es / (N)o
banco_faturamento:/u01/app/oracle/product/11.2.0.4/db_1:Y
:wq << sai salvando >>
[root@]# vi /etc/init.d/dbora
# ==> digite o texto abaixo ou para não ter erro copie e cole.
#! /bin/sh -x
#
# chkconfig: 2345 80 05
# description: start and stop Oracle Database Enterprise Edition on Oracle Linux 5 and 6
#
# In /etc/oratab, change the autostart field from N to Y for any
# databases that you want autostarted.
#
# Create this file as /etc/init.d/dbora and execute:
# chmod 750 /etc/init.d/dbora
# chkconfig --add dbora
# chkconfig dbora on
# Note: Change the value of ORACLE_HOME to specify the correct Oracle home
# directory for your installation.
# ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1
ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1 <<<<< ENDEREÇO DO SEU $ORACLE_HOME >>>>>
#
# Note: Change the value of ORACLE to the login name of the oracle owner
ORACLE=oracle
PATH=${PATH}:$ORACLE_HOME/bin
HOST=`hostname`
PLATFORM=`uname`
export ORACLE_HOME PATH
case $1 in
'start')
echo -n $"Starting Oracle: "
su $ORACLE -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME" &
;;
'stop')
echo -n $"Shutting down Oracle: "
su $ORACLE -c "$ORACLE_HOME/bin/dbshut $ORACLE_HOME" &
;;
'restart')
echo -n $"Shutting down Oracle: "
su $ORACLE -c "$ORACLE_HOME/bin/dbshut $ORACLE_HOME" &
sleep 5
echo -n $"Starting Oracle: "
su $ORACLE -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME" &
;;
*)
echo "usage: $0 {start|stop|restart}"
exit
;;
esac
exit
# ==> sai salvando :q.
[root@]# chmod 750 /etc/init.d/dbora
[root@]# chkconfig --add dbora
[root@]# chkconfig dbora on
[root@]# systemctl enable dbora ---------------> OU /sbin/chkconfig dbora on
E seja feliz...