11g active database clone failed
I recently experienced some type of a network hiccup of some sort resulting in a failed duplicate database using active database methodology for Oracle 11g. The below error was the one I received for several datafile copies which is the first steps in the duplicate with active database process. Some were missed/didn't get copied over for some reason.
RMAN-03009: failure of backup command on prm2 channel at 05/01/2011 04:50:02
ORA-17629: Cannot connect to the remote database server
ORA-17629: Cannot connect to the remote database server
continuing other job steps, job failed will not be re-run
RMAN-03009: failure of backup command on prm2 channel at 05/01/2011 04:50:02
ORA-17629: Cannot connect to the remote database server
ORA-17629: Cannot connect to the remote database server
continuing other job steps, job failed will not be re-run
This resulted in the below error:
RMAN-03009: failure of backup command on prm4 channel at 05/01/2011 23:20:53
ORA-17629: Cannot connect to the remote database server
ORA-17629: Cannot connect to the remote database server
Here is how I manually completed the clone after the failure occurred:
1. Copy over the missing datafiles from primary via RMAN.
connect target sys/password@prmrydb;
connect auxiliary sys/password@clonedb;
run {
allocate channel prm1 type disk;
allocate channel prm2 type disk;
allocate channel prm3 type disk;
allocate auxiliary channel stb1 type disk;
backup as copy reuse datafile 350 auxiliary format
"/u01/oradata/clonedb/eodslrg01_sml.dbf"
datafile 439 auxiliary format
"/u01/oradata/clonedb/pcapp2.dbf";
}
2. Create controlfile with all datafiles for the clone database.
3. copy over missing archivelogs from primary via RMAN.
connect target sys/password@prmrydb;
connect auxiliary sys/password@clonedb;
run {
backup as copy reuse
archivelog like "/orabase/admin/prmrydb/arch/fs90prd_749760667_2_1.arc" auxiliary format
"/ora1110base/admin/clonedb/arch/clonedb_749760667_2_1.arc";
catalog clone archivelog "/ora1110base/admin/clonedb/arch/clonedb_749760667_2_1.arc";
}
4. Get your SCN from which you would like to recover the database to and recover the clone database accordingly via RMAN.
connect target sys/password@prmrydb;
connect auxiliary sys/password@clonedb;
run {
set until scn 321485877049;
recover
clone database
delete archivelog
;
}
5. After recovery is completed, open the database.
alter database open resetlogs;
Comments