您好,登錄后才能下訂單哦!
本篇內(nèi)容介紹了“SCHEDULER的ORA-27369錯(cuò)誤怎么解決”的有關(guān)知識(shí),在實(shí)際案例的操作過程中,不少人都會(huì)遇到這樣的困境,接下來就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細(xì)閱讀,能夠?qū)W有所成!
新加的一個(gè)SCHEDULER作業(yè),用普通用戶執(zhí)行報(bào)權(quán)限不足
作業(yè)上線后alter日志里面報(bào):
ORA-12012: error on auto execute of job 318537
ORA-27369: job of type EXECUTABLE failed with exit code: Permission denied
Tue Oct 15 10:31:00 2013
trace文件里記錄:
*** 2013-10-15 10:30:10.920
*** SESSION ID:(717.33910) 2013-10-15 10:30:10.920
*** CLIENT ID:() 2013-10-15 10:30:10.920
*** SERVICE NAME:(SYS$USERS) 2013-10-15 10:30:10.920
*** MODULE NAME:(DBMS_SCHEDULER) 2013-10-15 10:30:10.920
*** ACTION NAME:(PRODUCT_UP131015103008879041) 2013-10-15 10:30:10.920
MODULE NAME:(DBMS_SCHEDULER)
ACTION NAME:(PRODUCT_UP131015103008879041)
從這兩行可以看出來是SCHEDULER調(diào)度作業(yè)出現(xiàn)了問題,ACTION NAME其實(shí)就是SCHEDULER作業(yè)的job_name
檢查這個(gè)作業(yè)
大概意思如下:
begin
dbms_scheduler.create_job(
job_name => 'goolen_job',
job_type => 'EXECUTABLE',
job_action => '/home/oracle/task/goolen.sh',
start_date => systimestamp,
number_of_arguments => 0,
enabled => true,
auto_drop => true,
comments => 'ShangJia');
end;
/
[oracle@goolen]$ cat goolen.sh
#!/bin/sh
source ~/.bash_profile
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
DATE=`date +%Y%m%d_%H%M%S`
LOGFILE=/tol/logs/product/goolen.log
$ORACLE_HOME/bin/sqlplus -S "newcourse/XXXXXX" << EOF
spool $LOGFILE
select sysdate from dual;
spool off
exit
EOF
剛開始懷疑是這個(gè)用戶沒有相應(yīng)的執(zhí)行權(quán)限,但是查看權(quán)限后并不是這個(gè)原因
后來查閱了一些資料,解決了這個(gè)問題
# cd $ORACLE_HOME/rdbms/admin/
# chown root:oinstall externaljob.ora
# chmod 640 externaljob.ora
# ll externaljob.ora
-rw-r----- 1 root oinstall 1534 Oct 15 17:51 externaljob.ora
# vim externaljob.ora
run_user = oracle
run_group = oinstall
# ll ../../bin/extjob
-rwxr-x--- 1 oracle oinstall 1223972 Nov 26 2012 ../../bin/extjob
# chmod 4750 ../../bin/extjob
# ll ../../bin/extjob
-rwsr-x--- 1 oracle oinstall 1223972 Nov 26 2012 ../../bin/extjob
“SCHEDULER的ORA-27369錯(cuò)誤怎么解決”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識(shí)可以關(guān)注億速云網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實(shí)用文章!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。