- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: crontab
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
Discussions
Discussions
Forums
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
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
тАО04-14-2000 10:38 PM
тАО04-14-2000 10:38 PM
crontab
We useing HP9000 V-class system HP-UX 11.x and hosting oracle8 release 11.
I am using a script with user x and schedule it using crontab to run over
night, but it failed the error message which i am getting is as follows : -
oracle8/oracle8/stoporacle8: MANPATH: Parameter not set.
logout
*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:
/oracle8/oracle8/stoporacle8
Please help if you face such problem.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2000 05:32 AM
тАО04-16-2000 05:32 AM
Re: crontab
It looks like the script is looking for the MANPATH variable, and this is not
set.
I would suggest you add this in to the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2000 05:14 AM
тАО05-20-2000 05:14 AM
Re: crontab
You have to include the PATH in your oracle and root .profiles and export the PATH.
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2000 11:21 AM
тАО05-22-2000 11:21 AM
Re: crontab
First of all, the Cron tab error indicates that your Environment is not being setup properly for the Cron Job.
You can fix this one of two ways:
1. inside the script, source your evironment manually (i.e.
. .profile)
2. Execute the application from Root's Cron with the Following command:
/bin/su - {user x} -c "Script Name and all arguments"
The later will always work, however it does not allow the User to understand that the problem is that they need to establish the environment variable which they have when they are an interactive user.
Hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2000 11:38 AM
тАО05-26-2000 11:38 AM
Re: crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2000 06:58 PM
тАО09-21-2000 06:58 PM
Re: crontab
# crontab -l > crontest
# vi crontest
0 23 * * * /usr/bin/su - root -c "/oracle8/oracle8/stoporacle8"
# crontab crontest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2000 01:49 AM
тАО09-22-2000 01:49 AM
Re: crontab
#vi /oracle8/oracle8/stoporacle8.sh
;ORACLE ORACLE STOP
su - oracle8 <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2001 07:28 AM
тАО06-28-2001 07:28 AM
Re: crontab
"MANPATH not set". This happens even when I source
my .profile. The problem is fixed when I added MANPATH
to my .profile. Any clues as to why the cron is sensitive
to MANPATH?
OS: hpux 11 64 bit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2001 08:56 AM
тАО06-28-2001 08:56 AM
Re: crontab
Usually you have a file called oraenv. In this file all variables for Oracle should be set. This script will also be run in the .profile of the user oracle. If you want to shutdown and startup Oracle with cron, try this way :
setup user oracle ( group dba )
Use this user for shutdown and startup.
There are standard scripts from Oracle for startup and shutdown ( dbstart / dbshut ). You should read all lines in /etc/oratab and do a shutdown and startup with the Oracle SIDs as parameters.
Sample line in cron :
su - oracle -c 'dbshut_all'
su - oracle -c 'dbstart_all'
If you need samples of these scripts, pls let me know and email me at Alexander_Ermes@web.de.
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2001 09:20 AM
тАО06-28-2001 09:20 AM
Re: crontab
Some cron jobs will use the su - oracle method to run on Oracle's behalf and this will login but since cron has no terminal, tty-only commands like ttytype and tset and tabs will fail with "not a typewriter" errors.
So /etc/profile and .profile need to have tests for an interactive tty before running these commands, something like:
if tty -s
then
eval (ttytype -s)
tabs
fi
Another thing to compare: Login as the oacle user and type the commands: set and env. Then create a cronjob similar to the Oracle start/stop scripts which add set and env at the beginning so you can see the differences.
Bill Hassell, sysadmin