Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Seeking help with crontab task

RaakhNov 8 2010 — edited Nov 9 2010
Hello,

I tried to make auto backup by writing shell script and inserting into crontab
-bash-3.2$ ls
app  darchive.sh  log_file  oradata  test.log


-bash-3.2$ cat darchive.sh
rman nocatalog << EOF
connect target /
backup database plus archivelog delete input;
delete noprompt obsolete;
EOF


-bash-3.2$ cat log_file
-bash-3.2$ 


-bash-3.2$ crontab -e
00 23 * * 1,5 /usr/lib/oracle/xe/darchive.sh 1>/usr/lib/oracle/xe/log_file 2>&1
~
According to crontab task that should make auto back on Sunday and Thursday on 23:00 but not worked on stipulated date/time. sh darchive.sh is working fine

Is my crontab defined accurately

Best regards
This post has been answered by ora_tech on Nov 8 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2010
Added on Nov 8 2010
35 comments
421 views