RMAN duplicate with standby as target [message #656084] |
Thu, 22 September 2016 03:38 |
|
smac
Messages: 16 Registered: August 2013
|
Junior Member |
|
|
When using the standby as the target database and cloning to a dev database on another server do you have to take the standby out of recovery mode ?
Can you also clone across and use NOREDO
duplicate target database to DEV from active database noredo;
When I try action it fails after control file creation to restart auxiliary database with invalid username/password but it has already connected to auxiliary to start in nomount and copy control files.
confused
|
|
|
|
Re: RMAN duplicate with standby as target [message #656092 is a reply to message #656084] |
Thu, 22 September 2016 06:49 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
This,
Quote:but it has already connected to auxiliary to start in nomount and copy control files.
is not what happened. RMAN did not start the instance in nomount mode, you did that yourself before launching the DUPLICATE. Then RMAN discovered the problem awhen doing the re-start.
You need to to copy the password file from the target to the auxiliary.
|
|
|
|
|
Re: RMAN duplicate with standby as target [message #656120 is a reply to message #656094] |
Fri, 23 September 2016 06:58 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
THe easiest solution might be to run the rman executable from the Oracle Home of the auxiliary, and connect to it with operating system authentication:
rman target sys/xxxxxxx@live11g auxiliary /
duplicate database....
|
|
|
Re: RMAN duplicate with standby as target [message #656144 is a reply to message #656119] |
Sat, 24 September 2016 08:55 |
|
EdStevens
Messages: 1376 Registered: September 2013
|
Senior Member |
|
|
EdStevens wrote on Fri, 23 September 2016 06:41Check these items:
Target has tnsnames entry to clone. Show us the tnsnames.ora entry for 'rep11g' from the machine hosting your "target" (source) database.
clone has static registration in it listener. Show us the output of 'lsnrctl status' on the machine hosting rep11g.
By way of explanation ....
1) With DUPLICATE DATABASE .. FROM ACTIVE DATABASE , the target has to communicate directly with the aux, so you have to have tns connectivity between the two.
2) Because the aux is being shutdown and restarted (multiple times, as a matter of fact) it needs to be statically registered with the listener (SID_LIST ...)
|
|
|