ORA-00600: internal error code, arguments: [4193]的解决方式

 

Ora-00600 4193一般来说是undo表空间的问题。


我们来看看一个实例 
在trc文件里出现 

Fri Dec 16 22:37:27 2005 Errors in file /opt/oracle/admin/orcl/bdump/orcl_smon_22817.trc:ORA-00604: error occurred at recursive SQL level 1ORA-00607: Internal error occurred while making a change to a data blockORA-00600: internal error code, arguments: [4193], [1171], [1187], [], [], [], [], []Fri Dec 16 23:28:40 2005Errors in file /opt/oracle/admin/orcl/bdump/conner_smon_22817.trc:ORA-00600: internal error code, arguments: [4193], [1171], [1187], [], [], [], [], [] 

4193错误通常是因为恢复时redo与undo不一致所导致。 

Oracle的解释如下: 

引用:
While backing out an undo record (i.e. at the time of rollback) we found a transaction id mis-match indicating either a corruption in the rollback segment or corruption in an object which the rollback segment is trying to apply undo records on. 


This would indicate a corrupted rollback segment. 

检查具体的Trace文件,可以发现类似如下错误: 

*** 2005-12-16 20:54:53.496 
ksedmp: internal or fatal error 
ORA-00600: internal error code, arguments: [4193], [1171], [1187], [], [], [], [], [] 
Current SQL statement for this session: 
UPDATE SMON_SCN_TIME SET SCN_WRP=:1, SCN_BAS=:2, TIME_MP=:3, TIME_DP=:4 
WHERE TIME_MP = :5 AND THREAD = :6 AND ROWNUM <= 1 

由于是UNDO存在不一致,可以通过重建UNDO表空间来解决: 

SQL> create undo tablespace undotbs2 
2 datafile '/opt/oracle/oradata/orcl/undotbs2.dbf' size 10m; 

Tablespace created. 

SQL> alter system set undo_tablespace=undotbs2 scope=both; 
System altered. 

SQL> shutdown immediate; 
Database closed. 
Database dismounted. 
ORACLE instance shut down. 

SQL> startup 
ORACLE instance started. 
Total System Global Area 114365800 bytes 
Fixed Size 451944 bytes 
Variable Size 50331648 bytes 
Database Buffers 62914560 bytes 
Redo Buffers 667648 bytes 
Database mounted. 
Database opened. 

SQL> show parameter undo 
NAME TYPE value 
------------------------------------ 
undo_management string AUTO 
undo_retention integer 10800 
undo_suppress_errors boolean FALSE 
undo_tablespace 

SQL> drop tablespace undotbs1 including contents and datafiles; 

Tablespace dropped. 


至此,Ora-600 4193错误不再出现。 

从alert文件中,可以看到自动控制文件备份生效: 

Sun Dec 18 22:37:59 2005 
drop tablespace undotbs1 including contents and datafiles 
Sun Dec 18 22:37:59 2005 
Deleted file /opt/oracle/oradata/orcl/undotbs01.dbf 
Starting control autobackup 
Control autobackup written to DISK device handle '/opt/oracle/product/9.2.0/dbs/c-3152029224-20051218-01' 

Completed: drop tablespace undotbs1 including contents and datafiles.



 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

inthirties

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值