设为首页 收藏本站
查看: 635|回复: 0

Scheduled Job Running Shell Script Fails With ORA-27369

[复制链接]

尚未签到

发表于 2018-8-21 08:55:46 | 显示全部楼层 |阅读模式
  Scheduled Job Running Shell Script FailsWith ORA-27369
  Applies to:
  Oracle Server - Enterprise Edition -Version: 10.1.0.2 to 10.2.0.4
  Oracle Server - Standard Edition -Version: 10.1.0.2 to 10.2.0.4
  including Version:11.2.0.4
  Sun Solaris SPARC (64-bit)
  Linux x86
  "ORA-27369: job of type EXECUTABLEfailed with exit code: Unknown error" was still occurring for non oracle users running DBMS_SCHEDULER executed shellscripts. Problem was fixed when filesystem where ORACLE_HOME was mountedon was found to have been mounted w/ nosetuid. Changing mount option to setuidresolved problem
  Symptoms

  @Checked for>  A Scheduler job has been configuredusing the DBMS_SCHEDULER package. The job executes a shell script using theoption job_type=>’EXECUTABLE’. The script performs a write operation to anoutput file, for example a redirect operation or touch. The write operationfails with:
  ORA-27369: job of type EXECUTABLE failedwith exit code: Operation not permitted
  Or
  ORA-27369: job of type EXECUTABLE failedwith exit code: 274662
  Or
  ORA-27369: job of type EXECUTABLE failedwith exit  code: Unknownerror
  Indba_scheduler_job_run_details.additional_info, the following details arerecorded:
  ORA-27369: job of type EXECUTABLE failedwith exit code: Operation not permitted
  STANDARD_ERROR="touch: cannot touch`’: Permission denied"
  Or
  ORA-27369: job of type EXECUTABLE failedwith exit code: 274662
  STANDARD_ERROR="Oracle Schedulererror: Config file is not owned by root or is
  writable by group or other or extjob isnot setuid and owned by root"
  Cause
  If$ORACLE_HOME/rdbms/admin/externaljob.ora exists then external jobs run as theuser and group specified in this file, which by defaultis a lowly privileged user (nobody).
  The user ‘nobody’ andthe group ‘nobody’ do not have the proper privileges for write operations.
  As a result, themessage ‘Permission denied’ is returned when attempting to write to files.
Solution
  Root access is required for the steps below.
  1. Ensure the configuration file$ORACLE_HOME/rdbms/admin/externaljob.ora is owned by root:
  # cd$ORACLE_HOME/rdbms/admin/
  # chown rootexternaljob.ora
  2. Ensure the file permissions arecorrectly set for $ORACLE_HOME/rdbms/admin/externaljob.ora.
  Remove write privileges from group andother.
  # chmod 640externaljob.ora
  # ls -la externaljob.ora
  -rw-r—– 1 root oinstall 1537 Sep 1309:24 externaljob.ora
  3. Edit$ORACLE_HOME/rdbms/admin/externaljob.ora and set run_user to the OS accountthat owns the Oracle installation and the database and run_group to the OSgroup that owns the Oracle_Home.
  Example:
  OS account: oracle
  OS group: oinstall
  run_user = oracle
  run_group = oinstall
  4. Ensure the setuid bit is set on the$ORACLE_HOME/bin/extjob executable.  Alsomake sure the filesystem is mounted with setuid option.
  # cd$ORACLE_HOME/bin
  # chown rootextjob
  # chmod 4750extjob
  # ls -la extjob
  -rwsr-x— 1 root oinstall 64988 Mar 2918:22 extjob


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-554503-1-1.html 上篇帖子: Linux shell中拷贝数组 下篇帖子: shell 脚本自动下载文件
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表