Wow! that was fast...
Thanks to:
Bob Sloane
David J. DeWolfe [sxdjd_at_java.sois.alaska.edu]
Gavin Kreuiter [gavin_at_transactive.usko.com]
Gavin hit it right on the head:
ulimit is usually a shell built-in function. check which shell you're using
on the command line; cron normally uses the default Bourne shell.
I just added a #!/usr/bin/ksh and everything is working great.
--Brian
-----Original Message-----
From: Brian Hostetter
Sent: Monday, February 19, 2001 1:34 PM
To: tru64-unix-managers_at_ornl.gov
Subject: Ulimit Question
I have a script that I am trynig to add a ulimit to. It is used to make an
export of an oracle database nightly for backups. I have found the problem
to be in ulimit. When I try to run the script from the command line it
works fine, but from cron it dies.
Export: Release 8.1.7.0.0 - Production on Mon Feb 19 12:55:00 2001
(c) Copyright 2000 Oracle Corporation. All rights reserved.
EXP-00056: ORACLE error 1034 encountered
ORA-01034: ORACLE not available
ORA-27102: out of memory
Compaq Tru64 UNIX Error: 12: Not enough space
Additional information: 1
Additional information: 259
EXP-00005: all allowable logon attempts failed
EXP-00000: Export terminated unsuccessfully
If I put the following inside the script
ulimit -v 7340032
I get the following running from cron.
Usage: ulimit [-H | -S] [-a | -c | -d | -f | -h | -m | -n | -s | -t] [limit]
It is like the -v flag is not there... but that is a valid flag. It can
handle all my other ulimits, and I can run that ulimit command from the
command line.
Ideas?
--Brian
Received on Mon Feb 19 2001 - 19:50:05 NZDT