automatic start/stop listener in oracle 10g
/usr/bin/su - oracle -c "/etc/init.d/listenstop"
The following is the listenstop file:
#!/usr/bin/ksh
ORACLE_HOME="/apps/oracle/product/10.2.0.0"; export ORACLE_HOME
$ORACLE_HOME/bin/lsnrctl <<STOPTNS
stop listener_test
exit
STOPTNS
What might be the possible problem here? We are using Sun Solaris server. Thanks.