Oracle RMAN异机恢复归档RMAN-07518(供日志挖掘使用)及修改dbid步骤

本文介绍了在Oracle中如何处理RMAN异机恢复时遇到的DBID不一致问题,提供了修改DBID的步骤,并提到了日志挖掘在该过程中的应用。
摘要由CSDN通过智能技术生成

测试环境和生产库数据库名称相同,但dbid不同,执行catalog时报错,需修改dbid一致,如下:

[oracle@lkdb u01]$ rman target /

Recovery Manager: Release 11.2.0.4.0 - Production on Sat Jul 16 15:35:06 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
connected to target database: LKDB (DBID=1488801557)
RMAN> catalog start with '/u01/orcl_arch_full_gprangja_1_1';
using target database control file instead of recovery catalog
searching for all files that match the pattern /u01/orcl_arch_full_gprangja_1_1
List of Files Unknown to the Database
=====================================
File Name: /u01/orcl_arch_full_gprangja_1_1
Do you really want to catalog the above files (enter YES or NO)? yes
cataloging files...
no files cataloged
List of Files Which Where Not Cataloged
=======================================
File Name: /u01/orcl_arch_full_gprangja_1_1
  RMAN-07518: Reason: Foreign database file DBID: 1460399894  Database Name: LKDB
  
SQL> select dbid from v$database;
      DBID
----------
1488801557

SQL> exec dbms_backup_restore.nidbegin('lkdb','LKDB','1460399894','1488801557',0,0,10);
PL/SQL procedure successfully completed.

SQL> variable a number;
SQL> variable b number
SQL> variable c number;
SQL> exec dbms_backup_restore.nidprocessdf(0,0,:a,:b,:c);
PL/SQL procedure successfully completed.

SQL> print a;
         A
----------
         0
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值