Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Unix question
Afternoon Roland,
Just a couple of hints here.
Firstly:
Any command that returns an error can be checked for
and you can also exit with a code of your choice.
so
#!/bin/sh
export MAILDBA="Roland.Skoldblom_at_ica.se"
sqlplus -s konto/icakort << !
set heading off verify off feedback off termout off pages 0
begin
konto.fillbilbotables.anrop;
END;
/
if [ $? -ne 0 ]
then
mail -s "Konto inte so brar..." \
$MAILDBA <<EOF
Tita konto ..
EOF
Secondly:
Do not have any passwords or SID's in the script.
They should be assigned either as passwords or in your running env.
Thirdly:
Password assignment was treated in an article by Aunt Augusta www.oriole.com
Regards
Peter
-----Message d'origine-----
De : Roland.Skoldblom_at_ica.se [mailto:Roland.Skoldblom_at_ica.se]
Envoyé : lundi 28 janvier 2002 06:15
À : Multiple recipients of list ORACLE-L
Objet : Unix question
Hallo,
I have this unix script. I would like to get a errorlog(a file) if the
pl/sql
procedure konto.fillbotables.anrop doesnt start at all. Please tell me how
to write the code and where to include it in this shell script.
Give me example on how to write the code too.
#!/bin/sh . /usr/bin/orasetup.sh . /d31/appl/konto/bat/movefiles.sh
Roland
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Roland.Skoldblom_at_ica.se Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: peter.lomax_at_ftms.fr Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Jan 28 2002 - 10:50:11 CST