我有一个计划如下的cron作业。它将执行的操作是在Oracle中调用RMAN,然后清除oracle数据库中1天的所有记录日志。但问题在于它没有通过cron工作得到执行。但是如果我从提示中执行相同的脚本,则很好地通过RMAN删除日志。请帮我在SHEDULING这个脚本...脚本Linux Cronjob调度问题
05 07 * * * /x01/rman_backup/mahesh/logde.sh
内容如下
#!/bin/bash
/x01/oracle/app/oracle/product/11.2.0/db_1/bin/rman cmdfile=/x01/rman_backup/mahesh /logdelete.rcv
的logdelete.rcv的内容如下
connect target/
run
{
delete archivelog all completed before 'trunc(sysdate)';
crosscheck archivelog all;
}
exit;
请人帮忙我在安排这个。我在SUSE Linux版本11中使用这种方法
使用输出重定向到文件来查看发生了什么,例如... logde.sh> /tmp/log.txt 2>&1 – 2013-03-21 06:22:32
是这样的吗? 06 12 * * * /x01/rman_backup/mahesh/logde.sh> /x01/rman_backup/mahesh/output.txt – user1793864 2013-03-21 06:30:09
06 12 * * * /x01/rman_backup/mahesh/logde.sh>/x01/rman_backup/mahesh/output.txt的2>&1个 – 2013-03-21 06:36:46