使用errorstack跟踪ORA-01438错误(eygle, 2009年7月)

来源:百度文库 编辑:神马文学网 时间:2024/04/28 22:26:53

« 断电故障导致 ASM DiskGroup 故障及恢复案例 |Blog首页| 10g Profile FAILED_LOGIN_ATTEMPTS如何计数? »

使用errorstack跟踪ORA-01438错误

作者:eygle |English Version【转载时请以超链接形式标明文章出处和作者信息及本声明】
链接:http://www.eygle.com/archives/2009/07/errorstack_ora_01438.html 站内相关文章|Related Articles ORA-00600 4000 及 4194 错误小记
ORA-07445 cold_qerfxArrayMaxSize 的Bug
ORA-600 17285 错误 与 PL/SQL Developer
ORA-01157 - Mount状态下的文件存在性校验
使用DATAPUMP导致ORA-00600 17020错误
客户系统出现如下ORA-01438错误,提示数据的精度超过允许值,是后台Job调度的任务:
Mon Jul 13 10:27:31 2009
Errors in file /admin/erpdb/bdump/erpdb1_j000_447020.trc:
ORA-12012: error on auto execute of job 22
ORA-01438: value larger than specified precision allowed for this column
ORA-06512: at "ERP.TIMRDU", line 13
ORA-06512: at line 1
跟踪文件中缺省的不会记录具体的SQL、绑定变量等信息,我们可以通过ErrorStack进行后台跟踪,获得更详细的信息,执行如下SQL:
alter system set events='1438 trace name errorstack forever,level 10';
然后可以手工执行以下存储过程,获得跟踪文件,再关闭跟踪:
alter system set events='1438 trace name errorstack off';
在Oracle 10g中,这样的操作会被记录到日志文件中:
Mon Jul 13 10:48:39 2009
OS Pid: 541528 executed alter system set events '1438 trace name Errorstack forever,level 10'
Mon Jul 13 10:56:06 2009
Errors in file /admin/erpdb/udump/erpdb1_ora_267056.trc:
ORA-01438: value larger than specified precision allowed for this column
Mon Jul 13 10:56:08 2009
Trace dumping is performing id=[cdmp_20090713105608]
Mon Jul 13 10:57:15 2009
OS Pid: 541528 executed alter system set events '1438 trace name Errorstack off'
接下来分析获得的跟踪文件,就可以获得SQL文本线索,找到根本问题。

ITPUB上有一则极为经典详细的分析: http://www.itpub.net/thread-956435-1-1.html

-The End-