最近,一客户申诉,其oracle数据库一业务每天定时执行的存储过程都会报错:ORA-12012&ORA-06550&PLS-00907,但是,报错后再次执行就正常;该存储过程原先设定的执行时间是早上5:30,首次执行报错5:32、5:34再次执行正常,后来把存储过程执行时间修改为5:40,首次执行还是报错,5:44执行存储过程不报错。下面是问题的分析过程,供
大家参考。
一、明确问题
客户反馈,近期每天5:40定时执行的存储过程p_rpt_kpi_prem_agency数据库告警日志总是有报错,报错信息如下:
Sun Mar 24 05:42:03 2019
Errors in file /uhome/app/oracle/diag/rdbms/q006r03s/Q006R03S/trace/Q006R03S_j000_30628.trc:
ORA-12012: ?? 341
ORA-06550:
PLS-00907: ? PRPT.P_RPT_KPI_PREM_AGENCY ()
......
Tue Mar 26 05:42:04 2019
Errors in file /uhome/app/oracle/diag/rdbms/q006r03s/Q006R03S/trace/Q006R03S_j000_129704.trc:
ORA-12012: ?? 341
ORA-06550:
PLS-00907: ? PRPT.P_RPT_KPI_PREM_AGENCY ()
......
Wed Mar 27 05:42:01 2019
Errors in file /uhome/app/oracle/diag/rdbms/q006r03s/Q006R03S/trace/Q006R03S_j000_125276.trc:
ORA-12012: ?? 341
ORA-06550:
PLS-00907: ? PRPT.P_RPT_KPI_PREM_AGENCY ()
跟踪文件Q006R03S_j000_125276.trc的内容如下:
[oracle@G0ora06 trace]$ more /uhome/app/oracle/diag/rdbms/q006r03s/Q006R03S/trace/Q006R03S_j0