- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oracle crontab problem
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
тАО07-25-2002 07:22 AM
тАО07-25-2002 07:22 AM
I've got some problem with the scheduling of some simple oracle script on my system:
this script launched from the command line works correctly:
#! /bin/sh
/opt/app/oracle/product/8.0.5/bin/sqlplus<< EOF
username/password
begin
......
end;
/
exit;
EOF
the problem is that this script seems not to be working put into the CRONTAB, the error returned is
Message file sp1
Error 6 initializing SQL*Plus
Do you have any idea about what could the problem is?
Thanks already!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2002 07:40 AM
тАО07-25-2002 07:40 AM
Re: Oracle crontab problem
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2002 07:40 AM
тАО07-25-2002 07:40 AM
SolutionDo you have the output of the cron piped to a file? i.e.
$ cat /var/spool/cron/crontabs/oracle
0 01 * * * /tmp/oracle_script.sh > /tmp/mylog.txt 2>&1
You might get more interesting info there...
Cheers,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2002 07:41 AM
тАО07-25-2002 07:41 AM
Re: Oracle crontab problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2002 11:39 PM
тАО07-25-2002 11:39 PM
Re: Oracle crontab problem
For security so you don't have to include user/pass in the script you might want to use an OPS$ account?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 03:18 AM
тАО07-26-2002 03:18 AM
Re: Oracle crontab problem
It has all the variables we use and it works obviously well.
Good luck!
Jerry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 04:05 AM
тАО07-26-2002 04:05 AM
Re: Oracle crontab problem
I found a simple "centralized" way to do it.
Hope this helps!
Best Regards
Yogeeraj
------------------------------------------------------------
In the crontab for the root user:
#*******************************************************************************
# min|hour |day |month|day |script
# | |of mo| |of wk|
#----|-----|-----|-----|-----|--------------------------------------------------
05,10,15,20,25,30,35,40,45,50,55 08,09,10,11,12 * * * echo "/prod/global/admin/dba/myscript.sh"|su - oracle8i 1>/prod/global/admin/dba/logfiles/output-myscript.crn 2>/prod/global/admin/dba/logfiles/error-myscript.crn
#*******************************************************************************
# END OF TABLE day0->Sunday day6->Saturday
#*******************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 05:22 AM
тАО07-26-2002 05:22 AM
Re: Oracle crontab problem
For example: passing your ORACLE SID as a parameter:
#! /usr/bin/ksh
export PATH=$PATH:/usr/bin/X11:/usr/local/bin
umask=022
export ORACLE_SID=${1}
export ORAENV_ASK=NO
. oraenv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 11:10 AM
тАО07-26-2002 11:10 AM