重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 20|回复: 0
打印 上一主题 下一主题

[Oracle] oracle error ORA-48913

[复制链接]
跳转到指定楼层
楼主
发表于 3 天前 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Sat May 09 15:57:04 2024
Non critical error ORA-48913 caught while writing to trace file "/u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_dbrm_7134.trc"
Error message: ORA-48913: Writing into trace file failed, file size limit [20971520] reached
Writing to the above trace file is disabled for now on...


初步看应该是超过了max dump file参数的限制,trace file达到了21M,而客户环境MAX_DUMP_FILE_SIZE参数值为 40960


[oracle@sztech ~]$ du -sh trace/
1.3G trace/



[oracle@sztech ~]$ du -sh trace/*dbrm*
21M trace/orcl_dbrm_7134.trc
1.3M trace/orcl_dbrm_7134.trm


--修改数据库参数


SQL> show parameter MAX_DUMP_FILE_SIZE


NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
max_dump_file_size string 40960


alter system set MAX_DUMP_FILE_SIZE=unlimited scope=both;
SQL> show parameter MAX_DUMP_FILE_SIZE


NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
max_dump_file_size string UNLIMITED

mos上解释如下:
APPLIES TO:
Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.
***Checked for relevance on 18-Aug-2014***
SYMPTOMS
On 11.2.0.1, encountered the following error in the alert.log:


Non critical error ORA-48913 caught while writing to trace file "/oraotcprd1/app/oracle/diag/rdbms/otcprd1/OTCPRD11/trace/OTCPRD11_ora_14925.trc"
Error message: ORA-48913: Writing into trace file failed, file size limit [10485760] reached


CAUSE
Parameter MAX_DUMP_FILE_SIZE is set too low


SOLUTION
Increase the setting for the parameter MAX_DUMP_FILE_SIZE or set it to unlimited


For additional information on this parameter, refer to


Oracle Database Reference 11g Release 2 (11.2)
MAX_DUMP_FILE_SIZE


原因是由于MAX_DUMP_FILE_SIZE太小,解决方法是增加MAX_DUMP_FILE_SIZE大小,或者设置成无限制。


--防止 磁盘占满(主机的inode),把可以删除的文件进行删除


--删除7天前的trc


find . -name "*.trc" -mtime +7  -exec rm {} \;


find . -name "*.trm" -mtime +7  -exec rm {} \;


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-9-23 04:28 , Processed in 0.081794 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表