昨天,在数据库监控的时候,有人报告一个insert into tables select * from tables 用了很长时间
退出应用程序,在登录出现ora-00257:归档程序错误,在释放前仅供内部连接
分析了哈原因不对地方望大家指正:
归档日志归档redolog ,写满了redolog 就归档。
insert into tables select * from tables 刚刚好要写redolog
数据量从报告者中得知每个分公司有几百万的数据。
从而分析出这个语句加速了redolog写满日志的速度。让其快速归档
进过查询db_recovery_file_dest_size=2G
解决办法:1.删除旧归档保留目前最新归档。2.加大db_recovery_file_dest_size
3.干脆关闭归档
shutdown immediate
强列不建议转为非归档模式
startup mount
alter database noarchivelog
alter database open
退出应用程序,在登录出现ora-00257:归档程序错误,在释放前仅供内部连接
分析了哈原因不对地方望大家指正:
归档日志归档redolog ,写满了redolog 就归档。
insert into tables select * from tables 刚刚好要写redolog
数据量从报告者中得知每个分公司有几百万的数据。
从而分析出这个语句加速了redolog写满日志的速度。让其快速归档
进过查询db_recovery_file_dest_size=2G
解决办法:1.删除旧归档保留目前最新归档。2.加大db_recovery_file_dest_size
3.干脆关闭归档
shutdown immediate
强列不建议转为非归档模式
startup mount
alter database noarchivelog
alter database open
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13159425/viewspace-617837/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/13159425/viewspace-617837/