Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 01:34 PM
11-30-2003 01:34 PM
I have a rp8400/HP-UX 11i. All the cronjobs running under oracle user is failing with the error in /var/adm/cron/log as rc=1.
I have restarted the server and prior to restart the cronjob were running w/o any error.
I have even created a test cronjob but it fails too.
$ crontab -l
05,10,15,20,25,30 * * * * date > date.log
/var/adm/cron/log
CMD: date > date.log
> oracle 26954 c Mon Dec 1 10:25:00 SST 2003
< oracle 26954 c Mon Dec 1 10:25:00 SST 2003 rc=1
The same test cronjob is working for another users like root.
What has gone wrong?
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 01:37 PM
11-30-2003 01:37 PM
Re: rc=1
Does the user in question have execute permissions on the file /usr/bin/date
I think you would get a return code(rc) of 1 if you tried to execute it and had no permissions.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 01:39 PM
11-30-2003 01:39 PM
Re: rc=1
05,10,15,20,25,30 * * * * /usr/bin/date > date.log
Has the 'oracle' user have an entry in the cron.allow file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 01:41 PM
11-30-2003 01:41 PM
Re: rc=1
/usr/bin> ll date
-r-xr-xr-x 1 bin bin 16384 Nov 14 2000 date
Also I am able to execute the date command crom command line.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 01:46 PM
11-30-2003 01:46 PM
Re: rc=1
05,10,15,20,25,30 * * * * /usr/bin/date > date.log
But it still fails with the same error.
'oracle' user have an entry in the cron.allow file.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 02:11 PM
11-30-2003 02:11 PM
Re: rc=1
Try to explicitly set the full path for date.log & write it to /tmp.
05,10,15,20,25,30 * * * * /usr/bin/date > /tmp/date.log
cron will try to write the date.log file to the users home directory. Are the permissions correct on this directory (ie the Oracle Home).
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 02:19 PM
11-30-2003 02:19 PM
Re: rc=1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 03:02 PM
11-30-2003 03:02 PM
Re: rc=1
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 03:27 PM
11-30-2003 03:27 PM
Re: rc=1
Unless I'm reading it wrong the crontab man page states that cron supplies a default environment (albeit a very limited one) for every shell which *includes* the users HOME directory.
It also states that the command is invoked from the users home directory, which would imply that the if no path is given then date.log will be written to the users home directory (ie the directory where it was invoked) rather than the / fileystem.
My guess is that the permissions have gotten messed up on the Oracle Home. Possibly all your oracle cron jobs output to Oracle Home??
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 03:42 PM
11-30-2003 03:42 PM
Re: rc=1
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 04:19 PM
11-30-2003 04:19 PM
Re: rc=1
I have changed the cron to
05,10,15,20,25,30 * * * * /usr/bin/date > /tmp/date.log
But still the same problem.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 04:53 PM
11-30-2003 04:53 PM
Re: rc=1
Seems very strange.
Check if other users apart from root can successfully execute cron jobs?
Maybe post output of the following commands:
# pwget -n oracle
$ ll -d $HOME (logged in as oracle user)
# ll /tmp/date.log
# ll /var/spool/cron/crontabs/oracle
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2003 05:03 PM