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

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.

posted @ 2017-10-03 12:39  健哥的数据花园  阅读(257)  评论(0编辑  收藏  举报