当前位置:网站首页>Solution to the problem that Linux crontab timed operation Oracle does not execute (crontab environment variable problem)
Solution to the problem that Linux crontab timed operation Oracle does not execute (crontab environment variable problem)
2022-06-25 03:47:00 【Diving rice awn】
Problem description : Start the timing task oracle Table operation , But there's no problem executing the script manually , There is no result in the execution of scheduled tasks, and no feedback message is given
Solution : With centos7 For example , First, make sure that the script can be executed manually , Then check that the /var/log/cron The next log , Check whether the scheduled task is started ; If not, check the scheduled task , Check if started /var/mail/oracle See if there is a mistake ;
General error reporting : It's about environmental variables ;/etc/crontab see crontab environment variable ;env View system environment variables
Solution : Add... On the front page of the script source /home/oracle/.bashrc( Note that the path here is my path and needs to be changed by myself )
20200330 Daily update
General execution source /home/oracle/.bashrc( Or maybe /etc/profile; It mainly depends on what you set up at that time oracle Where are the environment variables set ; You can refer to linux Execution sequence of boot environment variables ) It's on the bash Executed in the script ; And then to /var/mail/ user name ; Check whether an error is reported , Scheduled tasks may require bash( instead of sh To execute the script )
20210501 Daily update
In execution python3 For timed tasks bash To nest sometimes not , So it can be used in scheduled tasks
source /etc/profile && command Realization , feasible
边栏推荐
- How far is the memory computing integrated chip from popularization? Listen to what practitioners say | collision school x post friction intelligence
- Tencent Open Source Project "Yinglong" est devenu un projet Apache de haut niveau: l'ancien Service à long terme Wechat payment, peut maintenir un million de milliards de niveaux de traitement de flux
- Google founder brin's second marriage broke up: it was revealed that he had filed for divorce from his Chinese wife in January, and his current fortune is $631.4 billion
- Datetimeformat is invalid under @requestbody
- Svn deployment
- Is it reliable for CITIC Securities to open a mobile account? Is it safe?
- Gold medal scheme of kaggle patent matching competition post competition summary
- 谷歌创始人布林二婚破裂:被曝1月已提出与华裔妻子离婚,目前身家6314亿美元...
- 马斯克:推特要学习微信,让10亿人「活在上面」成为超级APP
- 程序猿职业发展9项必备软技能
猜你喜欢

程序员真人秀又来了!呼兰当主持挑灯狂补知识,SSS大佬本科竟是药学,清华朱军张敏等加入导师团...

1-6 build win7 virtual machine environment

签到功能完成03《ivx低代码签到系统制作》

Peking University has a new president! Gongqihuang, academician of the Chinese Academy of Sciences, took over and was admitted to the Physics Department of Peking University at the age of 15

ICML 2022 | ByteDance AI Lab proposes a multimodal model: x-vlm, learning multi granularity alignment of vision and language

XML modeling

MySql安裝教程

Insurance app aging service evaluation analysis 2022 issue 06

西电AI专业排名超清北,南大蝉联全国第一 | 2022软科中国大学专业排名

Introduction to database system
随机推荐
Standing at the center of the storm: how to change the engine of Tencent
There is the word "Internet" in the concept of industrial Internet, but it is an existence that is not related to the Internet
Huawei failed to appeal and was prohibited from selling 5g equipment in Sweden; Apple regained the first place in the world in terms of market value; DeNO completes round a financing of USD 21million
教你如何在winpe里安装win11系统
Tutorial on installing SSL certificates in Microsoft Exchange Server 2007
Xidian AI ranked higher than Qingbei in terms of AI majors, and Nantah ranked the first in China in 2022 in terms of soft science majors
在华泰证券上面开股票账户好不好,安不安全?
股票开户用客户经理发的开户链接安全吗?知道的给说一下吧
腾讯开源项目「应龙」成Apache顶级项目:前身长期服务微信支付,能hold住百万亿级数据流处理...
Skywalking implements cross thread trace delivery
2点睡10点起不算熬夜?除非你每天都能执行
签到功能完成03《ivx低代码签到系统制作》
Is it reliable for CITIC Securities to open a mobile account? Is it safe?
騰訊開源項目「應龍」成Apache頂級項目:前身長期服務微信支付,能hold住百萬億級數據流處理...
站在风暴中心:如何给飞奔中的腾讯更换引擎
Two common OEE monitoring methods for equipment utilization
Zuckerberg's latest VR prototype is coming. It is necessary to confuse virtual reality with reality
redis
Is it safe to open an account online? Online and other answers
js工具函数,自己封装一个节流函数