The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
new crontab for new user bisla.yogender UNIX for Dummies Questions & Answers 3 05-15-2008 04:59 AM
switching user from root to ordinary user sasia Shell Programming and Scripting 3 01-25-2008 07:25 PM
Using Crontab To Change User Password OdinPT UNIX for Dummies Questions & Answers 2 08-28-2007 07:09 AM
Other than root user .Normal user is unable to create files mallesh UNIX for Advanced & Expert Users 1 06-22-2005 09:18 AM
viewing crontab as different user matrixmadhan UNIX for Dummies Questions & Answers 7 06-20-2005 07:12 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-19-2007
Registered User
 

Join Date: Jun 2007
Posts: 30
Crontab cannot run by non-root user

Good morning everybody. I have just receiedv a complaint from our DBA saying that if he create a scripts to run some Oracle performance scripts using crontab and the scheduling part is ok but the job is failed when I checked on /var/adm/cron/log.
I have tried his scripts using Oracle id directly run on shell and everything is ok. But when I set the cron job and the job will fail.
Question :
1) How to check what is the error message for the cron job failed? When I check the log, the only thing it showed is "failed" with no reason.
2) I have also done the checking on whether Oracle is able to run the cron job by checking on cron.allow and cron.deny. Both are ok. I also check on /etc/security/user file whether the deamon of oracle is on "true" and yes, it is. And Oracle is also having sub-group of cron group.
So, is there anything else I can check to find out why the cron job failed?

Tq in advance.
Reply With Quote
Forum Sponsor
  #2  
Old 08-19-2007
joerg's Avatar
Registered User
 

Join Date: Jan 2002
Location: Germany
Posts: 167
mailx (Solaris)

Hi,
my OS is Solaris but you can try to check the mail account of the user you setup the cronjob.
In solaris the default logging is the mail account (mailx).
Best regards
joerg
Reply With Quote
  #3  
Old 08-20-2007
Registered User
 

Join Date: Jun 2007
Posts: 30
Thank you very much for the help. I have finally found the error.
Yes, the error log will post in the mail.
The reason of why it doesn't run is due to eventhough we are using Oracle id to create the cron job, it doesn't mean the job will be run by Oracle priviledge. Thus, to run a Oracle job, we need some setting on the scripts which we did n't do it as normally we run the script using Oracle ID directly and all setting already provided when we sign in as Oracle.
Tq.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0