Re: Unix backup script problem

From: Michael Nolan <nolan_at_helios.unl.edu>
Date: 16 May 1994 21:28:16 GMT
Message-ID: <2r8ohg$sn9_at_crcnis1.unl.edu>


keith_at_loony-toons.tamu.edu (Keith A. Marrocco) writes:

>Oracle *is* up and running when the script gets these messages. Can anybody
>tell me why the script works when we enter the commands manually but croaks
>when we have cron submit it? I can post the script itself if it is necessary.

Sounds like the cron job doesn't have the Oracle environment variables all defined correctly. My cron job to do similar functions runs as root and uses:

      su - oracle7 -c /home/oracle7/bin/dbstart &

to start the database back up again. Of course oracle7 is the oracle dba account and properly initializes itself.

BTW, how do you (or others reading this post) handle checking for users that are still logged on? If you do a 'normal' shutdown and someone forgot to log off, the shutdown will hang waiting for the user to log off.

---
Michael Nolan, Sysop for the DBMS RoundTable on GEnie
nolan_at_notes.tssi.com, dbms_at_genie.geis.com
(posted from nolan_at_helios.unl.edu)
Received on Mon May 16 1994 - 23:28:16 CEST

Original text of this message