ITPub博客

首页 > 数据库 > Oracle > oracle 中 alert 报警日志过大的处理方法

oracle 中 alert 报警日志过大的处理方法

原创 Oracle 作者:feelpurple 时间:2015-11-13 17:08:00 0 删除 编辑
数据库中的报警日志过大,导致无法打开阅读

[oracle@tran110 trace]$ du -sh alert_orcl.log
38M alert_orcl.log

对原来的报警日志改名进行备份

[oracle@tran110 trace]$ mv alert_orcl.log alert_orcl.log_bk_20151113

创建新的 alert 日志

[oracle@tran110 trace]$ touch alert_orcl.log alert_orcl.log

切换日志,查看新的日志文件能否正常写入信息

[oracle@tran110 ~]$ sqlplus / as sysdba


SQL*Plus: Release 11.2.0.3.0 Production on Fri Nov 13 16:53:56 2015


Copyright (c) 1982, 2011, Oracle.  All rights reserved.




Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


SQL> alter system switch logfile;


System altered.

查看日志的内容

[oracle@tran110 trace]$ tail -20 alert_orcl.log
Fri Nov 13 16:54:03 2015
Thread 1 advanced to log sequence 2912 (LGWR switch)
  Current log# 2 seq# 2912 mem# 0: /u01/app/oracle/oradata/orcl/redo02.log




来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26506993/viewspace-1837021/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-08-01

  • 博文量
    404
  • 访问量
    1673927