+49 6102 86801 50 info@dbaservices.de
RMAN-10038, RMAN-05501: active duplicate fails with error

betrifft: Oracle Database – Enterprise Edition – Version 11.2.0.4 and later – jede Plattform

Fehlerausgabe:
Command is: DUPLICATE TARGET DATABASE TO CPLBDV01 FROM ACTIVE DATABASE SKIP TABLESPACE XXJLP_TS_ARCHIVE;

The failure occurs after all of the datafiles have been copied, snippet from end of the log:
channel ORA_DISK_3: datafile copy complete, elapsed time: 00:00:01
output file name=/cplbdv01/data/a_nolog01.dbf tag=TAG20160420T115804
channel ORA_DISK_2: datafile copy complete, elapsed time: 00:00:03
Finished backup at 20-APR-16 18:45:04
sql statement: alter system archive log current
Oracle instance started
Total System Global Area 2137886720 bytes
Fixed Size 2248080 bytes
Variable Size 520094320 bytes
Database Buffers 1610612736 bytes
Redo Buffers 4931584 bytes
contents of Memory Script:
{
sql clone “alter system set db_name =
”CPLBDV01” comment=
”Reset to original value by RMAN” scope=spfile”;
sql clone “alter system reset db_unique_name scope=spfile”;
shutdown clone immediate;
}
executing Memory Script
sql statement: alter system set db_name = ”CPLBDV01” comment= ”Reset to original value by RMAN” scope=spfile
sql statement: alter system reset db_unique_name scope=spfile
Oracle instance shut down
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 04/20/2016 19:30:29
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of sql command on ORA_AUX_DISK_1 channel at 04/20/2016 18:54:07
RMAN-10038: database session for channel ORA_AUX_DISK_1 terminated unexpectedly

Lösungsansätze:
a) Da es sich um ein Netzwerkproblem handelt – die SQLNET.ora anpasssen TIMEOUT(SQLNET.EXPIRE_TIME=10). Falls notwendig den TIMEOUT mit dem Anbieter einer Firewall abklären

b) per nohup option,

1. Ein RMAN backup script erstellen:
$ vi backup.txt
run
{
DUPLICATE TARGET DATABASE TO CPLBDV01 FROM ACTIVE DATABASE SKIP TABLESPACE XXJLP_TS_ARCHIVE;
}

2. mit einem zweiten Script rman aufrufen:
$ vi rman.scpt
export ORACLE_SID=<>
export ORACLE_HOME=<>
export PATH=$PATH1:$ORACLE_HOME/bin
rman catalog rman/rmanPWD@<catalog connect> target <credentials> msglog <location>/rman_backup.log cmdfile=<location>/backup.txt

3. run the script in nohup,
$ nohup ./rman.scpt

Haben Sie Fragen?

Dieses Feld dient zur Validierung und sollte nicht verändert werden.
(erforderlich)

NEUSTE BEITRÄGE

ORA-01460 – unimplemented or unreasonable conversion requested

1.) Texte aus oerr unter Linux 01460, 00000, „unimplemented or unreasonable conversion requested“ // *Cause: // *Action: 2.) Erklärung Dieser Fehler tritt auf, wenn eine Konversion von Daten mit den Funktionen TO_CHAR, TO_DATE oder TO_NUMBER durchgeführt werden soll,...

ORA-01461 – can bind a LONG value only for insert into a LONG column

1. Texte aus oerr unter Linux 01461, 00000, „can bind a LONG value only for insert into a LONG column“ // *Cause: // *Action:  2. Erklärung Es wurde versucht, Daten vom Typ LONG in ein Feld anderen Typs einzufügen. Dies ist jedoch nicht möglich. Stattdessen wird diese...

ORA-01465 – invalid hex number

1.) Texte aus oerr unter Linux 01465, 00000, „invalid hex number“ // *Cause: // *Action: 2.) Erklärung Es werden gültige Werte in Hex erwartet. In dem String befinden sich jedoch ungültige Werte. Dieser Fehler kann beim Füllen eines Feldes vom Typ BLOB auftreten. 3.)...

ORA-01728 – numeric scale specifier is out of range (-84 to 127)

1.) Texte aus oerr unter Linux 01728, 00000, „numeric scale specifier is out of range (-84 to 127)“ // *Cause: // *Action: 2.) Erklärung Beim Anlegen einer Tabelle ist die Anzahl der Nachkommastellen bei einem Feld vom Typ number außerhalb des gültigen Bereichs. 3.)...

ORA-02049 – timeout: distributed transaction waiting for lock

1.) Texte aus oerr unter Linux 02049, 00000, „timeout: distributed transaction waiting for lock“ // *Cause: exceeded INIT.ORA distributed_lock_timeout seconds waiting for lock. // *Action: treat as a deadlock 2.) Erklärung Eine Transaktion hatte darauf gewartet, ein...