failure startup oracle at bootup

asked 2013-03-22 08:46:38 -0500

Ryan Cubicle gravatar image

updated 2013-03-22 08:54:32 -0500

hello,

Could you give me some advices on the systemd service and the script it starts which in turn run oracle. I hv no idea why the systemd service will ruin the oracle listener. whenever I start the listener this way, it shows "support no service." if i run the 'lsnrctl start' and 'dbstart' manually, it has no problem. i can query the db from local or remote. the following are the scripts. Thanks

oracle.sh


#! /bin/bash
#  script used by oracle.service

export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export ORACLE_BASE=/home/oracle/app/oracle/product/11.2.0


$ORACLE_HOME/bin/dbstart $ORACLE_HOME;
$ORACLE_HOME/bin/lsnrctl start LISTENER;
 

oracle.service


[Unit]
Description=Oracle database server
After=syslog.target
After=network.target

[Service]
Type=simple
User=oracle
Group=oinstall
ExecStart=/bin/oracle.sh

[Install]
WantedBy=multi-user.target
edit retag flag offensive close merge delete