The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > 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 08:59 AM
switching user from root to ordinary user sasia Shell Programming and Scripting 3 01-25-2008 10:25 PM
Using Crontab To Change User Password OdinPT UNIX for Dummies Questions & Answers 2 08-28-2007 11:09 AM
Other than root user .Normal user is unable to create files mallesh UNIX for Advanced & Expert Users 1 06-22-2005 01:18 PM
viewing crontab as different user matrixmadhan UNIX for Dummies Questions & Answers 7 06-20-2005 11:12 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-20-2007
kwliew999 kwliew999 is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 39
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.
  #2 (permalink)  
Old 08-20-2007
joerg's Avatar
joerg joerg is offline
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
  #3 (permalink)  
Old 08-20-2007
kwliew999 kwliew999 is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 39
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.
  #4 (permalink)  
Old 05-02-2009
sur1805 sur1805 is offline
Registered User
  
 

Join Date: May 2009
Posts: 1
Hi kwliew999,

I m also having the same problem.I m running the backupscript through cron with oracle user. but it is giving "sqlplus command not found" . can u tell me what parameter u set in script?
Early reply is awaited.

Thanks in advance.
Surendra
  #5 (permalink)  
Old 05-02-2009
garethr garethr is offline
Registered User
  
 

Join Date: May 2009
Location: England
Posts: 92
@sur1805
It sounds like your PATH environment variable is not set correctly. You may want to specify the full path to the sqlplus command in the crontab, or make it in to a script which sets this before running sqlplus.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0