`
mocca3in1
  • 浏览: 42499 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Oracle's alert.log 错误 日志

阅读更多
Oracle's alert.log
  Oracle's alert.log chronologically records messages and errors arising from the daily database operation. Also, there are pointers to trace files and dump files. These messages include
startups and shutdowns of the instance
Messages to the operator console
Errors causing trace files.
Create, alter and drop SQL statements on databases, tablespaces and rollback segments.
Errors when a materialized view is refreshed.
ORA-00600 (internal) errors.
ORA-01578 errors (block corruption)
ORA-00060 errors (deadlocks)
alert.log is a text file that can be opened with any text editor. The directory where it is found can be determined by the background_dump_dest initialization parameter:

select value from v$parameter where name = 'background_dump_dest';

If the background_dump_dest parameter is not specified, Oracle will write the alert.log into the $ORACLE_HOME/RDBMS/trace directory. Here's a shell/awk script to analyze alert logs.
Common messages in the alert log
ARCx: Media recovery disabled
This message will be written into the alert.log if the arch process is started with the database being in noarchive log mode. It's unfortunately possible for ARCH to be sitting around doing nothing apart from just taking up memory when the database is in noarchive log mode. The archiver can be stopped dynamically: alter system archive log stop.
Ignoring SIGALARM
Such a message is written into the alert log when a process that waited for a semaphore gets the semaphore shortly befor the timeout expires and doesn't have the time to switch the timeout mechanism off.
Thread 1 cannot allocate new log, sequence 1558 Checkpoint not complete
This error message is written into the alert.log if a checkpoint cannot write all dirty db blocks to the online redo log. Usually, this message is a sign that the size of the redo logs is to small or that there should be more of them.
Rotating the alert logs
Within Oracle, it is perfectly possible to delete, or rename, the alert.log, if desired (for example, if it reaches a certain size). Oracle simply recreates a new alert.log the next time it writes to it. Linux (and other Unixes?) has an utility called logrotate to automate that task.
Writing own messages into the alert log
The undocumented procedure kdswrt in dbms_system allows to write own messages in the alert log.
begin
  sys.dbms_system.ksdwrt(2, 'My own message');
end;
/
Reading the alert log through an external table
Here is a procedure which creates an external table that can be used to read the alert.log. There is also a script to read the alert log which doesn't require a procedure such as the previous link.
Thanks
Thanks go to Sharif Siouri who notified me of an error on this page. 
分享到:
评论

相关推荐

    oracle日志分析工具LogMiner使用.

    oracle日志分析工具LogMiner使用.

    Oracle的日志管理攻略

    ORACLE数据库的日志文件$ORACLE_BASE/admin/orasid/bdump/alert_orasid.log记录了重作日志的转换,数据库启动和关闭,数据库结构的改变,回退段的修改,死锁,内部错误等信息.  数据库管理员需要检查这个文件有无...

    alertlog.sh

    ORACLE ALERT日志备份shell.自动获取alert日志路径。实现按月分类 加上crontab,可以实现每天备份

    关于oracle日志文件.docx

    日志文件详解 Oracle数据库中的日志常用的有: Redo log files 联机日志或重做日志 ...Alert log files 告警日志 Trace files user_dump_dest 用户信息日志(如跟踪会话日志) Backupground_dump_dest 进程日志

    SQL Server数据库状态监控 – 错误日志

    Windows Event Log和 SQL Server Error Log是这样的日志, PS: SQL Server 中的错误日志 (Error Log) 类似于 Oracle中的alert 文件。  一. 错误日志简介  1. Windows事件日志与SQL Server 错误日志  Windows...

    提取oralce当天的alert log的shell脚本代码

    代码如下:#/bin/sh#get alert of everyday#then name of file is everyday_alert.shdir=”/oracle/admin/bbdz/bdump”num=$(cat -n ${dir}/alert_bbdz.log | grep “`date|cut -c 1-10`”|head -n 1 |awk ‘{print ...

    教你怎样用Oracle方便地查看报警日志错误

    按日期备份alert_ORACLE_你的实例名.LOG这个文件,如:alert_ORACLE_orcl_201408111639_bak.LOG。 2:清除日志内容 打开报警日志文件,用true > 文件名 可清除掉里面的内容 具体示例: 假如,我现在第一次进行该设置,...

    oracle 11g的警告日志和监听日志的删除方法

    oracle 11g的监听日志和警告日志都是在/u01/oracle/diag/tnslsnr/oracle/listener目录和/u01/oracle/diag/rdbms/db1/db1目录下都有以下分别简称listener目录和db1目录。这两目录下都有如下目录:alert cdump hm ...

    Oracle巡检报告XXXX年XX月XX日

    Alert.log 是否有故障: □有 ■无 说明:日志正常无ORA报错 表空间自动扩展 ■有 □无 说明: 表空间已开启自动扩展 表空间有否超出80%使用率 □有 ■无 说明 :空间充足 归档日志是否打开 ■有 □无 说明:数据库...

    Oracle9i的init.ora参数中文说明

    Oracle9i初始化参数中文说明 Blank_trimming: 说明: 如果值为TRUE, 即使源长度比目标长度 (SQL92 兼容) 更长, 也允许分配数据。 值范围: TRUE | FALSE 默认值: FALSE serializable: 说明: 确定查询是否获取表级...

    linux中oracle的日常维护命令

    1 检查Oracle的进程 2 查看数据库的实例: 3 查看数据库的日志模式,打开模式 4 查看数据库alert_SID.log 中的ora-的错误信息: 5 检查控制文件状态: 6 查询日志状态 7 查询数据状态: 8 查询表空间状态: 等等

    数据库日常检查.doc

    特别是存放归 " " "档日志的文件系统 " " " " " "检查结果 " " " 正常 异常 " " " " " "备注 " " " " " " " " " " " " " " "内容 " " "alert_SID.log文件 " " " " " "检查方法 " " "检查alert_SID.log有无报错信息...

    深入解析Oracle.DBA入门进阶与诊断案例

    针对数据库的启动和关闭、控制文件与数据库初始化、参数及参数文件、数据字典、内存管理、Buffer Cache与Shared Pool原理、重做、回滚与撤销、等待事件、性能诊断与SQL优化等几大Oracle热点主题,本书从基础知识入手...

    ORACLE9i_优化设计与系统调整

    §2.1.3 分析警告日志错误 40 §2.2 对警告日志进行归档 43 §2.3 跟踪文件 44 §2.3.1 跟踪文件的产生 44 §2.3.2 分析跟踪文件的信息 45 §2.3.3 跟踪文件的内容 45 §2.4 关于NET的日志与跟踪 47 §2.4.1 日志...

    Oracle 数据库 9i/10g/11g 扫描,优化提示,安全提示

    2,数据库alert.log日志分析,,,,(提示,日志不要太大了,6000行以下很快。) 3,数据库性能报告:事件,等待,TOP-SQL,TOP-SESSION,RATIO(太传统)等 4,数据库安全报告:用户,密码,权限,角色,目录,版本...

    Oracle 11g如何清理数据库的历史日志详解

    本文主要给大家介绍了关于Oracle 11g清理数据库历史日志的相关内容,分享出来供大家参考学习,下面话不多说了,来一起看看详细的介绍 1. 创建存放数据库待删除日志文件路径 用于存放准备删除,这里假设放在/home/...

    oracle学习文档 笔记 全面 深刻 详细 通俗易懂 doc word格式 清晰 连接字符串

    ORACLE数据库系统是美国ORACLE公司(甲骨文)提供的以分布式数据库为核心的一组软件产品,是目前最流行的客户/服务器(CLIENT/SERVER)或B/S体系结构的数据库之一。  拉里•埃里森  就业前景 从就业与择业的...

    Oracle8i_9i数据库基础

    第一部分 Oracle SQL*PLUS基础 23 第一章 Oracle数据库基础 23 §1.1 理解关系数据库系统(RDBMS) 23 §1.1.1 关系模型 23 §1.1.2 Codd十二法则 24 §1.2 关系数据库系统(RDBMS)的组成 24 §1.2.1 RDBMS 内核 24...

    数据库项目组日常运维及应急故障处理手册.docx

    (1)分析alert日志,看是否能从alert日志中,可以很快找到引起问题的原 因。 (2)做3级别的hanganalyze,先做一次,然后隔一分钟以后再做一次。 并分析hanganalyze 生成的trace文件,看是否可以找到引起...

Global site tag (gtag.js) - Google Analytics