-
Recent Posts
Recent Comments
- yangtingkun on 非空字段空值对查询的影响
- Eric Zong on 非空字段空值对查询的影响
- Kamus on Oracle Ace Director
- 设置全局死锁优先级 | yangtingkun on RAC全局死锁检测时间
- ORA-600(krbounotread_noctx)错误 | yangtingkun on ORA-600(krboReadBitmap_badbitmap)错误
Archives
- December 2020
- February 2019
- December 2018
- November 2018
- October 2018
- July 2018
- June 2018
- May 2018
- July 2016
- July 2013
- June 2013
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
Categories
Meta
Tag Archives: dbms_scheduler
11gr2出现ORA-29280错误
客户的11.2.0.3 RAC环境自动运行的JOB报错ORA-29280。 详细错误信息为: Sat Sep 15 05:59:59 2012 VKRM started WITH pid=54, OS id=32622 Sat Sep 15 06:00:09 2012 Errors IN file /opt/app/oracle/diag/rdbms/orcl/orcl1/trace/orcl1_j001_32634.trc: ORA-12012: error ON auto EXECUTE OF job "ORACLE_OCM"."MGMT_CONFIG_JOB_2_1" ORA-29280: invalid directory path ORA-06512: at "ORACLE_OCM.MGMT_DB_LL_METRICS", line 2436 … Continue reading
利用SCHEDULER调用shell脚本
10g的SCHEDULER的一个重要的功能是可以调用操作系统命令或SHELL脚本。而在10g以前,这个功能只能通过外部存储过程来实现。 下面是一个简单的例子,首先编辑一个test.sh脚本: #!/usr/bin/ksh echo abc >> /home/xxx/a.txt#!/usr/bin/ksh echo abc >> /home/xxx/a.txt 注意,#!/usr/bin/ksh是必须的,否则JOB运行会出现ORA-27369错误。 给这个shell设置执行权限: $ chmod 744 test.sh$ chmod 744 test.sh 下面就可以在数据库中建立PROGRAM: SQL> BEGIN 2 DBMS_SCHEDULER.CREATE_JOB( 3 JOB_NAME => ‘J_TEST’, 4 JOB_TYPE => ‘EXECUTABLE’, 5 JOB_ACTION => ‘/home/xxx/test.sh’, 6 ENABLED => … Continue reading