码迷,mamicode.com
首页 > 数据库 > 详细

[Oracle]发生 ora-06502 RMAN 在对 catalog DB 同期时出错的调查方法

时间:2017-10-03 13:09:04      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:ora   catalog   gen   events   nts   log   cat   server   rod   

Catalog DB resync error:

1, setting on the server that starts the RMAN client

$ Export EVENT_10928 = 1
$ Rman target <username> / <password> @ <connection descriptor> catalog <username> / <password> debug trace = / tmp / rmanDebug.trc log = / tmp / rmanLog.txt

RMAN> sql "alter session set tracefile_identifier = ‘‘ rman - 10046 ‘‘" ";
RMAN> sql "alter session set events ‘‘ 10046 trace name context forever, level 12 ‘‘" "
RMAN> sql "alter session set events ‘‘ 6502 trace name errorstack level 3 ‘‘";
RMAN> debug all level = 15

2, With the RMAN connection of the target DB held, the setting of the catalog DB

SQL> alter system set events ‘10046 trace name context forever, level 12‘;
SQL> alter system set events ‘6502 trace name errorstack level 3‘;

3, Reproduce the error on the target DB side.

RMAN> resync catalog;
RMAN> exit;

4, Cancel EVENT_10928 on the server that starts the RMAN client

$ Unset EVENT_10928

5, Cancel event setting on the catalog DB side.

SQL> alter system set events ‘10046 trace name context off‘;
SQL> alter system set events ‘6502 trace name errorstack off‘;

The file generated is as follows:

■ Target DB side:
<SID> _ora _ <SPID> _rman _ 10046.trc output to user_dump_dest

■ Catalog DB side:
<SID> _ora _ <SPID> .trc output to user_dump_dest

■ Server that started RMAN client:
/tmp/rmanDebug.trc
/tmp/rmanLog.txt

Note: The information in EVENT_10928 is output to rmanLog.txt.

[Oracle]发生 ora-06502 RMAN 在对 catalog DB 同期时出错的调查方法

标签:ora   catalog   gen   events   nts   log   cat   server   rod   

原文地址:http://www.cnblogs.com/gaojian/p/7623586.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!