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

Posted 健哥的数据花园

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[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.

以上是关于[Oracle]发生 ora-06502 RMAN 在对 catalog DB 同期时出错的调查方法的主要内容,如果未能解决你的问题,请参考以下文章

Oracle 生成 AWR 报告报错:ORA-06502,怎么破?

Oracle 生成 AWR 报告报错:ORA-06502,怎么破?

oracle 11g ORA-06502:PL/SQL:数字或值错误:字符串缓冲区太小

oracle ORA-06502:PL/SQL:数字或值错误:批量绑定:截断绑定

Oracle 存储过程无法生成 csv 文件 - ORA-06502: PL/SQL: numeric or value error: string buff

Oracle ORA-06502 PL/SQL:数字或值错误:字符到数字的转换错误