1、oracle用户下执行crontab -l 报错:
$ crontab -l
crontab:you are not authorized to use cron. Sorry.
2、解决方法:
--到root用户下,修改文件cron.allow,添加oracle
# cd /var/adm/cron
# vi cron.allow
root
adm
uucp
oracle
3、先执行crontab -e添加定时任务,才能crontab -l查看:
$ crontab -l
crontab: can't open your crontab file.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27126919/viewspace-1299421/
,如需转载,请注明出处,否则将追究法律责任。