Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3494236
  • 博文数量: 738
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(738)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客

分类: Oracle

2021-11-07 16:40:42

为了分析rman备份慢可以开启debug模式
  1. export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"

  2. rman target / debug trace=/tmp/rmanDebug.trc log=/tmp/rmanLog.txt
  3. sql "alter session set tracefile_identifier=''rman_10046''";
  4. sql "alter session set events ''10046 trace name context forever,level 12''";
  5. backup datafile 3;

  6. 或者
  7. run
    {
    allocate channel c1 device type disk debug "medium";
    backup datafile 7;
    }

  8. debug级别可选highest或high或medium
然后查看/tmp目录下的两个文件,和告警日志目录下的带有rman_10046的trc文件。

参考:Doc ID 1198753.1


rman专业级诊断

  1. 开启跟踪
  2. Oracle11g and earlier:

  3. -- ksrpc tracing
  4. alter system set events '10294 trace name context forever, level 1';
  5. -- ksfd tracing
  6. alter system set events '10298 trace name context forever, level 3';
  7. -- krb_trace
  8. alter system set events 'logon trace name krb_trace level 15';

  9. Oracle12c and higher:

  10. alter system set events 'trace[KRB.*] disk high, memory high';


  11. 重新备份
  12. export NLS_DATE_FORMAT='YYYY-mm-dd HH24MISS'
  13. rman debug all trace=srdc_rman_active_dup_debug_5.trc log=srdc_rman_active_dup_output_5.log
  14. RMAN>执行脚本


  1. 禁用跟踪
  2. 11g and earlier:

  3. -- ksrpc tracing
  4. alter system set events '10294 trace name context off';
  5. -- ksfd tracing
  6. alter system set events '10298 trace name context off';
  7. -- krb_trace
  8. alter system set events 'logon trace name krb_trace off';

  9. 12c and higher:

  10. alter system set events 'trace[KRB.*] off';


  11. 参考:1941758.1

阅读(2745) | 评论(0) | 转发(0) |
0

上一篇:dbca 小插曲

下一篇:service 对主备库修复

给主人留下些什么吧!~~