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

$ rman target sys/[email protected] 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/[email protected] 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/[email protected] 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.

你可能感兴趣的:(dataguard)