重做日志文件跟踪日志分析

重做日志文件对Oracle系统来说,是至关重要的,Oracle对重做日志文件的所有变化都有日志文件记录.

日志存放路径:

D:/oracle/admin/ora92/bdump

以上路径与Oracle的安装有关.

在以上路径中,所有的 .trc 文件都用来记录重做日志文件的每一次变更:

下面以实例分析:

Dump file d:/oracle/admin/ora92/bdump/ora92_arc2_2076.trc
Fri Nov 17 00:03:00 2006
ORACLE V9.2.0.1.0 - Production vsnsta=0
vsnsql=12 vsnxtr=3
Windows 2000 Version 5.2 Service Pack 1, CPU type 586
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Windows 2000 Version 5.2 Service Pack 1, CPU type 586
Instance name: ora92

Redo thread mounted by this instance: 1

Oracle process number: 12

Windows thread id: 2076, image: ORACLE.EXE


*** SESSION ID:(11.1) 2006-11-17 00:03:00.000
- Created archivelog as 'D:/ORACLE/ORA92/RDBMS/ARC00001.001'

 

刚开始的部分说明文件存放的路径和创建的时间:

Dump file d:/oracle/admin/ora92/bdump/ora92_arc2_2076.trc
Fri Nov 17 00:03:00 2006

再下面是关于Oracle和操作系统的信息:

ORACLE V9.2.0.1.0 - Production vsnsta=0
vsnsql=12 vsnxtr=3
Windows 2000 Version 5.2 Service Pack 1, CPU type 586
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Windows 2000 Version 5.2 Service Pack 1, CPU type 586

当前Oracle的实例名:

Instance name: ora92

进程信息:

Redo thread mounted by this instance: 1

Oracle process number: 12

Windows thread id: 2076, image: ORACLE.EXE

最下面是关于重做日志事件的记录,主要有事件发生的时间和事件信息:

*** SESSION ID:(11.1) 2006-11-17 00:03:00.000
- Created archivelog as 'D:/ORACLE/ORA92/RDBMS/ARC00001.001'

这个记录说明: Oralce新建了一个归档文件ARC00001.001,存放在 D:/ORACLE/ORA92/RDBMS/目录下.

这只是一个正常的归档记录,再看下面:

Dump file d:/oracle/admin/ora92/bdump/ora92_lgwr_3148.trc
Thu Nov 16 11:33:58 2006
ORACLE V9.2.0.1.0 - Production vsnsta=0
vsnsql=12 vsnxtr=3
Windows 2000 Version 5.2 Service Pack 1, CPU type 586
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Windows 2000 Version 5.2 Service Pack 1, CPU type 586
Instance name: ora92

Redo thread mounted by this instance: 1

Oracle process number: 4

Windows thread id: 3148, image: ORACLE.EXE


*** SESSION ID:(3.1) 2006-11-16 11:33:58.000
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: 'D:/ORACLE/ORADATA/ORA92/REDO03.LOG'
ORA-27041: unable to open file
OSD-04002: 无法打开文件
O/S-Error: (OS 2) 系统找不到指定的文件。
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: 'D:/ORACLE/ORADATA/ORA92/REDO03.LOG'
ORA-27041: unable to open file
OSD-04002: 无法打开文件
O/S-Error: (OS 2) 系统找不到指定的文件。

在这个日志中,记录了一个发生的错误. 不能打开日志组3.

 

Dump file d:/oracle/admin/ora92/bdump/ora92_lgwr_3920.trc
Wed Nov 15 00:41:43 2006
ORACLE V9.2.0.1.0 - Production vsnsta=0
vsnsql=12 vsnxtr=3
Windows 2000 Version 5.2 Service Pack 1, CPU type 586
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Windows 2000 Version 5.2 Service Pack 1, CPU type 586
Instance name: ora92

Redo thread mounted by this instance: 1

Oracle process number: 4

Windows thread id: 3920, image: ORACLE.EXE


*** SESSION ID:(3.1) 2006-11-15 00:41:43.000
Archiving is disabled

这个说明了自动归档被禁止了.

从上面可以看出来,只要是和日志有关的事件,都会被记录下来,如果有关重做日志出错了,可以从这些记录中查看原因.

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值