ORA-27369:EXECUTABLE类型的作业失败,退出代码:274668

时间:2017-03-13 03:39:42

标签: oracle shell

所有

我正在尝试从PL / SQL调用shell脚本。我创建了一个程序和一个工作并启用了它们。

 exec DBMS_SCHEDULER.CREATE_JOB(job_name=>'oam.loadLog_job',job_type=>'EXECUTABLE',job_action=>'/gx_working/select2.sh');

当我尝试运行上面的代码时出现以下错误;

ORA-27369: job of type EXECUTABLE failed with exit code: 274668 

我搜索了互联网,exit_code 274668是“externaljob.ora文件中指定的无效run_group”

那么,我需要做些什么来解决这个问题?

感谢。

我的externaljob.ora文件是这样的:

# $Header: externaljob.ora 16-dec-2005.20:47:13 rramkiss Exp $
#
# Copyright (c) 2005, Oracle. All rights reserved.
# NAME
#   externaljob.ora
# FUNCTION
#   This configuration file is used by dbms_scheduler when executing external
#   (operating system) jobs. It contains the user and group to run external
#   jobs as. It must only be writable by the owner and must be owned by root.
#   If extjob is not setuid then the only allowable run_user
#   is the user Oracle runs as and the only allowable run_group is the group
#   Oracle runs as.
#
# NOTES
#   For Porters: The user and group specified here should be a lowly privileged
#                user and group for your platform. For Linux this is nobody
#                and nobody.
# MODIFIED
#     rramkiss   12/09/05 -  Creation
#
##############################################################################
# External job execution configuration file externaljob.ora
#
# This file is provided by Oracle Corporation to help you customize
# your RDBMS installation for your site.  Important system parameters
# are discussed, and default settings given.
#
# This configuration file is used by dbms_scheduler when executing external
# (operating system) jobs. It contains the user and group to run external
# jobs as. It must only be writable by the owner and must be owned by root.
# If extjob is not setuid then the only allowable run_user
# is the user Oracle runs as and the only allowable run_group is the group
# Oracle runs as.

run_user = nobody
run_group = nobody

0 个答案:

没有答案