解决创建dataguard时遇到的一个错误。

$ rman target sys/change_on_install@CPTST.SEVENSPACE.NET auxiliary sys/change_on_install@CPDR

Recovery Manager: Release 9.2.0.7.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

connected to target database: CPTST (DBID=796377515)
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04006: error from auxiliary database: ORA-01017: invalid username/password; logon denied
$  rman target sys/change_on_install@CPTST.SEVENSPACE.NET auxiliary sys/change_on_install@CPDR

Recovery Manager: Release 9.2.0.7.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

connected to target database: CPTST (DBID=796377515)
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04006: error from auxiliary database: ORA-01017: invalid username/password; logon denied
$ orapwd file=$ORACLE_HOME/dbs/orapwCPDR password=change_on_install

OPW-00005: File with same name exists - please delete or rename
$ rm $ORACLE_HOME/dbs/orapwCPDR
$ orapwd file=$ORACLE_HOME/dbs/orapwCPDR password=change_on_install
$ rman target sys/change_on_install@CPTST.SEVENSPACE.NET auxiliary sys/change_on_install@CPDR

RMAN> DUPLICATE TARGET DATABASE FOR STANDBY;

Starting Duplicate Db at 22-FEB-10
using target database controlfile instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=17 devtype=DISK

printing stored script: Memory Script
{
   restore clone standby controlfile to clone_cf;
   replicate clone controlfile from clone_cf;
   sql clone 'alter database mount standby database';
}
executing script: Memory Script

Starting restore at 22-FEB-10

using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backupset restore
channel ORA_AUX_DISK_1: restoring controlfile
output filename=/global/test/oracle2/orahome/product/9.2.0/dbs/snapcf_CPTST.f
channel ORA_AUX_DISK_1: restored backup piece 1
piece handle=/global/oracle2/orahome2/product/9.2.0/dbs/03l5mull_1_1 tag=TAG20100210T233101 params=NULL
channel ORA_AUX_DISK_1: restore complete
Finished restore at 22-FEB-10

replicating controlfile
input filename=/global/test/oracle2/orahome/product/9.2.0/dbs/snapcf_CPTST.f

sql statement: alter database mount standby database
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 02/22/2010 06:37:41
RMAN-05507: standby controlfile checkpoint (8434261182561) is more recent than duplication point in time (8429013503936)
On the primary database:

SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_2='SERVICE=CPDR' scope=both;

System altered.

SQL> ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_2=ENABLE SCOPE=BOTH;

System altered.

SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;

System altered.

SQL> exit

Then redo the command of DUPLICATE TARGET DATABASE FOR STANDBY; on standby.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值